Title: Conflict with plugin WordPress Hide Posts
Last modified: November 5, 2023

---

# Conflict with plugin WordPress Hide Posts

 *  Resolved [egingell](https://wordpress.org/support/users/egingell/)
 * (@egingell)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/)
 * When the plugin, WordPress Hide Posts, is installed and activated, every single
   post gets added to the exclude list. The call to `get_posts()` just returns all
   the posts instead of what it should.
 * Pages are unaffected.
 * I fixed it by changing line 76 of list-last-changes.php to `$excludePosts = array();`
 * Posts are still ignored per WordPress Hide Posts’s rules.
 * The “Link to the page you need help with:” included in this post is that of the
   conflicting plugin page. It’s not my page.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fconflict-with-plugin-wordpress-hide-posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [rbaer](https://wordpress.org/support/users/rbaer/)
 * (@rbaer)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17181956)
 * Thanks for reporting the problem. I was able to reproduce the behaviour. It occures
   as the Hide Posts plugin changes the queries and replaces the filter made by 
   the List Last Changes plugin. Therefore the filter to get only the excluded posts
   gets lost and only the filter from the Hide Posts plugin is applied.
 * To fix this I need first understand if I use the wrong function or filter or 
   if the behaviour of the Hide Posts plugin is wrong.
 * So please stay tuned.
    -  This reply was modified 2 years, 6 months ago by [rbaer](https://wordpress.org/support/users/rbaer/).
 *  Thread Starter [egingell](https://wordpress.org/support/users/egingell/)
 * (@egingell)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17182253)
 * Edit: Double post.
    -  This reply was modified 2 years, 6 months ago by [egingell](https://wordpress.org/support/users/egingell/).
 *  Thread Starter [egingell](https://wordpress.org/support/users/egingell/)
 * (@egingell)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17182259)
 * If that doesn’t work, `get_option('active_plugins')` returns an array of active
   plugins. One could check if said plugin is active and act accordingly.
 *  Plugin Author [rbaer](https://wordpress.org/support/users/rbaer/)
 * (@rbaer)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17182299)
 * OK, I found a way to avoid the problem. Could you test the Version 1.0.2?
 *  Thread Starter [egingell](https://wordpress.org/support/users/egingell/)
 * (@egingell)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17182321)
 * They’re not sorted by Last Modified. I don’t know why, though.
 * Either that or it’s excluding too many posts.
 * Also, you appear to be doing it twice.
    -  This reply was modified 2 years, 6 months ago by [egingell](https://wordpress.org/support/users/egingell/).
    -  This reply was modified 2 years, 6 months ago by [egingell](https://wordpress.org/support/users/egingell/).
    -  This reply was modified 2 years, 6 months ago by [egingell](https://wordpress.org/support/users/egingell/).
 *  Thread Starter [egingell](https://wordpress.org/support/users/egingell/)
 * (@egingell)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17182369)
 * How are posts being ignored in the first place?
 *  [serpher](https://wordpress.org/support/users/serpher/)
 * (@serpher)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17185624)
 * I’ll join here. 1.0.2 broke the website. I got a critical error.
 *  Plugin Author [rbaer](https://wordpress.org/support/users/rbaer/)
 * (@rbaer)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17185801)
 * [@egingell](https://wordpress.org/support/users/egingell/) :
   The filters of the
   Hide Posts plugin will still be active when the posts and pages are collected.
   Maybe this happens on your Website?
 * [@egingell](https://wordpress.org/support/users/egingell/) :
   > How are posts 
   being ignored in the first place?With a custom field on the post/page with the
   name ‘list_last_changes_ignore’ and the value ‘true’. See ‘Exclude page or post’
   in the Description.
 * [@serpher](https://wordpress.org/support/users/serpher/) :
   Can you post the error
   message here? And what version of PHP is running your website on?
    -  This reply was modified 2 years, 6 months ago by [rbaer](https://wordpress.org/support/users/rbaer/).
 *  Thread Starter [egingell](https://wordpress.org/support/users/egingell/)
 * (@egingell)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17186099)
 * >The filters of the Hide Posts plugin will still be active when the posts and
   pages are collected. Maybe this happens on your website.
 * Your new version is hiding posts I’m not hiding with the other plugin.
 * >With a custom field on the post/page with the name ‘list_last_changes_ignore’
   and the value ‘true’. See ‘Exclude page or post’ in the Description.
 * Cool. Maybe I’ll just do that instead of use this other plugin.
 * >Can you post the error message here? And what version of PHP is running your
   website on?
 * In my experience, WP doesn’t give an error message other than “critical error”(
   paraphrased).
 * Oh, and I was mistaken about you doing it twice. It’s once for “posts” and once
   for “pages”. And since the coffee looks nearly identical, may I suggest wrapping
   one code block in:
 * `foreach(array("post","page") as $v) {}`
    -  This reply was modified 2 years, 6 months ago by [egingell](https://wordpress.org/support/users/egingell/).
    -  This reply was modified 2 years, 6 months ago by [egingell](https://wordpress.org/support/users/egingell/).
    -  This reply was modified 2 years, 6 months ago by [egingell](https://wordpress.org/support/users/egingell/).
    -  This reply was modified 2 years, 6 months ago by [egingell](https://wordpress.org/support/users/egingell/).
    -  This reply was modified 2 years, 6 months ago by [egingell](https://wordpress.org/support/users/egingell/).
 *  Plugin Author [rbaer](https://wordpress.org/support/users/rbaer/)
 * (@rbaer)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17186203)
 * Updated to 1.0.3: includes now only the changes to read the exluded pages, but
   not the refactorings (especially type information) that seemed to cause some 
   troubles.
 * [@serpher](https://wordpress.org/support/users/serpher/) :
   I’m still interested
   in your PHP version to understand better what caused the error.
 * [@egingell](https://wordpress.org/support/users/egingell/) :
   Thanks for the suggestion,
   but after the trouble the refactorings cause I’m now more on the defensive side
   with changes 🙂
 *  Thread Starter [egingell](https://wordpress.org/support/users/egingell/)
 * (@egingell)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17186238)
 * I’ve been there.
 * PS. That plugin didn’t just break yours, it also made the columns on /wp-admin/
   edit.php all wonky.
 * [https://photos.app.goo.gl/1kaqqgiVuTKN4ZdX6](https://photos.app.goo.gl/1kaqqgiVuTKN4ZdX6)
 *  Thread Starter [egingell](https://wordpress.org/support/users/egingell/)
 * (@egingell)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17186323)
 * [Submitted for your approval.](https://pastebin.com/x11x6kEz)
 * Marked as resolved. I cant expect you to fix or work around other peoples’ bad
   code. Other dude needs his own thread.
 *  [serpher](https://wordpress.org/support/users/serpher/)
 * (@serpher)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17186716)
 * [@rbaer](https://wordpress.org/support/users/rbaer/)
 * PHP Version 7.4.33
 * Version 1.0.3 works fine though. Thank you!
 *  Plugin Author [rbaer](https://wordpress.org/support/users/rbaer/)
 * (@rbaer)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17189447)
 * Thanks for your feedback and your patience!

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Conflict with plugin WordPress Hide Posts’ is closed to new replies.

 * ![](https://ps.w.org/list-last-changes/assets/icon.svg?rev=2445615)
 * [List Last Changes](https://wordpress.org/plugins/list-last-changes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-last-changes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-last-changes/)
 * [Active Topics](https://wordpress.org/support/plugin/list-last-changes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-last-changes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-last-changes/reviews/)

## Tags

 * [conflict](https://wordpress.org/support/topic-tag/conflict/)
 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [ignore](https://wordpress.org/support/topic-tag/ignore/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * 14 replies
 * 3 participants
 * Last reply from: [rbaer](https://wordpress.org/support/users/rbaer/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/conflict-with-plugin-wordpress-hide-posts/#post-17189447)
 * Status: resolved