Forums

[resolved] Pull pages to the home page instead of categories (2 posts)

  1. rmacosky
    Member
    Posted 1 year ago #

    I have one of Brian Gardners themes Revolution City. I'm hoping a WP Guru or Coder can help me? I am trying to pull pages and sub-pages onto the homepage instead of "categories" and "posts" The way the code is written below, it pulls posts. I'm going for more of a "static" home page feel. My site will mostly be used as a "CMS". You can see Brian's example here: <a href="http://www.revolutiontheme.com/city/"> I appreciate and welcome any and all help.`<div id="homepageleft">

    <!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->

    <div class="featured">
    <h3>FEATURED CATEGORY</h3>

    <?php $recent = new WP_Query("cat=7&showposts=3"); while($recent->have_posts()) : $recent->the_post();?>
    <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
    " rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="alt text" />
    <?php else: ?>
    " rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.jpg" alt="Default thumbnail" />
    <?php endif; ?>
    <b>" rel="bookmark"><?php the_title(); ?></b>
    <?php the_content_limit(80, ""); ?>

    <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>

    <?php endwhile; ?>

    <!--This is where you can specify the archive link for each section.-->

    <b>More Featured Category Posts</b>

    </div>

  2. rmacosky
    Member
    Posted 1 year ago #

    This is resolved. I posted my solution on this thread.

Topic Closed

This topic has been closed to new replies.

About this Topic