Need to display events on frontpage

Home Forums Calendar Products Events Calendar PRO Need to display events on frontpage

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #960892
    collectif12
    Participant

    Hi,

    I would like to be able to display the next 6 events on my website frontpage.
    I checked the following option in Setting > General > Include events in main blog loop.
    But I can not find the category name in which events are classified. The ‘tribe_events’ category seems not to be the right one.

    //Query setup
    			$blog_posts = new WP_Query( apply_filters( 'wmhook_template_front_query_args_blog', array(
    					'post_type'           => 'post',
    					'category__in'        => 'tribe_events',
    					'posts_per_page'      => 6,
    					'paged'               => 1,
    					'ignore_sticky_posts' => true,
    				) ) );

    I read Benjamin’s solution but it’s not exactly what I need.

    Inserting a list of events on a page (including recurring events)

    Any tips to help me solve this issue ?

    Thanks a lot

    #961056
    collectif12
    Participant

    Hi,

    I updated the site to WordPress 4.2.2.
    I Still need assistance 🙂

    Thanks

    #961076
    Brian
    Member

    Hi,

    Thanks for using our plugins. Please note we may take up to 24 hours to respond your messages. We try to get to it sooner though. 🙂

    I looked at your coding and you need to change it to this:

    'post_type' => 'tribe_events',

    And remove this:
    'category__in' => 'tribe_events',

    Our taxonomy is called tribe_events_cat

    So this may work in the loop:

    tribe_events_cat => 'event-category-slug'

    Also you may find this list of custom fields and custom post types useful:

    https://gist.github.com/jesseeproductions/c2df90a56827dae990a0

    Let me know if you have any follow up questions.

    Thanks

    #971348
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Need to display events on frontpage’ is closed to new replies.