WordPress always registers posts automatically at a certain time and keeps them in the old copy to be able to go back. Over time, this process takes up too much space on the databased and reduces the performance of your WordPress site. To do this, you can first write the following code and you can do this by adding our wp-config.php file. The wp-config.php file is in the WordPress main root directory….

WordPress sticky post concept can be very confusing. Sticky posts are posts set to always show when a query returns. If you search the WordPress sticky post hides on the internet you can see that there are not many examples. I will try to illustrate this with an example. You can understand how by examining the following code example. You can try the following code in your own theme in the themes folder …

What you need to do to disable the update of the plugins in WordPress is simple. We will first edit the following code by ourselves. In the WordPress plugin directory we will enter the plugin directory we want to cancel updating and find the main plugin file. We will place the code we have arranged according to ourselves in the function.php file and after the plugin update warning in the WordPress admin panel will be gone…

If you want to delete the site heading in the WordPress mail function “[Sitename] Forgot Password” for example. You need to add_filter the WordPress wp_mail function. We will make the function work by putting the following code in function.php page then it will filter wp_mail function for replace sitename to wordpress email subject easy and short code for wordpress…

I will show you how many times you have watched your WordPress singles page and how to record it in the database. We can take and record in WordPress post_meta how many times you look at which page. We will make the function work by putting the following code in function.php page then we will trigger the function by putting the other code on a single.php page…

You can get wordpress author name by post id like that. We first take the WordPress post author’s id after we take the WordPress post author’s name from the WordPress post author id if you want user_nicename field you can get other fileds if you want. Valid fields user_nicename, display_name, nickname, first_name, last_name for the WordPress post author names…

You can get wordpress author id by post id like that. Using the get_post_field() function, we can extract the post_author field with the $post_id variable. Other fields we can extract post_content, post_author, post_title, post_name (slug), post_excerptpost_statuscomment_statuspost_parentpost_typecomment_count, post_date, ping_status, post_modified and etc….

In this topic I will tell you how to move jQuery scripts from head into footer on WordPress. This improvement will give you performance because doing so will allow jQuery to be called after the page has been loaded so that this page will be opened faster. Google page speed will increase at the value you get at the speed. You can do this by adding the following code to the function.php file….