WordPress is creating a lot of draft posts

A good place to start with an issue like this is using debug mode in WP. https://codex.wordpress.org/Debugging_in_WordPress If you know exactly which action triggers the creation of a draft post, then it is repeatable and you have a basis for a solution. Based on your question, “whenever I load the posts page” is what creates … Read more

WordPress – Update all existing posts at once

I’m not sure if it will work, but you could try running wp_update_post() on all posts concerned. It will trigger the save_post hook. According to the Codex: Unlike wp_insert_post(), it is only necessary to pass the ID of the post to be updated and the elements to be updated. You could try looping an array … Read more

Latest comment post should be the first post in the blog

WordPress post queries don’t natively support ordering by such specific comment information, only by comment count. Rest of comment-related things aren’t stored in posts table and not available for easy querying. While it’s probably possible to cook up SQL for this, I think it would be more practical to store date of comment in its … Read more

No comments on static front page

This should not be do difficult to achieve. What I would suggest is to create yourself a child theme. It is quick and very easy. The reason for this is, never make changes to a theme/plugin that you are not the author of. Once you have your child theme up and running, copy the page.php … Read more

Display all posts/pages in a multiple selectbox

get_pages returns an array of post objects, so you would use foreach to iterate over each object and grab the ID and whatever else you want to use: <?php if ( $pages = get_pages( $args ) { echo “<select multiple>”; foreach ( $pages as $page ) { echo “<option value=”{$page->ID}”>{$page->post_title}</option>”; } echo “</select>”; } ?>

Keep post format class with isotope filter

you did not describe what you edited to add the isotope filtering, but you seem to have removed post_class() from this line to add your isotope class: <article class=”<?php echo $termsString; ?>item”> change it to: <article <?php post_class( $termstring . ‘item’ ); ?>”> http://codex.wordpress.org/Function_Reference/post_class