I need to get this sub nav to show up on cat, sup-cat and post

The reason it only works on category and sub-category pages is because is_category() checks to see if a Category archive page is being displayed. However a post is not an “archive page” it is a “single page” (see http://codex.wordpress.org/Template_Hierarchy). So you would need to add another condition in there that first checks to see if … Read more

Subpages List Appearing on Every Page

If you want this for pages only, which would makes sense as to what you described this, just wrap the whole bunch of code in if ( is_page() ) { … }. If you were to put this into a function, you could just bail out early. function wpdev_156446_list_parent_page_tree() { if ( ! is_page() ) … Read more

Trouble posting in Sub-Category

You have created a simple page name News from the Admin and displayed under the Blog Menu. You have to create a page template and use the WordPress loop to display your posts. You can use this code in your page template and select templates when you publish the page. $args = array( ‘post_type’ => … Read more

Need help finding information to create this type of page

The term you are searching is Get and Set URL params, you can use this to set a param in an URL, like this: add_query_arg( ‘key’, ‘value’, ‘http://example.com’ ); it will return: http://example.com?key=value and to get the value use this: <?php $value_from_URL = get_query_var( ‘key’ ); ?> <h1>My value i just got <?php echo $value_from_URL; … Read more

Restrict days in bootstrap datepicker using checkboxes in submenu

———— EDIT -> PROBLEM SOLVED ——— MY CODE WordPress submenu/HTML code <?php add_action( ‘admin_menu’, ‘reserveringsformulier_add_submenu_gesloten’ ); function reserveringsformulier_add_submenu_gesloten() { add_submenu_page( ‘edit.php?post_type=reserveringen’, __( ‘Gesloten dagen Restaurant’, ‘Gesloten dagen’ ), __( ‘Gesloten dagen’, ‘Gesloten dagen’ ), ‘manage_options’, ‘gesloten_restaurant’, ‘gesloten_restaurant_inger_display’ ); } function gesloten_restaurant_inger_display() { function gesloten_restaurant_inger_display() { if (isset($_POST[‘submit_datum_gesloten’])) { if (isset($_POST[‘maandag’])) { update_option(‘maandag’, $_POST[‘maandag’]); $maandag = … Read more