Support » Plugin: Simple Fields » Repeatable fields returning value of 1 for delete values

  • benners_

    (@benners_)


    Using the repeatable fields to select related posts and I’m finding that if I add a value and then delete it there are still values left in the DB and I’m then getting a ‘0’ returned when using the API call.

    $related = simple_fields_values("related_portfolio_posts");
    print_r($related);

    Output – I should just get one value ‘463’ not ‘0’.
    Array ( [0] => 463 [1] => 0 )

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

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

    (@eskapism)

    What field type are you using? Is it the post field type, and then you have deleted the post that you selected in the field..?

    benners_

    (@benners_)

    I’m using a Repeatable Post type field. Yes a Post selected may have been deleted. Shouldn’t the plugin clear all values when a Post is deleted? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Repeatable fields returning value of 1 for delete values’ is closed to new replies.