How to use "Taxonomy Filter" of Related Post(s) field option.

This topic is: not resolved

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
May 19, 2015 at 10:26 pm #3656
aguko
Post count: 43

Hello,

Please teach me how to use “Taxonomy Filter” of Related Post(s) field option.
When I’m here to enter the ID and slug of taxonomy, or will be able to filter posts?

May 20, 2015 at 11:13 am #3657
traversal
Post count: 207

This field lets you filter the posts returned for that select box, and is basically parsed and transformed into a tax_query for the query.

https://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters

There is one restriction, you can only use this if you have a single post type selected for your select box.

Each line of this box represents a single item in the tax_query array you’d pass to tax_query. The line should be of the form:

taxonomy [IN] or [NOT IN] slug1,slug2,slugn

So for example, suppose you wanted all posts with speed “fast,slow”, with tag “featured”:

speed IN fast,slow
post_tag IN featured

May 20, 2015 at 11:48 am #3658
aguko
Post count: 43

Thanks!

I was saved very much.
This is a very convenient function.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Latest From the Blog

MasterPress 1.3.6 is now available

Masterpress 1.3.6 is a compatibility release. It resolves an edge case with shared fieldsets not working for MySQL 8 when the fieldset is limited to more than 1 post type or taxonomy or excluding any post types or taxonomies.

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the WordPress.com hosted service.

Three AM