WordPress.org

Ready to get started?Download WordPress

Forums

Simple Fields
Repeatable fields returning value of 1 for delete values (3 posts)

  1. benners_
    Member
    Posted 1 year ago #

    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/

  2. Pär Thernström
    Member
    Plugin Author

    Posted 1 year ago #

    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..?

  3. benners_
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.