WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Events Manager] Show events in post category and tag cloud widgets

[Plugin: Events Manager] Show events in post category and tag cloud widgets

  • edbeckmann
    Member

    @edbeckmann

    Hi

    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
    Ed

Viewing 2 replies - 1 through 2 (of 2 total)
  • edbeckmann
    Member

    @edbeckmann

    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;
    }
    iversoncru
    Member

    @iversoncru

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Events Manager] Show events in post category and tag cloud widgets’ is closed to new replies.