WordPress.org

Ready to get started?Download WordPress

Forums

Simple Fields
Illegal offset type in simple-fields\functions.php on line 83 (2 posts)

  1. pixelkicks
    Member
    Posted 7 months ago #

    Hi,

    I have a custom post type that I'm trying to retreive values from. The first custom field is a standard dropdown menu, and the second is a multi-select dropdown menu.

    The first dropdown menu I can use the following for, which retrieves the value correctly:
    simple_fields_get_post_value(get_the_id(),array(1, 2), true);

    However I get the below error when I try and use the code to retrive the multi-select value:

    Illegal offset type in simple-fields\functions.php on line 83

    simple_fields_get_post_value(get_the_id(),array(1, 10), true);

    What am I doing wrong?

    Thanks, Chris

    http://wordpress.org/plugins/simple-fields/

  2. pixelkicks
    Member
    Posted 7 months ago #

    Further to this, I've tried using the meta key instead of an array but the same result still happens.

Reply

You must log in to post.

About this Plugin

About this Topic