Hi,
Thanks for your quick reply.
I have tried that, and it works for the first one but then it just repeats the same output in the first post for all the posts.
This is what I have done inside the function in my functions.php, but nothing is outputting :
<div id=”wpupg-container-post-<?php echo $post->ID; ?>” data-id=”<?php echo $post->ID; ?>” data-permalink=”<?php echo get_post_permalink( $post->ID ); ?>” class=”<?php echo implode( ‘ ‘, $classes ); ?>”>
<?php $variable = get_field(‘field_name’); ?>
<?php echo $variable; ?>
</div>
note
the field names above are just for example purposes. the field names are all named correctly
I have been using this guide:
https://bootstrapped.ventures/wp-ultimate-post-grid/code-your-own-template/
-
This reply was modified 7 years, 4 months ago by charlotted.
-
This reply was modified 7 years, 4 months ago by charlotted.