BuilderChild-Covell

(Difference between revisions)
Jump to: navigation, search
(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:

Covell-posts-page-before.png

After:

Covell-posts-page-after.png

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' ) ) ); } ?>

Item 2

Item 3

Item 4

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox