Venue infinite generate URL

Home Forums Calendar Products Events Calendar PRO Venue infinite generate URL

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1322527
    Olivier
    Participant

    Hi,
    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 🙂

    #1323058
    Cliff
    Member

    Hi, 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.

    #1323108
    Olivier
    Participant

    Hi 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-pub

    I’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

    #1323582
    Cliff
    Member

    Got 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.

    #1323697
    Olivier
    Participant

    Okay 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 ?
    Thanks

    #1325378
    Cliff
    Member

    It’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.

    #1335554
    Support Droid
    Keymaster

    Hey 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

    #1340252
    Nico
    Member

    Hey,

    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,
    Nico

    #1350158
    Support Droid
    Keymaster

    Hey 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Venue infinite generate URL’ is closed to new replies.