Forums

help displaying number of posts in category and current post number (4 posts)

  1. snetman
    Member
    Posted 6 years ago #

    Help please. I'm new to WordPress. What I'd like to do is to display some text like this on my single post page:

    "You are reading post number X of Y in this category"

    where "X" is the number of the current post and "Y" is the total number of posts in the current category. I haven't been able to find a plug-in to help with this.

    Any advice/help would be much appreciated. Thanks.

  2. stew278
    Member
    Posted 6 years ago #

    I too would like to know ... even if it's not possible, at least telling us this would save us time from looking online for it (which I've wasted days doing now).

  3. pixeline
    Member
    Posted 6 years ago #

    i think what you are actually looking for is a pagination plugin. because what you are saying is actually like saying "page 3/5".

    so look for pagination plugin, and stick it to your categories template(s).

    good luck!

    alex

  4. hip
    Member
    Posted 5 years ago #

    Hi snetman,

    I've just posted something that may get your 'Y' (total number of posts for a single category). It's at

    http://wordpress.org/support/topic/12805?replies=5#post-424730

    (To get your 'X' (ordinal for a single post within its category) you may improve the function querying the mySQL DB for the position of the required post in a list of posts ordered by date.)

    Have a good day,
    hip

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags