
Tagged: blog post element, categories, sorting, Tags
-
AuthorPosts
-
July 20, 2023 at 6:54 pm #1413860
Dear Kriesis,
I’m working on a website with many categories in hierarchical order and many tags. In some cases I need to display posts with a special category in combination with special tags, eg.
posts with tags “History”,”Exhibition”, “Medals” ONLY in category “Magna Graecia”. On other pages I want to display post whith these tags but with another category (eg. “Italy”).
The Blog Post Element provides taxonomy sorting by category OR by post tag (and others) but not a combination of both. I don’t want to use the same terms as both a category and a tag. Is there a solution?Best regards
AnneJuly 27, 2023 at 9:56 am #1414633Hey annevoelkel,
Thank you for the inquiry.
You should be able to utilize the avia_blog_post_query filter to adjust the default query and make use of the tax_query parameters to create relational queries between tags and categories. Examples can be found in the following threads.
// https://kriesi.at/support/topic/how-to-hide-child-categories-from-showing-in-parent-category-in-blog-posts/#post-1208228
// https://kriesi.at/support/topic/blog-element-shows-other-posttypes/#post-1103256
// https://kriesi.at/support/topic/blog-element-shows-other-posttypes/#post-1105428
// https://kriesi.at/support/topic/exclude-category-in-blog-posts/#post-1085278The following documentation should also help.
// https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters
Best regards,
IsmaelJuly 31, 2023 at 11:43 am #1415020Hey Ismael,
thank you very much for the links. The topics do not really help me because I don’t need to exclude categories but I need to extend the options of the blog post element. To display my problem please see the PDF under the attached link.
Best regards
AnneAugust 3, 2023 at 3:17 pm #1415343Hi Anne,
Unfortunately, this is only possible with heavy customization which is out of the scope of our support.
If this is something you really need, please consider hiring a freelance developer for the task.
Best regards,
YigitAugust 3, 2023 at 3:21 pm #1415345Hi Yigit,
thank you very much for your reply. I’ll solve my issue by sorting blog posts only by tags. That works.Best regards
AnneAugust 3, 2023 at 3:25 pm #1415346 -
AuthorPosts
- You must be logged in to reply to this topic.