Results 1 to 4 of 4

Thread: Show job count in category sidebar

  1. #1
    Thread Starter
    Junior Member cody1's Avatar
    Join Date
    Aug 2011
    Location
    UK
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Show job count in category sidebar

    I know that it's possible to show the total number of jobs in the sidebar using a text widget, exec php and this code:

    <?php
    $count_pages = wp_count_posts('job_listing');
    echo $count_pages->publish;
    ?> Jobs

    However, I'd like to be able to show the number of jobs in each of the sub-categories, when a visitor expands the Job Category area in the sidebar.

    I'd like it to display something like:

    Job Parent (80)
    - Sub cat 1 (10)
    - Sub cat 2 (15)
    - Sub cat 3 (5)
    - Sub cat 4 (50)

    Can someone please help me out here?

    Thanks,

    Matt

  2. #2
    tinygiantstudios's Avatar
    Join Date
    Jan 2011
    Posts
    1,607
    Thanks
    31
    Thanked 157 Times in 148 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!


  3. #3
    Thread Starter
    Junior Member cody1's Avatar
    Join Date
    Aug 2011
    Location
    UK
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    tinygiantstudios's Avatar
    Join Date
    Jan 2011
    Posts
    1,607
    Thanks
    31
    Thanked 157 Times in 148 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can - Show Child Ad Count - problem be solved?
    By dionf in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: October 20th, 2011, 02:01 AM
  2. Category Child Count broken in CP 3.1 / WP 3.2
    By veloce916 in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: July 10th, 2011, 08:21 PM
  3. Category count - wrong?
    By bluecafe in forum Report ClassiPress Bugs
    Replies: 8
    Last Post: May 31st, 2011, 01:36 PM
  4. [SOLVED] Removing count off category pages :)
    By homme143 in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: March 22nd, 2011, 11:37 AM
  5. Upgrade to version 3.0.5.3 does not show the count of the visits
    By tonyperez in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: February 11th, 2011, 05:49 AM