Results 1 to 1 of 1

Thread: Total ads for each category

  1. #1
    Thread Starter
    blabla's Avatar
    Join Date
    Nov 2010
    Location
    France
    Posts
    50
    Thanks
    7
    Thanked 2 Times in 1 Post

    Total ads for each category

    Hi,

    for the total ads i've this code:

    <?php $count_posts = wp_count_posts(APP_POST_TYPE); $ads = $count_posts->publish; echo "$ads"; ?>


    but i want countl for each category, can you help me ?


    regards

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can total list count on Category page be remove?
    By bluehavoc in forum ClassiPress General Discussion
    Replies: 1
    Last Post: August 29th, 2015, 07:46 PM
  2. [TUTORIAL] Showing total jobs | total resumes on your website right under "submit job" button.
    By luukratief in forum JobRoller General Discussion
    Replies: 16
    Last Post: February 16th, 2014, 01:55 AM
  3. Samcy Total frustration -
    By marklintrader in forum Help Using ClassiPress
    Replies: 6
    Last Post: January 10th, 2014, 05:30 PM
  4. Job Number in Category show wrong total
    By facultyoc in forum Jobsapp
    Replies: 0
    Last Post: December 29th, 2013, 11:58 AM
  5. Total ads
    By bfreemanfl in forum ClassiPress General Discussion
    Replies: 3
    Last Post: April 21st, 2013, 08:59 AM