I’d like to use PostX to display my most recent posts, but I want to be able to save a Private post and NOT have it included in the query. I don’t want it displaying private posts for anyone, logged in or not. I don’t see a way to do that, either in the free version or as a pro upgrade. Is there a way to limit the query to publicly published posts only?
PostX queries are designed to show public posts by default.
You don’t need additional configurations to ensure private posts don’t display; private posts remain visible only to logged-in users with the required permissions.
However, if you encounter an issue with private posts showing, it could be due to specific settings or customizations. Moreover, kindly share your page link and screenshot of your backend postx grid configuration.
I know that the private posts are only shown to logged in users; what I need is a query that skips private posts for ALL users, regardless of whether they have permission to see private posts. Is there a way to do that?
The private posts by default hide for the all users if you don’t have other plugin to configure the permission. When you make the post private, it will not visible on our grid or query.
Can you please share a screenshot?
Also, you can follow the third steps of this article – READ FIRST
We don’t have any user permission plugins, but I deactivated all of the other plugins except GenerateBlocks and PostX, and I switched to the TwentyTwentyFive theme. I added a private blog post, and when I go to the homepage, I see this:
Thanks for checking on that — somehow, that actually seems worse? It’s odd to me that an author could add a their own private post and then *not* see it, while the editor *does* see it. Regardless, what I need is for the view to be the same for everyone, including editors, admins, what have you — and for that view to be published posts only. Is there no option to simply suppress private posts in the PostX query? Perhaps a code snippet I could add to the functions.php file? Anything in the Pro version to control this?