[Plugin: Events Manager] Show events in post category and tag cloud widgets (3 posts)

  1. edbeckmann
    Posted 3 years ago #


    Firstly, EM is great and for people who want to list events alongside posts this link helps.

    My problem is similar but slightly different. I use a child of twenty eleven theme and want events to appear in the categories and tag cloud widgets alongside normal posts, as if they were a normal post using the same post categories and tags. I guess this involves tweaking the widget code, which I've never done but am willing to try. Events are set to be posts, categories and tags are enabled.

    Apologies if this has been answered elsewhere. The site is here.

    Many Thanks

  2. edbeckmann
    Posted 3 years ago #

    PS to above

    I've added agelonwl's code into the functions.php of my child theme with no apparent effect.

    add_filter( 'pre_get_posts', 'my_get_posts' );
    function my_get_posts( $query ) {
    	if ( is_home() && false == $query->query_vars['suppress_filters'] )
    		$query->set( 'post_type', array( 'post', 'event' ) );
    	return $query;
  3. iversoncru
    Posted 3 years ago #

    I would like to solve that as well, exactly the same.
    Would anyone answer? ;(

Topic Closed

This topic has been closed to new replies.

About this Topic