Results 1 to 3 of 3

Thread: Break down ads per category and display them on a page

  1. #1
    Thread Starter
    pawel's Avatar
    Join Date
    Sep 2011
    Location
    United Kingdom
    Posts
    37
    Thanks
    9
    Thanked 1 Time in 1 Post

    Break down ads per category and display them on a page

    Hi All,

    I have been looking around the forum for an answer to this but have not found anything so I thought I'll write something about it.

    What I am trying to achieve is to have all the ads broken down per category and displaying on a same page so I thought I could use a query_posts but the query return nothing. Any idea why?

    Thanks!
    P

    <?php query_posts(
    array (
    'post_type' => 'APP_POST_TYPE',
    'showposts' => 20,
    'tax_query' => array(
    'taxonomy' => 'APP_TAX_CAT',
    'field' => 'slug',
    'terms' => 'eye-art' //category slug
    )
    )
    );
    ?>
    <?php get_template_part( 'loop', 'ad_listing' ); ?>

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    37,989
    Thanks
    161
    Thanked 3,124 Times in 2,998 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    pawel's Avatar
    Join Date
    Sep 2011
    Location
    United Kingdom
    Posts
    37
    Thanks
    9
    Thanked 1 Time in 1 Post
    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. How to display "city" in ad listing preview (in category page)
    By ramystyle in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: July 28th, 2011, 06:05 AM
  2. How To Display All Posts From One Category On A New Page
    By samanders in forum WordPress General Discussion
    Replies: 3
    Last Post: January 29th, 2011, 11:02 AM
  3. Display specific sub-category on home page
    By dmjendor in forum ClassiPress General Discussion
    Replies: 2
    Last Post: January 11th, 2011, 01:16 PM