Many people want to disable the post comments for some posts which has too many comments. Using simple code you can easily disable the comments for your posts which has many comments. Here I written simple code. Using following code … Continue reading
Tag Archives: PHP
Change the wordpress admin login page logo
There are milions of wordpress CMS user. Many people want to remove the wordpress admin login page wordpress logo and put there site logo. Using following code you can easily add your custom logo in wordpress admin page. You just … Continue reading
how to get user information in wordpress
You can print the user information using following information. You can put following code in your theme folder.
Full url path to files custom setting is removed from media library- wordpress setting
As per changes of wordpress 3.5 “Full url path to files” which is media library setting is removed from wrodpress settings. If people want to set easily the upload path or subdomain for uploaded images they are not able set … Continue reading
cron is running every time wordpress – disable the cron job
Before every post visit wordpress cron is running and taking too much bandwidth. if you have a lot of visitors it can be a problem. I am convinced this is the reason why my admin has become glacially slow and my … Continue reading
How to Add the social Bookmarks Icons in WordPress without using any plugins
All wordpress sites use the social bookmarks for sharing there content. For adding social bookmark they always use the wordpress plugins. But that plugins will add some mysql quries and apache requests to your server. I recommend not to use … Continue reading
How to load the custom javascript to custom page template in wordpress
For many pupose and designs we use the page template in wordpress site. Some time we need to load the custom javascript to page template. For that we can use following code. For loading any script or any custom code … Continue reading
How to save the meta data in wordpress custom post type
Custom post type are very important in wordpress. There are some nice plugins for creating the post type but I recommend custom code in function.php file. I already written about custom post type. If you want to know about custom … Continue reading
How to List the child pages by post slug OR post ID
First find the page id using page title or page page slug. For post title use following code: For post slug use following code: Now List the child page by post slug








