As we all know cron job can be scheduled in linux systems. So scheduling the any job in wordpress is easy because scheduling the events in wordpress is provided by wordpress itself. WordPress provides the following functions to schedule the … Continue reading
How to customize read more for every wordpress post
So many clients had requirement about customize read more link for every post. So achieving this functionality in easiest way is following. Just add following code in your functions.php file. Now you are set to use the custom read more … Continue reading
How to add the Meta box to wordpress admin post page
Use following code and create wordpressapi.php file and upload this file to wp-content/plugins/ folder. Go to your Plugin tab and activate the “WordPressapi Meta Box” plugin. After activating the plugin you are able to see the Meta box on post … Continue reading
How to create or add the new tables using wordpress theme
If you want to add one more table to wordpress database you need to just use the following code. Open the functions.php file and copy paste the code. If you want write the plugin then just convert follwing code in … Continue reading
How to exclude pages from wordpress menu without plugin
In this tutorial I will show you how to exclude the pages in menu. Normally when we are creating wordpress theme for showing the pages we code as follows <?php wp_page_menu(‘show_home=1&menu_class=page-navi&sort_column=menu_order’); ?> As per this code all pages will get … Continue reading
How to show selected pages in menu for wordpress theme
In this tutorial I will show you how to show the only selected pages in menu. Normally when we are creating wordpress theme for showing the pages we code as follows <?php wp_page_menu(‘show_home=1&menu_class=page-navi&sort_column=menu_order’); ?> As per this code all pages … Continue reading
Show subpages even if on a subpage in wordpress theme
Using following code you can able to display the subpages of parent page. <?php $subpages = wp_list_pages(‘title_li=&child_of=’.$post->ID.’&echo=0′); ?> <?php if ($subpages) { ?> <ul> <?php echo $subpages; ?> </ul> <?php } ?> Note: This code you need to copy paste … Continue reading
How to use is_page conditional tag in wordpress theme
Many people some another content or code need to ad in specific pages. In that senorio use should use the is_page condition in page.php file. This file you will find in active wordpress theme folder. You can use is_page condition … Continue reading
Text wrapping around image in wordpress theme
Many people does not care about what CSS they are putting for p tag and div tag. So far they are not able to use wordpress default functionality of text wrapping around the image. I am suggesting use following CSS … Continue reading
Create the Horizontal page Menus in WordPress theme
Many people are new in development of wordpress theme. They are searching for how to create the horizontal page menu using wordpressapi. Here I am going to show the simple techniq of creating the horizontal page menu with wordpressapi. Just … Continue reading