WordPress.org

Ready to get started?Download WordPress

Forums

Find number of post (not ID, but order number) in a category (1 post)

  1. frankiejr
    Member
    Posted 4 years ago #

    Let's say I have a category called "Lamps" that has thirteen posts in it. I want to have a paged navigation for *just* that category that says something like this:

    Post 2 of 13 in the category Lamp

    I figured out how to get the number of posts in a category using get_the_category. Now I just need to figure out how to get the number of the post I'm on (not the post ID).

    Any ideas?

    (The title is probably a bit confusing so if you're reading this, thank you for trying to help!)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.