Forum Replies Created

  • +1 for this – how many people do we need before Elliot considers implementing a Map field type which allows you to use either Google Maps or OSM?

  • Hi, where you are outputting your text, wrap it in something like this:

    <?php if (!get_field('text_input')) : ?>
    	<h1>I will be hidden if the 'text_input' contains any text.</h1>
    <?php endif; ?>

    The above will only display the H1 tag if there is no text on the field text_input in the backend.

    Let me know how you get on 🙂

  • Try this:

    if (function_exists('acf_add_options_page')) {
      //Create the parent.
      $parent = acf_add_options_page(array(
        'page_title'  => 'TEST',
        'menu_title'  => 'TEST',
        'redirect'    => false
      //Create the children.
        'page_title'  => 'Header',
        'menu_title'  => 'Header',
        'parent_slug' => $parent['menu_slug'],
        'page_title'  => 'Footer',
        'menu_title'  => 'Footer',
        'parent_slug' => $parent['menu_slug'],
        'page_title'  => 'Accommodation',
        'menu_title'  => 'Accommodation',
        'parent_slug' => $parent['menu_slug'],

    I found this on the documentation, see the bottom example “Custom options sub page”:

  • Anyone? This is kind of urgent, I’ve tried deleting the field and recreating the flexible content layout again, still the issue persists.

    Would appreciate a reply.


Viewing 4 posts - 1 through 4 (of 4 total)