Custom fields data problem
-
I am building my first theme site, so I expect this is self inflicted. Added custom post page through WP and custom fields through Pods. When using <?php echo get_field(‘field name) or <?php echo the_field(field name). Return on page is that of the most recent post. Example: with 3 pages. Page posts 1 and 2 will update to show that of Last (most recent) input from new page post 3 for data and galley. (also tried creating custom post pages through Pods with same outcome.)
<?php. <?php echo get_post(‘the_field’) works without showing “$” or commas for currency or commas for numbers. Looks to be pulling from WP custom field.
Using <?php $gallery = the_field(‘gallery’); if($gallery):?>Unable to pull gallery all together from custom field in pods on older posts. All galery’s update to newest post.
What am I doing wrong?
The topic ‘Custom fields data problem’ is closed to new replies.