Get blog page URL in WordPress

If you are working on some kind of customizations or developing some kind of theme or plugin in thing in WordPress you must have to read this. here we will discuss how WordPress get blog page permalink works.

WordPress development is made easy for developers due to its built-in functions. If you want to know how to get the blog page URL in WordPress this article is for you.

Details of wordpress get blog page permalink function:

In simple words, this function is used to get the URL or permalinks of one WordPress post to another post.

Syntax:

get_blog_permalink( int $blog_id, int $post_id ): string

in PHP it is written as:

<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>

Parameters

$blog_id int Required

ID of the source blog.$post_id int Required

ID of the desired post.


Return

string The post’s permalink

Read more about this here.

Example:

function get_blog_permalink( $blog_id, $post_id ) {
	switch_to_blog( $blog_id );
	$link = get_permalink( $post_id );
	restore_current_blog();

	return $link;
}

Read more: How to Choose a hosting provider smartly?

How to get a post title in WordPress?

How to get post title in WordPress?

If you are working on some kind of customizations or developing some kind of theme or plugin in thing in WordPress you must have to read this. here we will discuss how WordPress get title works.

WordPress development is made easy for developers due to its built-in functions. If you want to know how to get title of any post or page on WordPress this article is for you.

Details of function:

In simple words, this function is used to get any title of the post or page inside the WordPress site. This is used in many customizations and core code.

Syntax:

get_the_title( int|WP_Post $post ): string

in PHP it is written as:

<?php echo get_the_title( $post_id ); ?>

WordPress get title Description

If the post is protected and the visitor is not an admin, then “Protected” will be inserted before the post title. If the post is private, then “Private” will be inserted before the post title.


Top ↑

Parameters

$post int|WP_Post Optional

Post ID or WP_Post object. The default is global $post.


Return

string

Read more here: Get title

Example:

function get_the_title( $post = 0 ) {
	$post = get_post( $post );

	$post_title = isset( $post->post_title ) ? $post->post_title : '';
	$post_id    = isset( $post->ID ) ? $post->ID : 0;

	if ( ! is_admin() ) {
		if ( ! empty( $post->post_password ) ) {

			/* translators: %s: Protected post title. */
			$prepend = __( 'Protected: %s' );

			/**
			 * Filters the text prepended to the post title for protected posts.
			 *
			 * The filter is only applied on the front end.
			 *
			 * @since 2.8.0
			 *
			 * @param string  $prepend Text displayed before the post title.
			 *                         Default 'Protected: %s'.
			 * @param WP_Post $post    Current post object.
			 */
			$protected_title_format = apply_filters( 'protected_title_format', $prepend, $post );

			$post_title = sprintf( $protected_title_format, $post_title );
		} elseif ( isset( $post->post_status ) && 'private' === $post->post_status ) {

			/* translators: %s: Private post title. */
			$prepend = __( 'Private: %s' );

			/**
			 * Filters the text prepended to the post title of private posts.
			 *
			 * The filter is only applied on the front end.
			 *
			 * @since 2.8.0
			 *
			 * @param string  $prepend Text displayed before the post title.
			 *                         Default 'Private: %s'.
			 * @param WP_Post $post    Current post object.
			 */
			$private_title_format = apply_filters( 'private_title_format', $prepend, $post );

			$post_title = sprintf( $private_title_format, $post_title );
		}
	}

	/**
	 * Filters the post title.
	 *
	 * @since 0.71
	 *
	 * @param string $post_title The post title.
	 * @param int    $post_id    The post ID.
	 */
	return apply_filters( 'the_title', $post_title, $post_id );
}

Read more: How to Choose a hosting provider smartly?

Here you can read How to log in to the Rainloop admin dashboard?

Read More: How to Change Upload limit On CyberPanel?

How to Change Upload limit On CyberPanel?

You can follow us on Facebook too.

How To Uninstall Or Stop ImunifyAV?

What is ImunifyAV?

A lot of users install ImunifyAV but after some issue, if they want to uninstall they do not know how to do this. Here in this article, we will tell you How To Uninstall Or Stop ImunifyAV?

ImunifyAV – an intelligent antivirus and security monitoring tool for websites with one-click automatic malware cleanup, domain reputation monitoring, and blacklist status check. Read more about ImunifyAV

A lot of users install ImunifyAV but after some issue, if they want to uninstall they do not know how to do this. Here in this article, we will tell you How To Uninstall Or Stop ImunifyAV?

In this artical we provide the way where you can able to uninstall or Stop ImunifyAV.

Uninstall ImunifyAV:

