How to use custom slug and custom templates for custom taxonomy?
How to use custom slug and custom templates for custom taxonomy?
How to use custom slug and custom templates for custom taxonomy?
WoCommerce Cart is not showing pricing
Looks like all I needed to do was put the template_include filter inside of the init action. Source: https://stackoverflow.com/a/50037707/5749974 add_action( ‘init’, function () { $product_base = ltrim( get_option( ‘woocommerce_permalinks’ )[ ‘product_base’ ], “https://wordpress.stackexchange.com/” ); add_rewrite_rule( “{$product_base}/([^/]+)/test”, ‘index.php?product=$matches[1]&test=1’, ‘top’ ); add_filter( ‘template_include’, function( $template ) { if ( get_query_var( ‘test’ ) ) { $template = get_stylesheet_directory() … Read more
Taxonomy Template displaying different color post tag js
Render page with specific id from functions.php
how to display a template.php in a shortcode
I managed to get the required result like this: <?php $template = get_page_template_slug(); if ($template === ‘my-template.php’) { //do stuff } ?>
How to list posts from a sub-category that is listed in a parent category (more details below)?
How to turn my WordPress site into a ready to deploy template?
A very usefull plugin when developping is Query Monitor In the template section, you’ll be able to find the template or template part used.