mikeill

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Display Events Map within Theme Template #1480416
    mikeill
    Participant

    Sure, man.

    Here’s a pic with what I want: https://d.pr/free/i/81Q8Fg

    This is within a template php file we’re pulling into the front page of the site.

    • This reply was modified 6 years, 1 month ago by mikeill.
    in reply to: Display Events Map within Theme Template #1479453
    mikeill
    Participant

    Hey Cliff,

    When you say that you don’t think do_shortcode(‘[tribe_community_events]’); works unless Pretty Permalinks are disabled, you mean we need to have the default url string in order for it to work?

    I definitely don’t see anything with do_shortcode(‘[tribe_community_events]’); with /post_name permalink structure.

    What I think I want to do is hook into the ‘[tribe_mini_calendar]’ function or override a template so we can modify the output to our linking.

    Does that make sense? For example, I want to show:

    1. the map of events
    2. a create event button
    3. a featured event or two.

    in reply to: Display Events Map within Theme Template #1473353
    mikeill
    Participant

    Hey Victor. I hadn’t even realized that this thread had been responded to. Yes. We created a front-page.php template and are adding it within a Bootstrap column.

    One of the guys on the project got as far as adding this to the template:

    $query = new WP_Query( $args );
    $total_events = $query->post_count;
    wp_reset_query();
    if ( $total_events ) {
    echo do_shortcode( '[tribe_events tribe-bar="false" view="map"]' );
    } else {
    echo do_shortcode( '[tribe_mini_calendar]' );
    }

    And it looks okay. Does that look like the right way of doing it? I’d like to modify the template to not show the listing of events, or perhaps only show a featured event. And would also like the “create event” button to be moved into the wrapper div for the map.

    Thanks and happy Thursday.

Viewing 3 posts - 1 through 3 (of 3 total)