Support

Account

Home Forums Front-end Issues Display cust. field value on index.php Reply To: Display cust. field value on index.php

  • Excuse my bad english.
    you should try to call the custom post like that

    <?php

    // get posts
    $posts = get_posts(‘your_post_type’);

    // loop
    if( $posts ) {

    foreach( $posts as $post ) {

    setup_postdata( $post );
    }

    <h3 class=”name wow fadeInUp”><?php the_field(‘meno’); ?></h3>

    <?php the_field(‘recenzia’); ?>

    <?php
    wp_reset_postdata();

    }

    ?>