Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #268257

    Hello,
    i’m trying to filter a post slider and post content using 2 categories at same time, so only when the post belongs to both categories it shows.
    Is it possible?
    thanks.

    • This topic was modified 10 years, 6 months ago by lumendesign.
    #268289

    Hi!

    You can select more than one category here:

    Try pressing CTRL.

    Best regards,
    Josue

    #268314

    hi Josue,
    sorry, i didn’t made myself clear what i meant is that i would like to change the query class operator from IN to AND.
    For instance in the print screen that you send i would like to filter only posts that belongs to ‘frontpage articles’ and ‘news’ at same time.
    i’ve found in line 502 in postslider.php the code that i belive is the key but i still couldnt make that work.
    i also want to implement this change only in my child theme.
    thanks for your patience.

    #268316

    Yes, you’d need to edit that part in postslider.php, refer to this documentation (Multiple Taxonomy Handling):
    http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters

    Best regards,
    Josue

    #268330

    i could make it work but only if i change the postslider.php in enfold folder.
    how can i make it work ifrom my child theme folder?
    thanks.

    #268334
    #268347

    perfect. thanks a lot.

    #268349

    You are welcome, glad we could help :)

    Regards,
    
Josue

    #495429

    hallo
    i must filter too more category, but not with operator OR but with AND
    In advance builder layout i select “post” and i select 2 category mit CTRL
    but i want all posts have only this 2 category and not the posts have also 1 of this category….
    how can i fix?
    i have find the file, but not the line “blog.php”
    Sorry my english

    • This reply was modified 9 years, 2 months ago by marcellovoc.
    #496184

    Hey @marcellovoc,

    Sorry but I’m having trouble understanding what you mean, could you try to explain a bit further please? We have german speaking moderators if you would like to ask your question in german instead.

    Best regards,
    Rikard

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