Adding styles/scripts to specific page

You have wp_enqueu_script within your function spelled wrong. It should be wp_enqueue_script. Also is_page_template() will look for your template file as is relative to your theme directory. If file.php is in the root of your theme then it would just be is_page_template(‘file.php’). Here is the reference for that function: https://developer.wordpress.org/reference/functions/is_page_template/ Try this: function test(){ if( … Read more

Unregistered taxonomy apears still as emtpy filter list

After I little digging I found the right action in the parent theme. The function looked like that (actually exactly the example I linked above): ////////////////////////////// // Add page category filter // ////////////////////////////// add_action(‘restrict_manage_posts’, ‘uncode_page_filter_post_type_by_taxonomy’); function uncode_page_filter_post_type_by_taxonomy() { global $typenow; $post_type=”page”; // change to your post type $taxonomy = ‘page_category’; // change to your taxonomy … Read more

Display different pages based on form entry

Welcome to WPSE. Based on the additional information you provided, static pages with the list of users changing only once per year, I would recommend simply using the built-in “Password Protected” publishing option. The Publish metabox (typically in the top right corner of the page editor) has a few options beyond the default public visibility. … Read more