I have a front-end form which stores some data related to that post and adds that post to their favorite
posts when the user clicks on it. So now my concern is when the user clicks on the favorite posts template it should only see their favorite post.
$args = array('posts_per_page' => 20, 'paged' => $paged, 'post_type' => 'post', 'post_status' => 'publish' );
This is my query right now. How can I modify it that it only show those post which the user mark as favorite?
add_post_meta($postid, 'favpost'.$userID, $postid);
This is how the user marks their favorite post. Can anyone guide me on how I can get my data base on post_meta
?