WordPress.org

Forums

The Events Calendar
[resolved] How can i mix my WP's categories with calendar's categories ? (6 posts)

  1. Bflin
    Member
    Posted 1 year ago #

    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/

  2. leahkoerper
    Modern Tribe Support Rep
    Plugin Author

    Posted 1 year ago #

    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

  3. Bflin
    Member
    Posted 1 year ago #

    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.

  4. leahkoerper
    Modern Tribe Support Rep
    Plugin Author

    Posted 1 year ago #

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

    ~Leah

  5. Rachel Goldstein
    Member
    Posted 1 year ago #

    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.

  6. leahkoerper
    Modern Tribe Support Rep
    Plugin Author

    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags