I’m suddenly getting this same issue after updating to WP version 5.4.1. Did you find a solution? I installed Enabled Media Replace as well and no difference.
-
This reply was modified 5 years, 11 months ago by dougburnett.
I found the solution. I didn’t realize I needed to reset the post query. The correct code is:
`<?php
$counter = 1; //start counter
$grids = 3; //Grids per row
$args = array(
‘posts_per_page’=> 1,
‘ignore_sticky_posts’ => 0
);
$query = new WP_Query($args);
if($query->have_posts()) : while($query->have_posts()) : $query->the_post(); ?>
//Do stuff
<?php $counter++; ?>
<?php endwhile; endif; wp_reset_query(); ?>
Thanks for the posting. I was also having the same problem where I was getting a server error. It didn’t work again until I deactivated my “Post Notification” plugin. Thanks for the idea. Everything is running smoothly now.