Home › Forums › Calendar Products › Events Calendar PRO › Hide event, unless you have exact URL
- This topic has 3 replies, 2 voices, and was last updated 10 years, 7 months ago by
George.
-
AuthorPosts
-
September 3, 2015 at 1:23 pm #1001782
xrossglobalgroup
ParticipantHello. I need to hide certain events for the general visitors, so they should not show up. In specific I need the world’s largest entertainment company to check one of the events I would like to publish since it’s full of copyrights and trademark issues. So i want to send them a link with which they can check out the description and pictures. If I set the event to “privately published” the URL gives a 404 on another browser. Am I doing something wrong, or is simply not possible?
September 4, 2015 at 11:36 am #1002212George
ParticipantHey @xrossglobalgroup,
The exact functionality you describe is unfortunately not quite possible by just using “privately published” 🙁
I’m sorry to bear that news! Using the “Password Protection” instead might be a close similarity to what you’re looking for here – you could set a simple password and send that instead of the link to individual users who you want to grant access to…
What are your thoughts on that?
Cheers,
GeorgeSeptember 4, 2015 at 11:45 am #1002215xrossglobalgroup
ParticipantThank you George. Your idea is nice, but it would still show the event in my list of events. I need to keep it out there. I will make this a development suggestion.
September 8, 2015 at 8:58 am #1002946George
ParticipantGood point @xrossglobalgroup, I forgot about the requirement of yours to keep it out of the query and am sorry about forgetting that detail!
Definitely do make your voice heard about this, we’d love your feedback on our official “UserVoice” page and anything you post here can get votes from other users → http://tribe.uservoice.com. We take that page and those votes seriously so please do post your feedback.
In the meantime, before closing out this thread, I just wanted to note that if you’re savvy with code a bit, you might be able to hide events that require passwords from various events views by using the WordPress filter pre_get_posts and using the array( ‘has_password’ => false ) parameter within the Query to only show events that explicitly do not require a password to view.
You can learn more about both things here:
- https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts
- https://codex.wordpress.org/Class_Reference/WP_Query#Password_Parameters
Just an idea, in case you’re able to write the necessary code there.
Sorry that you didn’t find quite what you needed “out-of-the-box” with our plugins – stay tuned for plugin updates and check the readme file “Changelogs” to see if any improvements in this area of the plugin are ever included in a release!
Cheers,
George -
AuthorPosts
- The topic ‘Hide event, unless you have exact URL’ is closed to new replies.
