Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello matheo972!

    As far as I see… https://www.site.fr/wp-admin/edit.php? >>>> post_type=tribe_events <<<<

    is a Post Type and not a category… post type are getting like this:

    yourwebsite.com/wp-json/posts?type=tribe_events

    and to get a Taxonomy, you must use: “filter[taxonomy]=your_taxonomy”

    example of full website with and without custom post and both using custom category:

    (with custom post type) yourwebsite.com/wp-json/posts?type=your_post_type&filter[taxonomy]=your_taxonomy

    (without custom post type) yourwebsite.com/wp-json/posts?filter[taxonomy]=your_taxonomy

    hope that helps you. (with v2 you must go to v2 plugin site… or add “/wp-json/wp/v2/” instead of just “/wp-json/” to my endpoints.

    Remember to replace “yourwebsite.com” with your actual website and “your_post_type” and “your_taxonomy” with the same logic.

    Thread Starter matheo972

    (@matheo972)

    Hello mkiisoft,

    Thanks a lot, understood and it’s helping me a lot to get my post.
    But for the events, I’m using a plugin : the events calendar, that’s why I think that it will not work for my events post :/

    (Sorry for my english if i do some mistakes)

    i was looking on their web site : https://theeventscalendar.com/support/forums/topic/json-output-possible/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get Event Json route ?’ is closed to new replies.