Show editor widgets only on pages that use a specific template?

Solution used: // decide to show or hide the widgets function check_for_using_template(selected){ if (selected == “page-templates/core-front-page.php”){ jQuery(“#page-core-home-1”).show(); jQuery(“#page-core-home-2”).show(); jQuery(“#page-core-home-3”).show(); jQuery(“label[for=”page-core-home-1-hide”]”).show(); jQuery(“label[for=”page-core-home-2-hide”]”).show(); jQuery(“label[for=”page-core-home-3-hide”]”).show(); }else{ jQuery(“#page-core-home-1”).hide(); jQuery(“#page-core-home-2”).hide(); jQuery(“#page-core-home-3”).hide(); jQuery(“label[for=”page-core-home-1-hide”]”).hide(); jQuery(“label[for=”page-core-home-2-hide”]”).hide(); jQuery(“label[for=”page-core-home-3-hide”]”).hide(); } } jQuery(document).ready(function(){ check_for_using_template(jQuery(“#page_template”).val()); jQuery(“#page_template”).change(function(){ check_for_using_template(jQuery(“#page_template”).val()); }) }); Unfortunately, I was unable to successfully utilized the is_page_template, so I used jQuery. Works, though it may not … Read more

Custom Menus and taxonomies

Can I confirm that you’ve actually created separate sub-pages for these duplicate products under each state? Assuming that’s true, you could use what I call a “soft-system” approach and use a naming convention. If you included Ohio in the page name (again, assuming post-name is part of your permalink structure, which is better for SEO … Read more

Custom Post Type Posts Not Showing Up in Admin

When you fiddled, it’s possible that your custom posts were created with your “Shows” post type, not “Gig”. You could check that in the database directly using PHPMyAdmin or whichever tool your host offers. In PHPMyAdmin look for your wp_posts (the wp_ could be different) and look at all of the posts probably clicking on … Read more

Buddypress Group Activity Loop Filter activity type [closed]

I have created this function in bp-custom.php page. function filtering_activity_default( $query ) { if ( empty( $query ) && empty( $_POST ) ) { $query = ‘action=activity_update,joined_group’; } return $query; } add_filter( ‘bp_ajax_querystring’, ‘filtering_activity_default’, 999 ); This is working for me as expected.