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;

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

Is it possible to change slugs’ default behaviour?

Test you the following filter work for you: function wpse245094_fist_duplicate_slug( $slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug ) { // slug had to change, we must have a duplicate if ( $original_slug !== $slug ) { // try to replace `-2` with `-es` $new_slug = preg_replace( ‘#-2$#’, ‘-es’, $slug ); if ( $new_slug !== $slug ) … Read more