Blog template with different header to rest of site

Try this: if ( !is_home() && !is_cart() && !is_checkout() && !is_account_page() ) : if ( is_page( ‘contact-us’ ) ): get_template_part( ‘template-parts/header/header’, ‘map’ ); else: get_template_part( ‘template-parts/header/header’, ‘slider’ ); endif; endif; is_home() will return true if the current page/query is for the blog homepage, otherwise it returns false. You can read up about is_home() on the … Read more

How to edit woocommerce sub-category page

You would need to override the template in WooCommerce which displays the category page and add in your own sidebar / html. woocommerce/templates/archive-product.php You can read up on how to do this here: https://docs.woocommerce.com/document/template-structure/ Don’t forget to add theme support in your functions.php file too. function mytheme_add_woocommerce_support() { add_theme_support( ‘woocommerce’ ); } add_action( ‘after_setup_theme’, ‘mytheme_add_woocommerce_support’ … Read more

How can I create a button that when clicked populates a div with a list of foods that are checked as a certain type of ACF?

First I’d recommend you to make sure $meal_type = get_field(‘meal_type’); returns array of strings – to do this you can simply call var_dumb($meal_type) after getting this field value. So for example if you’ve used a Repeater field for meal_type, you’ll see array of arrays and not array of strings. Also It’s kind of strange thing … Read more