Relationship not returning anything
-
My shortcode:
[ajax_load_more id="homepage-series" container_type="div" posts_per_page="4" scroll="false" button_label="Show More" repeater="default" orderby=”post__in” acf="true" acf_field_type="relationship" acf_field_name="series"]
My template:
<?php $featured_img_url = get_the_post_thumbnail_url(get_the_ID(), 'card-rollover'); ?> <div class="col"> <a href="<?php the_permalink(); ?>" class="rollover-card" style="background-image:url('<?php echo $featured_img_url; ?>');"> <div class="inner"> <div> <span class="top-lines"></span> <span class="bottom-lines"></span> <span class="label"> Book Series </span> <h3 class="h5"> <?php the_title(); ?> </h3> <div class="content"> <div class="content-inner"> <?php the_field('rollover_summary'); ?> </div> </div> <span class="btn-text on-dark"> Explore </span> </div> </div> </a> </div>
Field is a Relationship that’s returning Post ID.
The load more button appears for second, then is gone, and nothing else is returned. Not sure what I’m missing?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Relationship not returning anything’ is closed to new replies.