• Resolved dimitris71

    (@dimitris71)


    Hi there, I have been created two custom fields with acf and I want to display them in every post in the front end in two diferrent places (after post title the first and after excerpt the second) with labels explaining each value. Also the same when posts displaying in blog archive posts. I added the code below (only for the first custom field) in the file content.php under the post title section. I am not familiar with coding and I need your help please!

                $custom_field_value = get_field( 'syggrafeas' );
                if ( $custom_field_value ) {
                    echo '<div class="custom-field-label">Συγγραφ?α?:</div>';
                    echo '<div class="custom-field-value">' . esc_html( $custom_field_value ) . '</div>';
                }
                ?>

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • ACF Support

    (@acfsupport)

    Hi there!

    ACF Support Team here. This forum is generally used by ACF users to help each other out.

    However, we would love to continue investigating and troubleshooting this issue, please can you create a ticket using our ?support form and we can look into it further.

Viewing 1 replies (of 1 total)
  • The topic ‘I can’t display custom fields in the frontent’ is closed to new replies.