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

  1. benners_
    Posted 2 years 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");

    Output - I should just get one value '463' not '0'.
    Array ( [0] => 463 [1] => 0 )


  2. Pär Thernström
    Plugin Author

    Posted 2 years 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_
    Posted 2 years 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

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

About this Topic


No tags yet.