WooCommerce breadcrumb display custom posts instead of product data

The solution is quite simple. I copied single-product.php from woocommerce/templates and modified it so loop starts before before_main_content hook: get_header( ‘shop’ ); ?> <?php while ( have_posts() ) : the_post(); ?> <?php /** * woocommerce_before_main_content hook. * * @hooked woocommerce_output_content_wrapper – 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb – 20 */ do_action( … Read more

Search custom post type result in same template page

1.Create a single-(cpt).php in your theme, duplicate a your single.php and rename it as per your CPT name, so this page template will use to show your CPT queries. For more details refer the wordpress codex. https://codex.wordpress.org/Category_Templates To create CPT arcive page follow the same proceduare. archive-(cpt).php For Taxonimies taxonomy-(cpt).php CPT is your custom post … Read more

How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]

The same way you would in any other HTML form <input type=”text” name=”name[]” /> <input type=”text” name=”email[]” /> <input type=”text” name=”name[]” /> <input type=”text” name=”email[]” /> <input type=”text” name=”name[]” /> <input type=”text” name=”email[]” /> The above will give you arrays instead of singular values in PHP, so $_POST[‘name’] is an array of 3 values. The … Read more