WordPress.org

Ready to get started?Download WordPress

Forums

Page, category, and Post number report (4 posts)

  1. swimflyfast
    Member
    Posted 2 years ago #

    I would like to create a static page that would display the title of my sites pages with the page number, category titles with category number, and posts with post number so I can use it as an easy reference when working on sites. Does anyone know how to do that?
    PAGES
    page title page number

    Posts
    post title post number

    Categories
    category title category number

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    http://pastebin.com/sMZJJZ39

    add your own formatting

  3. swimflyfast
    Member
    Posted 2 years ago #

    thanks, I enabled php in a widget, used widget logic so it would only show up on a test page, and put your code in it (added ?> to end..)
    it listed the category and number very nicely but not page names or post names.

  4. swimflyfast
    Member
    Posted 2 years ago #

    if($all_pages) vs if($pages)
    if($all_posts) vs if($posts)

    and ?> at end

    This works wonderfully! thanks again!!!

Topic Closed

This topic has been closed to new replies.

About this Topic