To uninstall ImunifyAV, you need to first download the imav-deploy.sh script with the following command:

wget https://repo.imunify360.cloudlinux.com/defence360/imav-deploy.sh

Then run this command to uninstall ImunifyAV from the server:

bash imav-deploy.sh --uninstall

Processing the above two steps you are able to uninstall imaunifyAY.

Stop ImaunifyAY:

ImunifyAV runs as a daemon so the service can be managed using the standard service management commands.

For CentOS/CloudLinux OS 6, run the following command:

service imunify-antivirus stop

For all other operating systems, run the following command:

systemctl stop imunify-antivirus

How to Change Upload limit On CyberPanel?

How to solve the can’t upload the file on file manager issue in CyberPanel?

if you are uploading a file on file manager in CyberPanel. and getting some error there. Follow this short solution for can’t upload the file on CyberPanel file manager.

Solution

There is very easy and short solution for this issue. Access your root through Bitvise or putty open your terminal(CLI) and run this Command

Systemctl restart lscpd

This simple command will restart all of your CyberPanel services and now if you can try you can easily upload any file but there may be upload limit issue if so you can follow this tutorial to solve that Link below.

How to Change Upload limit On CyberPanel?

How to remove MailScanner from Cyberpanel?

How to remove MailScanner from Cyberpanel?

Maybe you have installed MailScanner on your server from CyberPanel, And you want to remove it for some reason. In this article, we are going to show how to remove MailScanner from CyberPanel?.

What is MailScanner?

MailScanner is an open-source email security system. it designed for a Linux-based email gateway. The purpose of MailScanner is to scans email for viruses, spam, phishing, malware, and other attacks against security vulnerabilities.

Follow the procedure to remove MailScanner form CyberPanel:

1. Download MailScanner uninstaller script form GitHub

Frist you need to download uninstaller form GitHub . Run this command on CLI it will download MailScanner uninstaller

wget https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/CPScripts/mailscanneruninstaller.sh
How to remove MailScanner from Cyberpanel?
Download MailScanner uninstaller script form GitHub

2. Set the execute permission

After download uninstaller you need to set execute permission to MailScanner uninstaller by running this command on CLI

chmod +x mailscanneruninstaller.sh

3. Uninstall the MailScanner

Once you downloaded MailScanner uninstaller and set the execute permissions then run the command to uninstall Mailscanner.

./mailscanneruninstaller.sh

After this the Mail Scanner is successfully removed form CyberPanel.

Read more: How to create, delete and manage Child Domains in CyberPanel?

How to fix Fix WordPress 404 permalink OpenLiteSpeed- 404 error on OpenLiteSpeed

How to fix Fix WordPress 404 permalink OpenLiteSpeed- 404 error on OpenLiteSpeed

If you host your WordPress websites with OpenLiteSpeed you may get a 404 error on the permalink of your website. here in this article, I will explain how you can fix ix WordPress 404 permalink OpenLiteSpeed.

OpenLiteSpeed is the free version of LiteSpeed Enterprise and this free version is not as stable as the paid version. Not OpenLiteSpeed WordPress permalink often gives 404 error. When you move site from one server to another or made any change this error comes up. Here i will discuss few methods to solve this issue.

Methods to fix WordPress 404 permalink OpenLiteSpeed:

Method 1 Fix Permissions:

If you are using CyberPanel and you did any change of website after that 404 error come to the site you can fix it by doing few thing.

  1. Fix permissions from the file manager
  2. Restart OLS

Fix Permissions from the file manager:

To fix permission you have to log in to your cyber panel then go to the Websites-> List website select the domain for which you have to fix the issue then press the Manage button present in front of the website.

Manage Website
Manage Website

On the Website Dashboard you can see File Manager press to access the file manager.

File Manager
File Manager

In file manager click Fix Permission button and you can see the success massage in green color.

Fix Permission
Fix Permission

After doing all now its time to restart OLS.

Restart OpenLiteSpeed:

To restart OLS from CyberPanel you have to go on Server Status ->LiteSpeed Status and then you see two-button shutdown and reboot. Press the Reboot button and you can see a success message.

Restart OpenLiteSpeed:
Restart OpenLiteSpeed:

Method 2 htaccess:

An other reason is the missing rules in htaccess for WordPress. To check htaccess rules. Go to the Public_html folder of the website. If you have CyberPanel go to the Website->List Websites then press Manage button.

Then go to the file manager from the Website Dashboard.

File Manager

In file manager open and open .htaccess file and see if there is rules or if the file is empty.

If file is empty add these rule and press save.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

and after doing this restart OLS as mentioned above.

Read more: How to create, delete and manage Child Domains in CyberPanel?

Follow US on Facebook / Twitter Instagram .

How to create a Database in CyberPanel?

If you want to create a Database in CyberPanel. And do not know how to do this you are on right place read this article to know how you can create a new DataBase on CyberPanel for your Website.

Table of Contents:

  1. Login to CyberPanel
  2. Create New Database
  3. Access Database

Login to CyberPanel:

First of all visi the CyberPanel login URL to login to your CyberPanel it must be with port 8090, Look like:

https://<somainname/IP>:8090

Provide username and password and login to your CyberPanel dashboard.

CyberPanel Login

Create New Database:

Once you logged in go to the Database->Create Database: in the left menu.

Create New Database
Create New Database

On this create database page you have to select the domain for which you want to create a new database.

select domain
select domain

Now screen ask you to provide the details for database.

  1. Username
  2. Database name
  3. Password
provide the details for database
Provide the Details for Database

When you press Create Database button this will create a new one for you on your server.

you can also list the database for any of your site on sever from Database-> List Database then select the domain and you can see the list.

list the database
list database

Access Database:

To access your database you created you have to go to Database-> PHPMYADMIN. Then press Access Now button.

You can see the PHPMyAdmin screen now. Where you can see all database for all domains. You can check the database your created and do any operation you want to do on this database.

Read more: How to create, delete and manage Child Domains in CyberPanel?

Follow US on Facebook / Twitter Instagram .

Online Driving License Verification Pakistan? Download Driving License Verification Android Application

Online Driving License Verification Pakistan? Download Driving License Verification Android Application

Do you want to verify your driving license online? Do you want to Download the Driving License Verification Pakistan android application to verify your license from your phone? You are in the right place.

Today we bring an android application for you to verify your license from your android mobile phone easily.

No need to visit anywhere just add the required information and verify your driving license from your phone.

Online Driving License Verification Pakistan
Online Driving License Verification Pakistan

Driving License Verification Pakistan is an application for the verification of your driving license online.

This application is built by Solo Doco developers for the easiness and to help people check and verify their driving license online from anywhere.

the process of checking the validity of your license totally depends upon the area you are from. For some area, you can check the license using CNIC and for some, you can check using both CNIC and the License number.

To verify all these you just need to add your CNIC or License number in the box and everything is in front of you.
This application helps you to check the Validate date and apply for next also. If you applied but not revived you can check and if data is there in the Application you can ask them for your license.

Main Features

1. Islamabad verification:
2. Punjab verification:
3. Sindh verification:
4. Balochistan verification:
5. KPK license verification:
6. AJK verification
7. GB verification
In some, we are using the review of Websites and some do not have their online system so we are using their contact numbers only.

Contact Them:

In case of any query or suggestions about my Privacy Policy, do not hesitate to contact us at solveddoco@gmail.com.

Download Driving License Verification Pakistan From Play Store:
Get it on Google Play

This application is totally free for users. Just download it from play store and use.

Follow US on Facebook / Twitter Instagram .

SIM Number Details Android Application

How to Enable Developer Mode and Enable USB Debugging on Android Phone?

How to Enable Developer Mode and Enable USB Debugging on Android Phone?

As a normal Android user you do not need the to enable developer mode and enable USB debugging on you device.

But If you are an android developer and want to run the Andriod app directly on your phone you need to enable developer mode and enable USB debugging on your device.

To turn on the Developer option on your android phone you just need to follow some easy steps.

Enable Developer Option From Settings

  1. Go to the Settings option of your Phone.
  2. You can see the About Phone option in your settings.
About Phone
About Phone

3. Now click on this About Phone option and you will see a Build Version in the case of my device it’s MIUI Version.

Click again and again on this option until this massage came, You are already on the developer mode.

developer mode
Developer mode

Once you see this massage its mean developer mode is already enabled.

Enable USB dubbuing from Developer Option:

  1. Once you completed all steps stated above now go to the Settings and Additional Features (In some cases it is on the main settings page). Here you will find the Developer Option if you scroll down.
  2. You can also search for Developer Options in the search bar of the settings page.
Additional Features
Additional Features

3. Go to the Developer Options and scroll down you will see the Debugging part on this screen.

4. You need to enable Both USB Debugging and Intall VIA USB.

USB Debugging and Intall VIA USB
USB Debugging and Intall VIA USB

All done for this and now you can easily use your android phone to test your Application in debugging phase.

Also Read About: How to create an AdMob account?

Follow US on Facebook / Twitter Instagram .