WordPress.org

Forums

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

  1. pixelkicks
    Member
    Posted 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic