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 pre_get_posts to filter the posts of a Repeater that has been set to show 5 entries of a project CPT when viewing singular pages of the CPT such that
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:
Replace project 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=', ']
where project_category 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 $399 one-time).
Already a member? Log in below or here.
Enter your email address to subscribe to this blog and receive notifications of new tutorials by email.
Join 506 other subscribers
Please log in again.
The login page will open in a new tab. After logging in you can close it and return to this page.