Outputting Data Based on Custom Post > Taxonomy
-
I’m creating a listing of products based on type from custom posts and taxonomies.
I want to create one single template that will output custom posts like this:
———Custom Post Type Template————
GET $Parent_Taxonomy and all $Child_Taxonomies<h1>$Parent_Taxonomy</h1> <h2>$Child_Taxonomy1</h2> <!-- display 4 posts under the child taxonomy --> <h3>$Single_Custom_Post_Title_Based_On_Child_Taxonomy</h3> <p>$Output_Of_Custom_Meta_Of_Single_Custom_Post</p> <h3>$Single_Custom_Post_Title_Based_On_Child_Taxonomy</h3> <p>$Output_Of_Custom_Meta_Of_Single_Custom_Post</p> <h3>$Single_Custom_Post_Title_Based_On_Child_Taxonomy</h3> <p>$Output_Of_Custom_Meta_Of_Single_Custom_Post</p> <h3>$Single_Custom_Post_Title_Based_On_Child_Taxonomy</h3> <p>$Output_Of_Custom_Meta_Of_Single_Custom_Post</p> <h2>$Child_Taxonomy2</h2> <!-- display 4 posts under the child taxonomy --> <h3>$Single_Custom_Post_Title_Based_On_Child_Taxonomy</h3> <p>$Output_Of_Custom_Meta_Of_Single_Custom_Post</p> <h3>$Single_Custom_Post_Title_Based_On_Child_Taxonomy</h3> <p>$Output_Of_Custom_Meta_Of_Single_Custom_Post</p> <h3>$Single_Custom_Post_Title_Based_On_Child_Taxonomy</h3> <p>$Output_Of_Custom_Meta_Of_Single_Custom_Post</p> <h3>$Single_Custom_Post_Title_Based_On_Child_Taxonomy</h3> <p>$Output_Of_Custom_Meta_Of_Single_Custom_Post</p>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Outputting Data Based on Custom Post > Taxonomy’ is closed to new replies.