[Plugin: Pods CMS Framework] get_field a Pick column returns nothing
-
Hi
WordPress 3.1 as 3.1.1 is not available in my language yet.
I have a pick column in one of my pods (Book), it’s related to another pod (State).
I used to make a query like
$slug = pods_url_variable(-1); $book = new Pod('book', $slug); $state = $book->get_field('state.slug');
having the state’s slug.
Now, with 1.9.5 that variable ($state) is empty. Going back to 1.9.4 solves the problem.
I’ve made a print_r to $state querying with
$state = $book->get_field('state');
and it returns the same array with both 1.9.5 and 1.9.4, something like:
Array ( [0] => Array ( [id] => 2 [name] => New [slug] => new ) )
Looks like something in the get_field code was changed, as the array seems to be ok. Hope this helps solving the problem.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Pods CMS Framework] get_field a Pick column returns nothing’ is closed to new replies.