Home › Forums › Add-ons › Flexible Content Field › Snippet of HTML › Reply To: Snippet of HTML
If this is part of a flex field you can add a layout that has no sub fields. Then there’s simply nothing to enter. Then do something like
while(have_rows('flex_field')) {
the_row();
if (get_row_layout() == 'your_layout_name') {
// echo special block of code here
}
}
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.