Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control

If the setting and controls are added exactly as they appear in class-wp-customize-manager.php the JQuery script in wp-admin/custom-header.php will toggle the header text color control properly. The theme_supports line must be commented out or removed as it is “used to hide a setting if the theme lacks support for a specific feature”.[1] add_action( ‘customize_register’, function … Read more

How do I list the child of a child page [duplicate]

First of all, why you are querying for posts by your custom query? We have WP_Query class and get_posts function to do this. $child_pages = $wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_parent = “.$post->ID.” AND post_type=”page” ORDER BY menu_order”, ‘OBJECT’); became $pages = get_posts(array( ‘post_type’ => ‘page’, ‘orderby’ => ‘menu_order’ ‘order’ => ‘ASC’ ‘posts_per_page’ => -1, … Read more