This members-only tutorial is similar to Other Posts in the same category while excluding the current post in Oxygen with the difference being that this one is for Custom Post Type and a Custom Taxonomy instead of the standard posts and categories.
We shall use
to filter the posts of a Repeater that has been set to show 5 entries of a
CPT when viewing singular pages of the CPT such that
- only the ones in the same custom taxonomy,
project_categoryas the current entry appear AND
- the current entry being viewed is not included.
Create (if not present) and edit the Template that applies to your CPT's singular view.
Below the Inner Content component that shows your entry's content, add a Repeater having this manual query:
with your CPT's name.
Configure the Repeater's Div as needed by showing say, the post title linking to permalink.
To show the entry's taxonomy terms, a Text component can be added and its default text replaced with
Terms: [oxygen data='terms' taxonomy='project_category' separator=', ']
is the taxonomy name.
Add a Code Block above the Repeater.
PHP & HTML:
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $499 one-time).
Already a member? Log in below or here.