Title: Help with: Parse error: syntax error, unexpected &#8216;next&#8217; (T_STRING)
Last modified: September 3, 2020

---

# Help with: Parse error: syntax error, unexpected ‘next’ (T_STRING)

 *  [lgehrig4](https://wordpress.org/support/users/lgehrig4/)
 * (@lgehrig4)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/help-with-parse-error-syntax-error-unexpected-next-t_string/)
 * I’m using Phlox Portfolio and just started receiving this error when I click 
   on one of the grid tiles to view a single portfolio
 * > Parse error: syntax error, unexpected ‘next’ (T_STRING) in /home/bigeqcam/public_html/
   > wp-content/plugins/auxin-portfolio/public/templates/theme-parts/entry/single-
   > portfolio.php on line 163
 * This the the line of code in question
 * `get next/prev portfolio buttons`
 * This is more for context
 *     ```
       wp_link_pages( array( 'before' => '<div class="page-links"><span>' . __( 'Pages:', 'auxin-portfolio') .'</span>', 'after' => '</div>' ) );
   
       get next/prev portfolio buttons
   
       if( 'default' == $display_next_pre = auxin_get_post_meta( $post, '_show_next_prev_nav', 'default' ) ){
       	$display_next_pre = auxin_get_option( 'show_portfolio_single_next_prev_nav', false );
       }
   
       $next_prev_navigation = '';
       ```
   
 * This just started happening and I can’t rule out that someone may have touched
   this file. Is there something obviously wrong with the php that you can see?

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

 *  [mcmwebsol](https://wordpress.org/support/users/mcmwebsol/)
 * (@mcmwebsol)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/help-with-parse-error-syntax-error-unexpected-next-t_string/#post-13357074)
 * Line 3 is not valid PHP. Try making it a comment, e.g.
    // get next/prev portfolio
   buttons
 *  Thread Starter [lgehrig4](https://wordpress.org/support/users/lgehrig4/)
 * (@lgehrig4)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/help-with-parse-error-syntax-error-unexpected-next-t_string/#post-13357881)
 * [@mcmwebsol](https://wordpress.org/support/users/mcmwebsol/) Perfect! thank you

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

The topic ‘Help with: Parse error: syntax error, unexpected ‘next’ (T_STRING)’ is
closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [Short Code](https://wordpress.org/support/topic-tag/short-code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [lgehrig4](https://wordpress.org/support/users/lgehrig4/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/help-with-parse-error-syntax-error-unexpected-next-t_string/#post-13357881)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
