Posts

Showing posts from September, 2013

How to open a menu links in new tab in WordPress?

Image
How to open a menu links in new tab in WordPress? In the menu tab, pull down the screen Option tab and select the Link Target attribute so you can add that. and checked Open link in new tab. WordPress

How to get home page link in WordPress when it is in subfolder?

How to get home page link in WordPress when it is in subfolder? Like localhost/WordPress/ Or www.site.com/WordPress/?p=1 <?php echo get_option('home'); ?> Try this :)

How to get the template Theme url in WordPress?

How to get the template Theme url in WordPress? <?php echo get_template_directory_uri(); ?>

How to Get category id for category.php page?

How to Get category id for category.php page? or How to Get category id for category page? <?php echo $cur_cat_id = get_cat_id( single_cat_title("",false) ); ?> Hope this will help you... :)

How to display in WordPress Category, Category post, Subcategory, Subcategory post?

Image
How to display in WordPress Category, Category post, Subcategory, Subcategory post? First you need to click on image and check how will result show on your page. And is this useful to you simple Copy and paste this code on your index page or where ever you want to show. Only you need to change the categories id in the array Hope this will help you <?php                             $row = 0; // Here you can pass the id of your category which you want to show                             $arrayid = array('0'=>9,'1'=>10,'2'=>7,'3'=>8,'4'=>11,'5'=>12);                             foreach($arrayid as $aid)                             {                             if($row%3==0){ ?> <div class="row-fluid"> <?php }                             ?>                                 <div class="span4 box-featured">                                     <div class=

How to get the page link in WordPress?

How to get the page link in WordPress? You can add simply this code to get page link only you have to pass the page id <?php echo get_page_link(30); ?>

How to get the category page link in WordPress?

How to get the category page link in WordPress? You can add simply this code to get category page link only you have to pass the category id <?php echo get_category_link($category->term_id);?>