iThemes Builder Layouts Tutorial: Selecting a Layout based on Listing Type
iThemes Builder has a filter that lets you select a layout by post type or taxonomy when using custom post types and custom taxonomies. Works like the Views tab in builder but requires code to enable it.
Selecting a builder layout based on Taxonomy Type
My Themes > Layouts and Views
Add View
New View
NOTE: If you select Post Type - Properties then when viewing any single property listing it will use this layout.
Selecting a builder layout for archive page based on post type name
In order to override the layout for a custom post type like property page i.e. /property/ it must be added via this code to your theme functions file.
// iThemes Builder Layout Override function rec_builder_layout_post_types( $layout_id ) { if ( is_post_type_archive( 'property' ) ) return '53635180dce12'; // Layout ID if ( is_post_type_archive( 'location_profile' ) ) return '5344d1e950788'; // Layout ID return $layout_id; } add_filter( 'builder_filter_current_layout', 'rec_builder_layout_post_types' );
Overriding based on a a specific taxonomy
This can be achieved but not recommended as it is more complex using get_the_terms function.
You are better off using a page with a shortcode where you can select the builder layout from the page editor or by forcing all features to use the internet specials layout as shown above.