Archived topic
PHP Error code navigation.php
3 replies · Started by Harry on August 20, 2017
Hi,
I was playing around with the navigation.php file and accidentally deleted a part of the file in wordpress.
I'm not sure what part was deleted, but i am getting the following error code when i click on option, button menu on wordpress.org :
Parse error: syntax error, unexpected '<' in /home/rcempire/public_html/wp-content/themes/generatepress/inc/navigation.php on line 227
I've checked the code with my the host site file manager, but i'm not quite sure whats wrong with the code.
Is there any way of resetting this or seeing whats wrong?
Thank you.
navigation.php, line 227 onwards from the file manager:
<?php
/**
* @package GeneratePress
*/
// No direct access, please
if ( ! defined( 'ABSPATH' ) ) exit;
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> <?php generate_article_schema( 'CreativeWork' ); ?>>
<header class="entry-header">
<?php do_action( 'generate_before_entry_title' ); ?>
<?php the_title( sprintf( '<h2 class="entry-title" itemprop="headline">', esc_url( get_permalink() ) ), '</h2>' ); ?>
<?php do_action( 'generate_after_entry_title' ); ?>
</header><!-- .entry-header -->
<?php do_action( 'generate_after_entry_header' ); ?>
<?php if ( true == generate_show_excerpt() ) : ?>
<!-- .entry-summary -->
<?php else : ?>
<?php
wp_link_pages( array(
'before' => '
'after' => '
',
) );
?>
<!-- .entry-content -->
<?php endif; ?>
<?php do_action( 'generate_after_entry_content' ); ?>
<?php do_action( 'generate_after_content' ); ?>
<!-- .inside-article -->
</article><!-- #post-## —>
}
endif;
You can grab the latest code here: https://github.com/tomusborne/generatepress/blob/1.4/inc/navigation.php
Ahh Excellent, I saw what I had wrong :)
Thanks
You're welcome :)