Home › Forums › Calendar Products › Events Calendar PRO › Venue infinite generate URL
- This topic has 9 replies, 5 voices, and was last updated 8 years, 7 months ago by
Support Droid.
-
AuthorPosts
-
July 18, 2017 at 1:35 am #1322527
Olivier
ParticipantHi,
There is a big issue with “venue”.
I took a look with hotjar and Google on my URLs for my website.
Locations generate infinite duplicate urls. It’s a really bad thing for Google.
For example : http://www.umontpellier.fr/lieu/faculte-de-medecine-2-rue-ecole-de-medecine-montpellier/
http://www.umontpellier.fr/lieu/faculte-de-medecine-2-rue-ecole-de-medecine-montpellier/2/?tribe_venue=faculte-de-medecine-2-rue-ecole-de-medecine-montpellier
http://www.umontpellier.fr/lieu/faculte-de-medecine-2-rue-ecole-de-medecine-montpellier/3/?tribe_venue=faculte-de-medecine-2-rue-ecole-de-medecine-montpellier
and again, and again …
How we can fix it ? It could be possible to deactivate link on location ? To have no page for each location. It could be just an information on event without link ?Thanks for help 🙂
July 18, 2017 at 9:23 pm #1323058Cliff
MemberHi, Olivier.
I visited http://www.umontpellier.fr/lieu/faculte-de-medecine-2-rue-ecole-de-medecine-montpellier/ and it’s a 404.
You can see a single venue page at our demo site:Â http://wpshindig.com/venue/green-dragon-bistro-brew-pub/
I’d guess the “2” and “3” URLs are if this venue has multiple pages of upcoming events. Is this correct?
If this is causing an issue for you, maybe the posts_per_page argument could be set to -1Â (unlimited) whenever on a single venue page. This way, there won’t be any pagination added to the single venue page.
There are other ways to solve this, like your idea of fully deactivating single venue pages (only enabled when Events Calendar PRO is active).
Please let me know your thoughts.
July 18, 2017 at 11:02 pm #1323108Olivier
ParticipantHi Cliff,
Thanks for your assistance.
Sorry for 404 error. I fixed the problem in emergency.
Your example is perfect (http://wpshindig.com/venue/green-dragon-bistro-brew-pub/) because the “next events” button is infinite. You can click on without end : http://wpshindig.com/venue/green-dragon-bistro-brew-pub/19328/?tribe_venue=green-dragon-bistro-brew-pubI’m interesting for fully deactivating single venue pages. How can i do that with other way than delete a part of the code of single-event.php :
<!-- Event footer --> <div id="tribe-events-footer"> <!-- Navigation --> <h3 class="tribe-events-visuallyhidden"><?php printf( __( '%s Navigation', 'the-events-calendar' ), $events_label_singular ); ?></h3> <ul class="tribe-events-sub-nav"> <li class="tribe-events-nav-previous"><?php tribe_the_prev_event_link( '%title%' ) ?></li> <li class="tribe-events-nav-next"><?php tribe_the_next_event_link( '%title%' ) ?></li> </ul> <!-- .tribe-events-sub-nav --> </div> <!-- #tribe-events-footer -->Thanks
July 19, 2017 at 3:29 pm #1323582Cliff
MemberGot it. Thanks for explaining.
I’ve logged the bug to our developers.
I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release.
I apologize for this issue and appreciate your understanding and patience.
Until that fix is released, I’d personally suggest just removing the navigation (even without changing posts_per_page to unlimited). To do so, please create this file:Â [your-child-theme]/tribe-events/list/venue-nav.php
It can be an empty file; it just needs to exist.
Please let me know how this goes for you.
July 19, 2017 at 11:24 pm #1323697Olivier
ParticipantOkay thanks. So it’s not possible to deactivate the single venue page ? There is no option for choose activate or not the single venue page ?
ThanksJuly 24, 2017 at 9:38 am #1325378Cliff
MemberIt’s definitely possible because single Venue pages are only enabled by activating the PRO add-on (I think by filtering the custom post type registration arguments).
However, undoing this custom post type modification that PRO does wouldn’t also undo adding the links to Venue single pages and other such things around the site.
So it’s technically possible to deactivate the Venue single pages when PRO is active, but it’s more code-heavy than the solution I suggested in my previous reply.
You could submit a feature request for option in PRO to check a box to deactivate Venue single pages.
Please let me know if you have any follow-up questions on this topic.
August 15, 2017 at 9:35 am #1335554Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support TeamAugust 25, 2017 at 7:54 am #1340252Nico
MemberHey,
Just wanted to share with you that a new maintenance release is out, containing a fix for this issue ?
Find out more about this release → https://theeventscalendar.com/maintenance-release-week-21-august-2017/
Please update the plugins and let us know if the fix works for you,
Cheers,
NicoSeptember 16, 2017 at 9:35 am #1350158Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Venue infinite generate URL’ is closed to new replies.
