Remove custom post type generated by a plugin (The Events Calendar) [closed]

Custom Post Type registrations in WordPress are not persistent. CPT only exists as long as registration code had been executed in a current page load. If the registration is disabled the data will be in database, but pretty much ignored and invisible to WP core. It is hard to guess what happened in your specific … Read more

WP_Query for posts that have postmeta assigned to a taxonomy

So I found the solution after tons of searching from the events calendar’s website and modified it to suit my needs. The code is as shown below: (Note I also removed the array to string conversion since it’s pretty pointless.) <?php // Support for multiple locations to be filtered. $request_cities = array_map(function($item){return utf8_decode(urldecode($item));}, explode(‘+’, $_REQUEST[‘city’])); … Read more

The Events Calendar featured image as body background?

<?php $id = get_the_ID(); if (has_post_thumbnail( $id ) ): $thumb = get_the_post_thumbnail_url($id, ‘full’); elseif (tribe_event_featured_image( $id)): $thumb = tribe_event_featured_image( $event_id, ‘large’, false, false ); else: $thumb = get_template_directory_uri().’/images/background.jpg’; endif;?> <body <?php body_class(); ?> style=”background-image: url(‘<?php echo $thumb;?>’); background-size: cover;”> ?> Also you don’t actually need the elseif statement, tribe_event_featured_image is a wrapper for the post … Read more