WordPress.org

Forums

Pods - Custom Content Types and Fields
[resolved] [Plugin: Pods CMS Framework] get_field a Pick column returns nothing (3 posts)

  1. frendeliko
    Member
    Posted 4 years ago #

    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.

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 4 years ago #

    Fixed in 1.9.5.1

  3. frendeliko
    Member
    Posted 4 years ago #

    Thank you very much Scott

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags