Support

Account

Home Forums Bug Reports Flexible Content data still in wp_postmeta after layout removed Reply To: Flexible Content data still in wp_postmeta after layout removed

  • Like I said above, checking the layout type using get_row_layout() when dealing with flexible content fields and showing content based on that instead of whether or not the field has a value. The use of get_row_layout() is documented here http://www.advancedcustomfields.com/resources/get_row_layout/

    When dealing with conditional logic I check that logic by getting the conditional field and only getting the content that is supposed to be displayed.

    I don’t base the display of data on the presence or absence of data in the database. An empty field may mean that I want to display a default value.

    This may be a programmer thing, but I don’t trust any data source to contain what I expect it to contain.