Small mistake in the code
-
Hi, thank you for developing this plugin, its function is pretty simple but it’s the only one I found that work. However, when I installed it, it set the featured picture only for very few posts (even though I had hundreds of posts that qualified). I decided to have a look at the source code and found this in
includes/class-set-featured-images.php
(frome line 60):private function get_posts() { $post_args = array( 'post_type' => $this->post_types, 'nopaginag' => true, ); return new \WP_Query( $post_args ); }
Because of the typo, the parameter
nopaginag
is not recognized and the code is executed for the first ten posts or so. I changed it tonopaging
and it worked fine.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Small mistake in the code’ is closed to new replies.