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
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.
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 );
}
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:
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.
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
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.
Fix permissions from the file manager
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.
On the Website Dashboard you can see File Manager press to access the file manager.
In file manager click Fix Permission button and you can see the success massage in green color.
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.
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.
In file manager open and open .htaccess file and see if there is rules or if the file is empty.
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:
Login to CyberPanel
Create New Database
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.
Create New Database:
Once you logged in go to the Database->Create Database: in the left menu.
On this create database page you have to select the domain for which you want to create a new database.
Now screen ask you to provide the details for database.
Username
Database name
Password
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.
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.
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.
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:
This application is totally free for users. Just download it from play store and use.
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
Go to the Settings option of your Phone.
You can see the About Phone option in your settings.
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.
Once you see this massage its mean developer mode is already enabled.
Enable USB dubbuing from Developer Option:
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.
You can also search for Developer Options in the search bar of the settings page.
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.
All done for this and now you can easily use your android phone to test your Application in debugging phase.