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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.