numberposts not working

Your problem is $tax_country, more actually the value. get_the_term_list() does not return what you think Returns an HTML string of taxonomy terms associated with a post and given taxonomy. Terms are linked to their respective term listing pages. Even if you strip away the tags, you will just be left with a string of term … Read more

How to get the current user post and it’s ID?

So digging around a little i couldn’t find a solution where the WP_Query wasn’t used, so i just stuck with the query method, Using WP_Query this snippet will display the latest post that is published by the user that is logged in. $user_id = get_current_user_id(); $args=array( ‘post_type’ => ‘POSTTYPE’, ‘post_status’ => ‘published’, ‘posts_per_page’ => 1, … Read more