• I’m trying to show the most recent post (category 75 ). It is currently loading the oldest.
    https://www.greenpeas.us/weddings/

    This is the category listing for wedding videos…. note the most recent post is Johnny and Kristin’s Wedding Montage, (this is correct!)

    Recent Weddings in Right Column image Link

    the oldest is Miller-Pryor Wedding Rehearsal, which shows up in the content area for the wedding page.

    <a href=”https://www.greenpeas.us/wordpress/wordpress/wp-
    content/uploads/2009/11/content-area.jpg”>Content area image link

    from the “featured” page template (lines 20-39):

    <div id="featured-rightcol">
      <h3><?php _e('Recent Weddings','branfordmagazine');?></h3>
       <ul class="bullets">
       <?php $temp_query = $wp_query; ?>
    <?php query_posts('cat=75&showposts=5'); ?>
        <?php while (have_posts()) : the_post(); ?>
      <li><a href='<?php the_permalink() ?>'><?php the_title(); ?></a></li>
    <?php endwhile; ?>
      <?php $wp_query = $temp_query; ?>
       </ul>
    </div>
    
    </div>
    
    <div id="featured-content">
    
      <div class="featured_post" id="post-<?php the_ID(); ?>">
        <h2>
          <?php the_title(); ?>
        </h2>

    I have tried changing the featured-content a little; but can’t find a way for it to pull the most recent post in the category 75. Any suggestions on this?
    Thank you!

    (one additional note, when I view the source for the page, it shows:

    <div id="featured-content">
    
      <div class="featured_post" id="post-699">
        <h2>
          Miller-Pryor Wedding Rehearsal    </h2>
    
        <div class="entry">

    Not certai as to why it is pulling the oldest post, rather than newest!)

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Branfordmagazine theme tweak – need advise’ is closed to new replies.