Forums › Forums › Search & Filter Pro › Show relationship ACF field in results
- This topic has 21 replies, 2 voices, and was last updated 6 years ago by Anonymous.
-
Anonymous(Private) November 8, 2018 at 5:19 pm #193240
At this time my code is :
<div class="commercial"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <p>Mail : <?php the_field('cial_email'); ?></p> <p>Téléphone : <?php the_field('cial_telephone'); ?></p> <?php if( get_field('cial_das') ):?> <p>Univers : <?php the_field('cial_das'); ?></p> <?php endif; ?> </div> You can see the result at the bottom of this page : http://festilight.com/festilight-deco For exemple if you select "Atlantique", all the informations are good and visible. When I add <code><p>Univers : <?php the_field('cial_secteur'); ?></p></code> (there is a mistake, it's not "Univers :" but "secteur" it's like "localization :" in english but it's not a problem for now) So
<p>Univers : <?php the_field(‘cial_secteur’); ?></p>
That break my page and don’t show my footer.
-
AuthorPosts