How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Exclude category from list

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13878
    Eugene Grechuk
    Participant

    hello! I have an shortcode:
    [table-list sort=”rating” num=”5″ size=”big” style=”normal” counter=”true” score_style=”number_stars” show_table_sorting=”true”]

    I need to list all items from all categories exclude one.

    i cant do this. then i think to list all items from category with subcategories, structure like:

    -category (id 34)
    –subcategory 1
    —subcategory 1 item
    —subcategory 1 item
    —subcategory 1 item
    —subcategory 1 item
    –subcategory 2
    —subcategory 2 item
    —subcategory 2 item
    —subcategory 2 item
    —subcategory 2 item

    using in my shortcode ‘cat”, like this:

    [table-list sort=”rating” num=”5″ cat=”34″ size=”big” style=”normal” counter=”true” score_style=”number_stars” show_table_sorting=”true”]

    but list is empty, because category doesnt contains items, but subcategories contains it.

    help solve problem

    #13922
    admin
    Keymaster

    Hi Eugene,

    This is how WordPress works with categories,taxomomies…
    If you want a review to exist in parent category and subcategories then you should be assigned to parent category as well.
    So the solution is to assign the posts in any category you want to exist regardless if is parent or child.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.