WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Home Page (2 posts)

  1. MaddTechWF
    Member
    Posted 2 years ago #

    I've created a page called page-home.php and have applied the template to a specific page. I've even gone through the WP-Admin section and changed the Reading section to use the new page as the Home page. When I add the typical Loop to show the content on the page, it want's to show my "Posts" instead of the content that I've typed into the page.

  2. MaddTechWF
    Member
    Posted 2 years ago #

    I ended up using the following code:

    <?php $my_query = new WP_Query('category_name=featured&showposts=3'); ?>
    
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
      <!-- Do special_cat stuff... -->
    <?php endwhile; ?>

    I found it on http://www.catswhocode.com/blog/multiple-wordpress-loops

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.