• On my main page http://azfans.com/recent-posts

    The main story is supposed to show the tags, and comments below it, yet nothing is showing! Here is the code that’s NOT working:

    <div class="bottombox">
                    <span class="postmetadata">
    <span class="comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
    <span class="tags">Tags</span><?php the_tags(': ',', '); ?>
    <?php edit_post_link('Edit', ' | ', ''); ?>
    				</span>
                    </div>

    Thanks for the help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dbunit16

    (@dbunit16)

    Can anybody help me with this?

    Is your code within the loop?

    Thread Starter dbunit16

    (@dbunit16)

    I believe so… I have this before:

    <?php $my_query = new WP_Query('showposts=1');
    
      if ($my_query->have_posts()) : $my_query->the_post();
    
      $do_not_duplicate = $post->ID; ?>

    Then call for the title, author, cat, excerpt, etc. But the tags and comments don’t show.

    I end with this after:

    <?php endif; ?>

    Thanks!

    Thread Starter dbunit16

    (@dbunit16)

    I also use a php include on this page to bring in the posts from specific categories:

    <?php
     global $post;
     $myposts = get_posts('numberposts=6&offset=0&category=6');
     foreach($myposts as $post) :
     setup_postdata($post);
     ?>
    <?php endforeach; ?>

    I don’t understand what you are trying to do.

    First, you are editing the loop to just show a post. And then next, using get_posts(), you want to get 6 posts from category 6. Perhaps you could do some cleaning up of what you want to do, and we can work from there.

    Thread Starter dbunit16

    (@dbunit16)

    I want to show 1 main story (this is the most recent post from ANY category): http://azfans.com/recent-posts

    Then other stories by category under “Recent Blog Posts” (see the tabs). I first call for the most recent 6 posts from all categories, then 6 from cat 4 (suns), cat 5 (d-backs), and cat 6 (cardinals).

    Thread Starter dbunit16

    (@dbunit16)

    Please… somebody has to know how to do this! Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Tags, Comments not showing!’ is closed to new replies.