• Resolved slavum

    (@slavum)


    Добрый день. Как сделать так, чтобы перемещение к следующей или предыдущей странице шло не по всем записям, а внутри одной рубрики? Спасибо.

    Good afternoon. How do I make sure that moving to the next or previous page does not go through all the entries, but within a single category? Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @slavum,

    Please try adding this custom PHP code to your site

    add_filter( 'astra_single_post_navigation', 'ast_post_navigation' );
    function ast_post_navigation () {
    $arr = array(
    	'next_text' => '%title',
    	'prev_text' => '%title',
    	'in_same_term' => true,
        );
    return $arr;
    }

    Please refer to this doc to know how to add custom PHP code in Astra.

    I hope it will help. Feel free to reach out to us if you have any further queries.

    Kind regards,
    Herman ??

    Thread Starter slavum

    (@slavum)

    Спасибо

    You’re most welcome, @slavum!

    ?Let us know if there’s anything else we can help you with.

    ??Have a nice day and stay safe!

    ??Kind regards,
    ?Herman :)??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Следующая страница’ is closed to new replies.