Tagged: post filter
-
AuthorPosts
-
May 21, 2014 at 10:28 pm #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, 7 months ago by lumendesign.
May 21, 2014 at 11:01 pm #268289Hi!
You can select more than one category here:
Try pressing CTRL.
Best regards,
JosueMay 21, 2014 at 11:22 pm #268314hi 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.May 21, 2014 at 11:27 pm #268316Yes, 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_ParametersBest regards,
JosueMay 21, 2014 at 11:42 pm #268330i 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.May 21, 2014 at 11:44 pm #268334May 21, 2014 at 11:57 pm #268347perfect. thanks a lot.
May 21, 2014 at 11:58 pm #268349You are welcome, glad we could help :)
Regards,
JosueAugust 30, 2015 at 6:54 am #495429hallo
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, 3 months ago by marcellovoc.
September 1, 2015 at 3:36 am #496184Hey @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 -
AuthorPosts
- You must be logged in to reply to this topic.