• Resolved suewright

    (@suewright)


    HELP! I am very new to Events Calendar
    I am building a school reunion site. I am using the latest versions of WP 4.9.8, Event calendar 4.6.26 and event tickets plus 4.8.3

    I have managed to set up an event with tickets etc

    This is going to be a single event affair. All I want is for the event to open as the front page directly. I am not bothered about the calendar bit. Just the event. I have tried making a post the front page, I have tried short codes, redirection, altering the main ULR but it just will not open.

    This is the ulr of the event
    https://www.wbcsreunion.co.uk/event/class-1971-1978

    Please what am I doing wrong, no doubt it’s staring me in my face. The slugs are set to events and event

    Thank you

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi. We’ve actually had this request before. Here is a snippet of code you can place into your theme’s functions file that will allow you to choose an event to show on the front page of your site:

    function tribe_add_events_to_dropdown( $pages, $r ){
        if(isset($r['name']) && 'page_on_front' == $r['name']){
            $args = array(
                'post_type' => 'tribe_events'
            );
            $stacks = get_posts($args);
            $pages = array_merge($pages, $stacks);
        }
    
        return $pages;
    }
    add_filter( 'get_pages', 'tribe_add_events_to_dropdown', 10, 2 );

    After adding this, go to the Settings -> Reading page and you should see events in the dropdown box to choose from.

    Let me know how this works out for you.

    Mike

    Hey there,

    Since this topic has been inactive for a while, I’m going to go ahead and mark as resolved. Don’t hesitate to reopen or create a new topic if you still need help! ??

    Take care,
    Ed ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘help required with a single event’ is closed to new replies.