Problem: I have designed a custom WordPress Archive for the Product Archive (Shop Page), but I would like to use the same design for Product Category and Product Tag Archives.
Solution: Edit the WordPress Archive for the Product Archive (Shop Page). In the Block Editor, select the top-level WordPress Archive Block. Then in the Loop Selection configurations, select the two Product Taxonomy archives as well as the Product Archive (Shop Page) to reuse the Shop Page design on the two Product Taxonomy archives.
Problem: I have two custom post types. On the template for CPT A, I would like to display two posts from CPT B in a View. In the post editor for CPT A, I would like to choose which two posts should be displayed in the View.
Solution: Use a many-to-many relationship between CPT A and CPT B to select which posts from CPT B should be displayed in each post of CPT A. Use a View of CPT B with a post relationship filter in the template for CPT A to display the selected posts.
I have a View with calling a content template in the loop, I am going to display contents allowing to display the name of the parent etablissement of the current school in the loop, ONLY IF the current page is NOT an Etablissement single page.
Solution:
You can try [wpv-conditional] shortcode like this: