This members-only tutorial provides the steps to include posts from Custom Post Types in search results and showing the unlinked comma-separated taxonomy terms depending on the post type of each entry when using Oxygen.

Ex.:

post posts will show category terms
movie posts will show movie_category terms
event posts will show event_type terms

Step 1

If you have not already, add a search form perhaps in a Header Row in the Header Builder.

Step 2

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: Add support for HTML5 markup

Code:

add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) );

Save changes and activate.

Add another snippet to have the search results be limited to your desired post types.

Title: Custom Search Form

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($37/month or $399 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE
magnifiercross
>
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: