arnabwahid / wordpress-bootstrap

Bootstrap in WordPress theme form - Bootstrap 3.3.1
1.49k stars 557 forks source link

Wrong call for previous and next posts link in index.php #244

Open chodhary opened 9 years ago

chodhary commented 9 years ago

In line number 42-43 of index.php, code output older entries and newer entries, and also printing next page and previous page. Because, code is using _e('« Older Entries', "wpbootstrap").

<li class="previous"><?php next_posts_link(_e('&laquo; Older Entries', "wpbootstrap")) ?></li>
<li class="next"><?php previous_posts_link(_e('Newer Entries &raquo;', "wpbootstrap")) ?></li>\

I am suggesting, first use __('« Older Entries', "wpbootstrap"). Then, output result with echo.

<li class="previous"><?php echo next_posts_link(__('&laquo; Older Entries', "wpbootstrap")) ?></li>
<li class="next"><?php echo previous_posts_link(__('Newer Entries &raquo;', "wpbootstrap")) ?></li>

Thank you,