How can I add a meta[] to my custom post type and search by term with the Rest API?
How can I add a meta[] to my custom post type and search by term with the Rest API?
How can I add a meta[] to my custom post type and search by term with the Rest API?
I have utilized this plugin for a similar situation: https://de.wordpress.org/plugins/ultimate-member/ Your users can register and create a profile. As the plugin comes with a lot of add-ons I’m not sure if there maybe is an add-on that solves your “attend” issue. If yes, problem solved. If not you could simply add a function which saves … Read more
Show custom post status when logged out
SOLVED… for now I think this code was my problem: // use reset postdata to restore orginal query wp_reset_postdata(); if ( $current_slug == $approve_slug && $success === 1 && isset ($success) ) { $next_pay_stub_id = create_next_pay_stub( $term->term_id ); } } //this is the closing bracket of my foreach statement which I changed to if ( … Read more
How to sort by multiple values in a nested WP_Query
I suggest you use MySQL “DELETE”. See this article: http://www.mysqltutorial.org/mysql-delete-join/ So, something like this: DELETE wp_posts, wp_postmeta FROM wp_posts INNER JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE meta_key = ‘expiry date’ AND meta_value <= ‘2017-11-27’ AND post_status != ‘publish’ NOTE: ‘wp_’ could be different depending what your table prefix is set to in your wp-config.php … Read more
CPTs relationship
Querying posts that don’t have a certain key value or don’t have the key
First of all. You’ll need to follow the ajax best practices in WordPress. That means, add the right actions for your functions and call them also with the admin ajax url. So your jQuery ajax should call the admin_url, and you’ll need to send along an ‘action’ data in this example, the name of the … Read more
For redirect to custom url you need to change post detail link to custom url. You simply remove post link and apply custom url. <a href=”https://wordpress.stackexchange.com/questions/353574/<?php echo get_field(“link’); ?>”><?php the_title(); ?></a> In my case “link” is custom url.