Add liked posts to user account

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

wp_insert_post deleting previous post custom meta

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

Bulk delete (custom type) posts that are not visible on website

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