Topic: exclude category | WP Masonry Layout

exclude category

Home Forums Lite Version exclude category

This topic contains 6 replies, has 3 voices, and was last updated by  Anita 7 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4857 Reply

    Olly

    I am using the plugin to display some posts that have multiple categories. How can i exclude a specific category using the shortcode?

    #4868 Reply

    Masonry Guy
    Keymaster

    Hi Olly,

    Removing post of specific category is not possible yet. We are soon going to add that in our plugin. But it is going to take some time.

    Thanks

    #10185 Reply

    Ricardo Pedrosa

    Hi,

    Any update on this? It would be extremely useful.

    Thanks!

    #10194 Reply

    Masonry Guy
    Keymaster

    Hi Ricardo,

    It is now available in our Pro version. There we have added Custom query box where you can exclude the category from cat id.

    Thanks

    #11773 Reply

    Anita
    Participant

    Hi,

    I tried to exclude a category by adding a custom query, but it is not working for me. What am I doing wrong? I added this code to the custom query box:

    $query->set(‘cat’,’-38′)

    where 38 is the category ID. I am using Genesis with Centric Pro child theme.

    Thanks for your support!

    #11789 Reply

    Masonry Guy
    Keymaster

    Hi Anita,

    You just need to set cat=-38. Can you please try this ?

    Thanks

    #11791 Reply

    Anita

    It works! Thanks for the quick reply.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: exclude category
Your information: