Home Forums Front-end Issues Fields Displaying Out of Order


Fields Displaying Out of Order

  • The field labels and values on the front-end of the site are displaying out of order, e.g. 3,4,1,2

    Field Group – Team Member Info
    Field Order 1 – Contact Info
    Field Order 2 – Education
    Field Order 3 – Memberships
    Field Order 4 – Admissions

    Code from Template single-team-member.php

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<?php the_post_thumbnail( 'full', array( 'class' => 'img-responsive photo-finish' ) ); ?>
    			<?php $fields = get_field_objects(); ?>
    				<?php if( $fields ): ?>
    					<?php foreach( $fields as $field ): ?>
    						<?php if( $field['value'] ): ?>
    						<?php echo $field['label']; ?>
    						<?php echo $field['value']; ?>
    						<?php endif; ?>
    					<?php endforeach; ?>
    				<?php endif; ?>
    		<?php the_content(); ?>
    		<?php endwhile; endif; ?>

    I have two copies of this site, one for development and the live site. I do not have this issue on the development site, just the live one. Only difference I can see is the dev site is running PHP 5.3 and the live site is PHP 5. Both running WP 4.1

    Development Site

    Production Site

    Any insight would appreciated. Thanks for your time.

  • Hi @clementine

    Thank you for the question.

    This issue is quite strange, it is possible that it could be related to the PHP version running on your site.

    I would also recommend you increase the amount of PHP memory available to check if this will solve the issue for you.

    If this fails, a fresh install of WP is also worth a try.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Fields Displaying Out of Order’ is closed to new replies.