WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Dvd709
    Member
    Posted 5 months 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; ?>

    http://wordpress.org/plugins/advanced-custom-fields/

  2. Dvd709
    Member
    Posted 5 months 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.)

Reply

You must log in to post.

About this Plugin

About this Topic