Support

Account

Home Forums Add-ons Flexible Content Field Post Based On Condition of Field Reply To: Post Based On Condition of Field

  • That’s exactly the thought that I’m trying to do. But when I use your code, nothing posts. So I modified it a tad (first-step.PNG).

    With this modification, it seems that the

                <div class="entry-header">
    	            <h1 class="entry-title"><?php the_sub_field('title'); ?></h1>
                </div>

    is repeating, which it should only post one time.

    A screenshot of what it looks like in code view is attached (result.PNG). I’m thinking it’s posting twice because it’s within a loop. But if I move it: (second-step.PNG), the title won’t post.