Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

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

Open
chodhary opened this issue Jul 6, 2015 · 0 comments
Open

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

chodhary opened this issue Jul 6, 2015 · 0 comments

Comments

@chodhary
Copy link

chodhary commented Jul 6, 2015

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,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant