Parse error: syntax error, unexpected T_ENDWHILE
-
I am getting the follow error
Parse error: syntax error, unexpected T_ENDWHILE in /home/content/88/9177388/html/recover_pages/wp-content/themes/news/single-exhibitions_forms.php on line 10
when trying to output my custom post type with custom fields, using the advanced custom fields plugin. I am using Genesis News Theme
Here is my code
<?php
remove_action(‘genesis_loop’, ‘genesis_do_loop’);
add_action(‘genesis_loop’, ‘exhibitions_forms_loop’);
function exhibitions_forms_loop() {$loop = new WP_Query( array( ‘post_type’ => ‘exhibitions_forms’, ‘posts_per_page’ => 20 ) ); ?>
}
<?php the_field(‘description_of_business_activity’); ?>
<?php the_field(‘company_name’); ?><?php endwhile;?>
<?phpgenesis();
What am I doing wrong
- The topic ‘Parse error: syntax error, unexpected T_ENDWHILE’ is closed to new replies.