Thursday, July 21, 2022
HomeWordPress DevelopmentCustomized Question: A number of CPTs and a taxonomy filter

Customized Question: A number of CPTs and a taxonomy filter


I need to create a submit feed that shows the next:

  • ALL posts within the CPT ‘custom_post_type_1’
  • Any ‘submit‘s within the class ‘audio system

Up to now, I’ve this filter which shows all posts in ‘custom_post_type_1’ and all posts in ‘submit”.

add_action( 'elementor/question/my_custom_filter', operate( $question ) {
    $query->set( 'post_type', ['post', 'custom_post_type_1'] );
} );

I think I must do a taxonomy array to perform my purpose however am having issue writing one which filters solely ‘submit’ and which additionally exhibits all of ‘custom_post_type_1’ no matter taxonomy.

I’m pretty new to this and admire any help. (I’m utilizing Elementor, therefore the point out of elementor within the question.)

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments