I cannot add an event category
-
This code works – except for the category. I have an existing event-category (…wp-admin/term.php?taxonomy=tribe_events_cat&tag_ID=4&post_type…)
$args = [ 'title' => 'Cool Event with Cost', 'description' => 'This is showing that the description can be a long string and...', 'start_date' => date( 'Y-m-d H:i:s' ), 'end_date' => date( 'Y-m-d H:i:s', strtotime( '+2 hours' ) ), 'url' => 'https://example-external-website.com', 'cost' => 15, 'currency_symbol' => '€', 'currency_position' => 'prefix', 'status' => 'publish', 'category' => [ 4 ], ]; $result = tribe_events()->set_args( $args )->create();
My amount of grey hair is increassing ;). Can anybody help?
The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘I cannot add an event category’ is closed to new replies.