"See all" layout not showing full content in genesis framework

Home Forums Calendar Products Events Calendar PRO "See all" layout not showing full content in genesis framework

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1033370
    Rocio
    Participant

    Hi again,

    I’m having another issue with events calendar pro, in this case with the view of recurring events (the “see all” link).I’m using genesis framework, it is configured to show the excerpt in archive pages. I’m using a version of this snippet: https://gist.github.com/jesseeproductions/8d0947375b5ba10a1b5e to force to show the full content in the tribe events pages.

    It’s working fine in all the event pages except in recurring events (in the /all page of a recurring event). You can see the incorrect layout generated in the link I’m attaching, clicking in the “see all” link.

    For what I see, the snippet is targeting all the layouts for tribe events pages, but is not targeting the “see all” layout, and it is showing an normal archive page with excerpt.

    If I change the genesis archive settings to show full content, all works fine, but I need to only show excerpt in all the other archive pages of the website.

    Is there any way I can target/include the see all layout in this snippet? or any workaround?

    thanks in advance!

    • This topic was modified 10 years, 5 months ago by Rocio.
    • This topic was modified 10 years, 5 months ago by Rocio.
    • This topic was modified 10 years, 5 months ago by Rocio.
    • This topic was modified 10 years, 5 months ago by Rocio. Reason: code is eating my post :)
    • This topic was modified 10 years, 5 months ago by Rocio.
    • This topic was modified 10 years, 5 months ago by Rocio.
    • This topic was modified 10 years, 5 months ago by Brian.
    #1033380
    Rocio
    Participant

    Sorry, it is not displaying the full ticket because the gitub link and I can’t edit the post anymore. The first part of the post disapeared:

    I’m using genesis framework with content archive setting set to display post excerpt.

    I’m using this snippet to force full content in tribe events pages

    add_filter( 'genesis_pre_get_option_content_archive', 'tribe_genesis_event_archive_full_content' );
    function tribe_genesis_event_archive_full_content() {
     
        if ( class_exists( 'Tribe__Events__Main' ) && class_exists( 'Tribe__Events__Pro__Main' ) ) {
            if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || tribe_is_map() || tribe_is_photo() || tribe_is_week() ) {
                return 'content';
            }
        } elseif ( class_exists( 'Tribe__Events__Main' ) && !class_exists( 'Tribe__Events__Pro__Main' ) ) {
            if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() ) {
                return 'content';
            }
        }
    }
    #1033465
    Brian
    Member

    Hi,

    I can help out here as I have written most of the Genesis snippets.

    I am not see the issue on my test site. If the have archives on excerpt or full content the display of the /all/ page is the same for me.

    It is also setup as a single template so I am not sure why on your site it is doing that.

    You could try using another conditional from the list here to target either single events or all event templates and see if that can fix it for you:

    https://gist.github.com/jesseeproductions/903f5ca75877b713c674

    Maybe adding this might work:

    tribe_is_event()

    I can try to help out some more here, but limited in support 3rd party coding so I might not be able to resolve this with you.

    Thanks

    #1033613
    Rocio
    Participant

    Hi again, thanks for your reply,

    I think the problem is I’m using a custom page template in the dropdown to display the calendar pages. If I choose default events calendar page all is working fine. But we need a custom template to use genesis layouts, sidebars, etc. (they are not working with your template)

    The custom template only have this content:

    genesis();

    If I use this custom page template, its like tribe don’t target the recurring events page as a tribe page (I’m thinking out loud, i’m not sure what is the real problem).

    I say this because the only way I can solve this is using is_single() generic conditional:

    add_filter( 'genesis_pre_get_option_content_archive', 'tribe_genesis_event_archive_full_content' );
    function tribe_genesis_event_archive_full_content() {
     
        if ( class_exists( 'Tribe__Events__Main' ) && class_exists( 'Tribe__Events__Pro__Main' ) ) {
            if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || tribe_is_map() || tribe_is_photo() || tribe_is_week() || is_single() ) {
                return 'content';
            }
        } elseif ( class_exists( 'Tribe__Events__Main' ) && !class_exists( 'Tribe__Events__Pro__Main' ) ) {
            if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() ) {
                return 'content';
            }
        }
    }

    Any other tribe conditionals are not working whith custom template page (I’m talking about /all/ page, of course), I’d try tribe_is_event() , tribe_is_event_category(), tribe_is_in_main_loop() , tribe_is_view(), ‘tribe_events’ == get_post_type() , is_singular( ‘tribe_events’ ), etc, etc, etc.

    Now it’s working, but I know is_single() is not the best solution, it’s too generic.

    Any other idea or workaround?

    Cheers,

    #1033636
    Brian
    Member

    Hi,

    I looked on my site and the only conditional that shows is is_single().

    I guess because it is not really a single event it does not work with the is_singular.

    You might be able to try tribe_is_recurring_event() and see if that works, but I am not sure it will as it will try to find an event id to use.

    The query string for the page looks like this:

    post_type=tribe_events
    tribe_events=recurring-event
    name=recurring-event
    eventDisplay=all

    So if you can read the global $wp_query variable and find all those at one time that might enable you to target the all page.

    Can you get that to work?

    #1053947
    Brian
    Member

    Hi,

    I have updated our Genesis Guide and it includes a way to target the recurring event “/all/” page:

    Genesis Framework & Event Submissions

    You want to replace the filter you were using before to show full content with this one.

    That enable all the content to show on that page.

    The new snippet also enables you to use any Content Archive Setting now for your posts as it is bypasses for the events.

    Cheers

    #1076662
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

    #1077137
    Geoff
    Member

    Hey there!

    Just wanted to jump in here and let you know that we released The Events Calendar 4.0.6 last night and it included a fix for this issue. Please check your WordPress updates, or you can also grab the latest copy over at WordPress.org.

    Thanks for your patience while we worked on this! Please feel free to open a new thread if you continue to experience the same issue or have any other questions that pop up during updating and we’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘"See all" layout not showing full content in genesis framework’ is closed to new replies.