WordPress.org

Support

Support » Plugins and Hacks » The Events Calendar » [Resolved] How can i mix my WP's categories with calendar's categories ?

[Resolved] How can i mix my WP's categories with calendar's categories ?

  • Hello, we are actually using this awesome calendar for our associative website. We wanted to display articles from our own categories (from wordpress) with the events from the plugin. Our goal is to display all of the article of one the selected category with chronological order without distinctions between events and articles.

    I tried to make two arrays in one in the query, also to merge two arrays in one for the_post() feed but nothing actually works…

    Could you help me please ?

    https://wordpress.org/plugins/the-events-calendar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author leahkoerper

    @leahkoerper

    Hi Bflin,

    As outlined in our forum guidelines, we aren’t able to help with these kinds of customizations. But we do have some handy resources that might be helpful for you:

    Themer’s Guide – provides an overview of how to customize the plugin’s frontend appearance.
    Tutorials – useful tips and tricks for changing how the plugin looks and behaves.
    Technical Docs – provides an overview of the classes and functions in each plugin

    Good luck, and thanks for using The Events Calendar!

    ~Leah

    Hi, thank you for your anwser, and have good luck you too !

    We find out a solution, here is a part, if that can help peoples…

    if(is_category('expositions')){
    			$args = array(
    
    				'post_type'=>array('tribe_events','post'),
    				'tax_query' => array(
    				'relation' => 'OR',
    				array(
    					'taxonomy' => 'category',
    					'field' => 'slug',
    					'terms' => 'expositions'
    				),
    				array(
    					'taxonomy' => 'tribe_events_cat',
    					'field' => 'slug',
    					'terms' => 'expositions'
    				)
    
    			));

    This extract what wanted.

    Plugin Author leahkoerper

    @leahkoerper

    Great, glad to hear that worked for you. And thanks for posting your solution!

    ~Leah

    I would also like to use The Events Calendar categories within other areas of WordPress – where would I put this code? Specifically I want to use it in Featured Category Widget (another plugin), but the dropdown only shows post categories, not Event categories.
    Thanks.

    Plugin Author leahkoerper

    @leahkoerper

    Hi Rachel,

    Hopefully Bflin will chime in about where he used that snippet. Do note that it may not solve the issue since you’re using another third-party plugin. You could also try getting in touch with that widget’s developer to see if they can help out.

    Best,
    Leah

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] How can i mix my WP's categories with calendar's categories ?’ is closed to new replies.
Skip to toolbar