Insert Related Article Button Stopped Working
-
Thank you Enguerran for creating this plugin. I have been using it for about a year now I think but I noticed yesterday the Insert Related Article Button stopped working.
When I click the button the popup no longer shows a list of articles to insert into the page and the filter doesn’t work because the list is empty.
I hadn’t done any changes to my site recently so I don’t think it was an update that caused the issue. I upgraded to 4.7.3 to see if it would fix the problem and did a repair on my db but the update didn’t fix the problem and the database was fine.
I’m not really sure how to debug this. I changed
show_posts
in related-post-shortcode/related-post-shortcode.php from -1 to 450 and the plugin will then populate the list but not with all the posts. I also added thepost_status
to just show published posts mostly because I wanted to see if it would remove drafts from the list.function related_post_shortcode_getPostsIds() { $posts = query_posts(array( 'show_posts'=> 450, 'post_status' => array( 'publish'), ));
I assume this means query_posts is failing to return the the list of all my posts but as I am not a wordpress developer I’m not really sure how to further debug this.
Anyone having a problem with this?
- The topic ‘Insert Related Article Button Stopped Working’ is closed to new replies.