Skip to content
This repository was 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

@chodhary

Description

@chodhary

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions