arnabwahid/wordpress-bootstrap

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

chodhary opened this issue · 0 comments

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,