How to properly enable comments form in page template

I think it could be a problem with get_comments_number which returns numeric, though theoretically it should test this way too… you could try instead: if ( comments_open() || have_comments() ) : comments_template(); endif; OR if ( comments_open() || (get_comments_number() > 0) ) : comments_template(); endif;

Removing custom sort order from admin page listing

By default pages are order by menu_order then title. When you are adding filter country you are ordering them by meta_value There are two options Remove everything that you added country and orderby pages will be back to default order. If you can not remove orderby but can remove country then adjust your code in … Read more

Display specific page (that is child) content on parent page

You were being too specific/not passing the correct parameters into your wp_query. This should get you what you’re looking for: <?php $current_page_id = get_the_id(); $investor_content_query = new WP_Query( ‘post_parent’=> $current_page_id ) ); if ( $investor_content_query->have_posts() ) { while ( $investor_content_query->have_posts() ) { $investor_content_query->the_post(); the_content(); } } wp_reset_postdata(); ?>

Getting the Most Recent Posts from Multiple Categories

I use the following for multiple post types, just replace foo and bar with your own post types: $args = array( ‘post_type’ => array( ‘foo’, ‘bar’ ), ‘orderby’ => ‘post_date’, // other parameters as needed ); $q = new WP_Query( $args ); if ($q->have_posts()) : while ($q->have_posts()) : $q->the_post(); // do stuff endwhile; endif;

Option for pages order in backend

In a theme with no menu locations defined – or a WordPress install with no menus set up – the default fallback option for menus is to display the output of wp_page_menu(). By default, this will output all of your pages firstly by their order, then by their title if the orders match. This makes … Read more