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();
}
?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.