Archived topic
Hide a category from list of categories
6 replies · Started by Alan on June 22, 2018
We would like to create a category called Private in which we can create posts that won't be publicly linked to, but for which we can privately send a URL to the post.
How can we cause this Private category to not show in the list of categories in the sidebar?
If I have to add PHP code to make that happen, how do I do it?
Hi there,
Would a solution like this work better?
http://www.wpbeginner.com/plugins/how-to-allow-public-post-preview-of-unpublished-posts-in-wordpress/
Let me know :)
The Ultimate Category Plugin does not do what I want. Posts in the excluded category do not show up in the Blog of my test site:
https://thinkglobalgreen.org/tech/blog/
But the "Private" category that I excluded shows up in Categories widget in the right sidebar, and one can then see all the posts in that category, so they are NOT hidden from the public:
https://thinkglobalgreen.org/tech/category/private/
The Public Post Preview appears to accomplish the job we need. The trick is to save the draft. Then the checkbox for public preview URL appears. This is the one for my test post:
https://thinkglobalgreen.org/tech/?p=115&preview=1&_ppp=f47a2dc3d4
But since it is not published, people cannot wander in from the public website -- what we want.
Thank you!
No problem :)
I changed this to Not Resolved because the Public Post Preview expires, and we want the link to be available long term.
Let's mark this as resolved and use your topic.
Thanks!