How do I create a WP endpoint that retrieves all custom post types that have a tag?

I have a custom post type, let’s call it ‘capability’. Each capability can have one or more tags.

I have a searchbox on the frontend that the user can type into to search for all capabilities that have the specified tag. Then all the capabilities that have that tag will render on the frontend.

Could anybody help me and and tell me how I can do this? I am not the most technical person.

Read more here:: How do I create a WP endpoint that retrieves all custom post types that have a tag?

Leave a Reply

Your email address will not be published. Required fields are marked *