BuilderChild-Covell
(Difference between revisions)
(Added "How to display Projects instead of posts on Posts page") |
m (→How to display Projects instead of posts on Posts page) |
||
| Line 16: | Line 16: | ||
<?php if(is_home()) { query_posts(array('post_type'=>'builder_projects', 'paged' => get_query_var( 'paged' ) ) ); } ?> | <?php if(is_home()) { query_posts(array('post_type'=>'builder_projects', 'paged' => get_query_var( 'paged' ) ) ); } ?> | ||
</pre> | </pre> | ||
| + | |||
| + | = Item 2 = | ||
| + | |||
| + | = Item 3 = | ||
| + | |||
| + | = Item 4 = | ||
Revision as of 14:09, April 27, 2011
Contents |
How to display Projects instead of posts on Posts page
Before:
After:
Edit theme's index.php.
Add the following above <?php if ( have_posts() ) : ?>
<?php if(is_home()) { query_posts(array('post_type'=>'builder_projects', 'paged' => get_query_var( 'paged' ) ) ); } ?>