Support

Account

Forum Replies Created

  • This is definitely happening (and still happening – ACF V5.5.3, WP V4.7).

    dkeeling – a workaround is to check if the value is numeric, and then run it through get_permalink() if it is.

    Your code would look like this:

    <?php 
    $button = get_field('header_button');
    if($button): ?>
      <a href="<?php echo ( is_numeric($button['link']) ? get_permalink($button['link']) : $button['link'] ); ?>"><?php echo $button['label']; ?></a>
    <?php endif; ?>
  • Yes. +1

    This would be SUPER helpful. A lot of times I use Flexible Content for something like “Content Blocks” and have fields that get applied to each layout, like: Background Color, Padding (yes/no), active (yes/no), etc.

  • I second the second idea. Adding a customizable label on Featured Content layouts would be HUGE. So that when they are rolled up you can get an idea of what is inside.

    My idea would be to insert a new options on Text Fields INSIDE of flexible content layouts which could be a switch for “Use this value for Flexible Content label”.

    So what I usually do is have a text field which serves as the header (or some other data inside the content) that would be perfect for using as the label of the FC block.

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