Advanced Custom Fields
[resolved] Prepend not showing (2 posts)

  1. Dvd709
    Posted 2 years ago #

    Hi guys,

    I've made a field with subfields, the subfields are both text. Though after making the subfields/fields I've input a prepend before one of the subfields which during my while doesn't show.

    So I thought all I had to do was press edit again(to sort of update) on the page it would show on. But that didn't work.

    I have more fields and subfields with prepends and those seem to work.

    Does anyone know why this is so?

    This is my code on which it doesn't work.

    <?php if( have_rows('gallery_project') ):
    			    while( have_rows('hyperlink_samenwerking') ): the_row(); ?>			
    			<div class="projectinfo">
    				  <?php the_content(); ?>
    				  <a href="<?php the_sub_field('url');?>"><?php the_sub_field('naam'); ?></a>
    				<?php endwhile; endif; ?>


  2. Dvd709
    Posted 2 years ago #

    Nevermind found a way to solve it.

    (In a href a prepend will most likely not show so what I did was make another sub field to put in front of it.)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic