php - how to get field values from database in template page Advanced Custom Fields - wordpress -


i have installed advanced custom fields plugin upload audio , image files in post. each post contains 5 fields

new post custom fields new post custom fields

i can able publish post, dont know how retrieve each field in wordpress template page

post fields post fields

just call function name of field in template file

<?php while ( have_posts() ): the_post();         // display post         if ( have_posts() ):?>        <?php echo  the_field('slider_name');?>      <?php echo   the_field('slider_description');   endif; endwhile; ?> 

Comments

Post a Comment

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -