Timeline for How do you move custom fields to custom taxonomies using WP Queries
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 12, 2014 at 17:48 | comment | added | Dan Phiffer |
I would add something like echo "test"; to see if the function is getting called, and then I would check the result of each line to see if it's doing what you'd expect it to. Good luck!
|
|
Jun 11, 2014 at 17:37 | comment | added | Muzza | Sorry I have checked for terms and log but am unable to find a solution. | |
Jun 11, 2014 at 7:32 | comment | added | Dan Phiffer |
Yeah, the return value 0 is totally normal. The thing you should be checking for is whether these terms are getting created, or if there are errors logged, etc. When you say you added that AND clause, did you also join on the wp_posts table? Because wp_postmeta has no post_type column. And you can call exit if you want to suppress the 0 . I normally do that and add some debug text in there.
|
|
Jun 10, 2014 at 6:31 | comment | added | Muzza |
The error return value is 0 , have add in AND post_type = 'job_listing' and have checked the custom taxonomy to be register_taxonomy( 'job_listing_region' still with no change to error value. Thanks again but still not sure.
|
|
Jun 9, 2014 at 17:35 | comment | added | Dan Phiffer | Sure, I've changed the example to be callable via an WP AJAX-style request. | |
Jun 9, 2014 at 17:34 | history | edited | Dan Phiffer | CC BY-SA 3.0 |
Wrapped example in a function, callable via wp_ajax
|
Jun 9, 2014 at 5:16 | comment | added | Muzza | Thanks Dan, can you give me a heads up on how to use function calls, as I have never used them before. | |
Jun 8, 2014 at 19:13 | history | answered | Dan Phiffer | CC BY-SA 3.0 |