Home › Forums › General Issues › Getting ACF to work with Pagelines DMS › Reply To: Getting ACF to work with Pagelines DMS
I managed to get it to show with this code in a widget:
<?php
$custom_field = get_post_custom_values(‘editor_score’);
if(!empty($custom_field)){
echo ‘<div class=”result-extra”>’;
echo __(‘Editor Score: ‘).”.$custom_field[0];
echo ‘</div>’;
}
?>
Only issue is if there are two entries in the fields it displays info like this:
a:3:{i:0;i:15;i:1;i:172;i:2;i:105;}
you can see this on: http://www.cgmagazine.ca/wordpress/game_review/saints-row-iv.html
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.