首页 WordPress函数大全 get_the_posts_navigation()

get_the_posts_navigation()

2020-05-02 / 2655阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_the_posts_navigation( array $args = array() )

Returns the navigation to next/previous set of posts, when applicable.

描述

参数

$args

(array)
(Optional)
Default posts navigation arguments.

  • 'prev_text'
    (string) Anchor text to display in the previous posts link. Default 'Older posts'.
  • 'next_text'
    (string) Anchor text to display in the next posts link. Default 'Newer posts'.
  • 'screen_reader_text'
    (string) Screen reader text for the nav element. Default 'Posts navigation'.
  • 'aria_label'
    (string) ARIA label text for the nav element. Default 'Posts'.

Default value: array()

返回

(string) Markup for posts links.

大家谈论
    我的见解