This is how I did it in the end –
<?php
$post_args = array(
'post_type' => 'tribe_events',
'eventDisplay'=>'custom',
'start_date' => date( 'Y-m-d H:i:s', strtotime( '-365 days' ) ),
'tax_query' => array(
array(
'taxonomy' => 'tribe_events_cat',
'field' => 'slug',
'terms' => 'management-leadership',
),
),
'meta_query' => array(
array(
'key' => 'associated_people',
'value' => $current_user,
'compare' => 'LIKE'
)
)
); ?>
Related Posts:
- Modern Tribe Calendar wp-query with meta query not working at all
- Sorting dynamic select/dropdown for Contact Form 7 of Modern Tribe Events posts
- Using variables as href in anchor tags (PHP) [closed]
- Uploading media with the REST API
- Creating custom Woocommerce attribute taxonomies from a plugin
- Add extra field to users
- Enable/disable post revisions programmatically
- Passing JSON data from WP Query into AJAX causing NULL errors
- How to redirect users to custom lostpassword page?
- Get post meta in enqueued js file
- Can I write ‘RewriteCond’ using ‘functions.php’?
- Index showing source code
- Use WordPress Text Editor in non-wp page
- StudioPress: add meta tag to every page [closed]
- How to add specific menu on a specific page or pages
- How do I get URL from WP_HTTP object?
- Overriding a theme redux file in child theme
- Validate a users email address when using gmail to register
- Advanced Custom Fields Image Field returning ID instead of URL [closed]
- How can I add a specific, custom widget to my theme’s header.php?
- How do i get (unique) page name?
- selected menu item
- How to attach a uploaded video to post from front end
- How do I use the Simple HTML DOM Parser in plugin when other plugin already uses it?
- Change WordPress default registration error text [Error: This username is invalid because it uses illegal characters. Please enter a valid username.]
- How to add a second ‘place order’ button in WooCommerce [closed]
- PHP to Programatically delete a file
- Overriding WP login credentials
- remove wp floating submenu in wp dashboard
- ACF: how do I get the fields and its values of a specific group?
- Add a product to checkout via form
- Find exactly what php files are responsible for each php process
- Remove from shortcode
- WordPress Multiple Navigation bars
- Adding a widget function into the php theme file
- Login to wordpress by clicking a link and specifying usernaname and password in url
- $wpdb->insert() does not Insert record in a table
- How to change menu labels
- How to get all author posts outside of author templates
- How to obtain the current website URL in my theme?
- Grouping posts by a custom meta value
- Remove Custom Divs from AMP pages
- Read array in php?
- How to get post ID in a Page?
- Separation of presentation and code – WordPress
- Can’t update multiple rows with $wpdb query
- Is it possible to display a DIV to not logged in users and then change it for users who are logged in?
- Live to Local on MAMP, not working, outputting functions.php code
- Get a value inside a get_post_meta Array
- admin-ajax GET response bad request
- How to disable all logins except Network login in WordPress Multi site?
- Shortcode to log user into current URL
- Create Div Wrapper On 3rd Iteration Or When Query Loop Items Run Out
- How to get the slug of the homepage when editing it in WP admin?
- wordpress admin part is not accesbile after server shifting
- making php value numeric
- Post ID wrong in Functions.php
- How to forbid users to change their first, last and screen names?
- Using PHP Code Snippets to query a database, $dbconnection->get_results is outputting nothing
- How to assign page id with array in page_scheduled_event
- html form: redirect page after form completes submit function and posts data
- WordPress Custom Form – Getting Query Vars, Weird Glitch?
- Creating plugin with front-end pages
- Storing huge number of users in wordpress
- update_term_meta() only updating once on certain meta keys
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- Adding Custom css file in the wp-uploads directory with custom php functions
- Form from within a page
- How can I edit a php custom page template to work in other themes?
- How to add a DELETE button to the “Edit User” WordPress admin page?
- Cannot dequeue Elementor Font Awesome css
- How to find and delete a menu item in php?
- Using zip code to display custom data in Admin Order Details
- Post permalink buttons all going to the first post
- Looping over an array of URL end points
- Following/Followers Users list Using Ajax Pagination inside Author Profile
- Why should I need to add init action to include PHP file to WordPress Plugin?
- How to call a function from functions.php with ajax?
- How to fix the loop statement
- How can you disable search for non-members on your WordPress website.
- Query Posts from Custom Field Value Taxonomy Set by Admin
- Custom Thumbnails [closed]
- WordPress error on my website
- Limit Taxonomy Parents
- Migrate php folder to WordPress
- Enabling XSendFile causes 404 for images on WordPress Multisite / Network
- How to add feature image url in my template file and content as well?
- Trying to fix multiple category drop down
- Trying to post information from a remote database to wordpress page
- How to add button to top of theme customizer?
- WP white screen of death after duping a site that works fine on same server
- How can I list only Subcategories in Woocommerce
- PHP Call to External Database
- How can I execute $string = if();? [closed]
- Display Post Titles on top of the_post_thumbnail()
- Options.php loop won’t show!
- Infinite Scroll Plugin: How to first show 6 posts and then 2 posts thereafter with Infinite Scroll Plugin?
- How to add custom user role into wordpress
- change title of page dynamically
- Custom Filtering date with newsletter