• Resolved pigozzi

    (@pigozzi)


    Help ??

    I have issues with this code of paging navigation

    <nav class=”navigation paging-navigation” role=”navigation”>
    <h1 class=”screen-reader-text”> _e( ‘Posts navigation’, ‘bloggr’ ); </h1>
    <div class=”nav-links”>

    if ( get_next_posts_link() ) :
    <div class=”nav-previous”> next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older posts’, ‘bloggr’ ) ); </div>
    endif;

    if ( get_previous_posts_link() ) :
    <div class=”nav-next”> previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>→</span>’, ‘bloggr’ ) ); </div>
    endif;

    </div><!– .nav-links –>
    </nav><!– .navigation –>

    }

    It says :
    Parse error: syntax error, unexpected ‘=’, expecting identifier (T_STRING) in /homepages/22/d605575987/htdocs/banana/wp-content/themes/Bloggr_Package_OPENME/bloggr/inc/template-tags.php on line 21

    I can’t even go back on my dashboard ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • A link to your site and can you get to File Manager by logging into your host to cPanel OR do you have a FTP client such as Filezilla?

    What is missing in here is the “php” tags…

    <nav class="navigation paging-navigation" role="navigation">
    <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'bloggr' ); ?></h1>
    <div class="nav-links">
    
    <?php if ( get_next_posts_link() ) : ?>
    <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'bloggr' ) ); ?></div>
    <?php endif; ?>
    
    <?php if ( get_previous_posts_link() ) : ?>
    <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'bloggr' ) ); ?></div>
    <?php endif; ?>
    
    </div><!-- .nav-links -->
    </nav><!-- .navigation -->
    Thread Starter pigozzi

    (@pigozzi)

    It worked !! Thanks a lot !!!

    You’re welcome. You can mark this thread “Resolved”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Navigation post parse error’ is closed to new replies.