Reputation
248
Next privilege 250 Rep.
View close votes
Badges
4 18
Impact
~31k people reached

  • 0 posts edited
  • 0 helpful flags
  • 26 votes cast
Apr
4
awarded  Popular Question
Mar
30
awarded  Notable Question
Mar
29
awarded  Notable Question
Mar
11
revised Remove slug from custom post type post URLs
added 24 characters in body
Mar
10
comment Authenticating a user with the WP-API V2 in Postman
@cybmeta so you're saying its impossible to use Postman and the WP-API to make POST requests because of the nonces. Correct?
Mar
10
comment How to add style in functions.php depending on conditions?
Interesting, I've never ran into that and am using this code within functions.php currently. However as mentioned in my answer WP categories and taxonomies are tricky.
Mar
9
revised Authenticating a user with the WP-API V2 in Postman
deleted 33 characters in body
Mar
9
revised Authenticating a user with the WP-API V2 in Postman
added 31 characters in body
Mar
9
asked Authenticating a user with the WP-API V2 in Postman
Mar
9
answered How to add style in functions.php depending on conditions?
Jan
21
awarded  Popular Question
Dec
16
revised Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working
deleted 307 characters in body
Dec
16
revised Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working
edited title
Dec
16
comment Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working
I can't print_r because its an ajax function. I have however sent $post->ID back to JS and it outputs post ids as expected. The issue is with get_the_terms accepting it as an argument. Right?
Dec
16
revised Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working
deleted 176 characters in body
Dec
16
comment Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working
Sorry @PieterGoosen I've added the function until the end of the foreach. The function is for a JS AJAX call and is pretty dynamic. Keeping track of pagination and such.
Dec
16
revised Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working
added 4239 characters in body
Dec
16
comment Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working
Yes I'm using $post->... for several things like if($post->post_type == ... and even get_post_meta($post->ID); Any ideas? This is a strange one.
Dec
16
revised Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working
added 196 characters in body
Dec
16
comment Checking Taxonomy Terms for a Custom Post Type With get_the_terms Not Working
@N00b I've narrowed this down. Using $post->ID breaks get_the_terms even though I've checked it as int with gettype() and printed it out to see post ids. I'm so stumped right now. A hardcoded number works...