WordPress.org

Ready to get started?Download WordPress

Forums

Can I get the total # of posts in have_posts()? Need to test if on last post. (1 post)

  1. danpoynor
    Member
    Posted 5 years ago #

    I'm creating a horizontal layout where posts are side by side instead of stacked vertically on top of each other.

    To close a table row with </tr> tags I need to find out if the current post being processed in the loop is the last post.

    Is there a way to test if have_posts() is outputting the last post?

    Thanks,
    DAN

Topic Closed

This topic has been closed to new replies.

About this Topic