WordPress.org

Support

Support » Plugins and Hacks » Find number of post (not ID, but order number) in a category

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

  • 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!)

  • The topic ‘Find number of post (not ID, but order number) in a category’ is closed to new replies.
Skip to toolbar