Support » Plugin: Simple Fields » [Plugin: Simple Fields] Invalid foreach() on line 986

  • Resolved brettgoodrich

    (@10v2)


    Hey guys!

    Landing

    Just upgraded to Simple Fields 1.0 and got this in place of the slider images Simple Fields was generating for me:
    Warning: Invalid argument supplied for foreach() in (stuff)/wp-content/plugins/simple-fields/simple_fields.php on line 986

    Is this a problem with my code or 1.0? Worked fine on 0.5.

    ALSO: With the new functions, how do I get a field value from a different page than the one I’m on?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Pär Thernström

    (@eskapism)

    I just added version 1.0.1. Can you check if that version solves it?

    Plugin Author Pär Thernström

    (@eskapism)

    Oh, regarding getting a field from a different page that the current one in the loop:

    // get a field from post with id 123
    $myValue = simple_fields_value("myFieldSlug", 123);
    echo "the value is: $myValue";

    See more on the document page for this function:

    simple_fields_value

    It did fix it, thank you very much! And that’s exactly what I was looking for. You’re awesome.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Simple Fields] Invalid foreach() on line 986’ is closed to new replies.