Support

Account

Forum Replies Created

  • The problem is out of date. It resulted from my inattention. The slider appears when the number of half goes beyond the specified number in the template. Please close and delete the thread.

  • Whether a given example works or not works is misleading, because you need to refresh the page twice before the completed fields appear. Additionally, using the group field example, I get two php errors: Illegal string offset ‘url’.

  • For the image to appear on the page, I need to update the page twice. This is the second complication.

  • The output value for “src” is empty.

    I changed the way to array:

    
    <?php 
        $image = get_field('sixth_image');
        if( !empty( $image ) ): ?>
            <div class="px-lg-4 bits-img-folder">
            <img src="<?php echo esc_url($image['url']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" class="bits-img rounded border bg-white">
            </div>
    <?php endif; ?>
    

    And this solution works. But there is another problem I will write about in a moment.

    By the way, does the display of photos differ if it belongs to a group?

  • I will add one more information that the technique I use works when they add it in the post template. But why not in the page template anymore?

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