WordPress at a glance
Главная Functions Posts, pages... Navigation

Category: Navigation 11

get_adjacent_post()

Gets the object of the adjacent (next or previous) post.

get_adjacent_post_link()

Gets the adjacent (next/previous) post link (HTML tag A). You can specify limitations on the elements of taxonomies (categories, tags). Can be either next post link or previous.

get_boundary_post()

Retrieves the boundary post.

get_next_post()

Retrieves the next post that is adjacent to the current post. Return post object.

get_next_post_link()

Gets a link (tag A) to the next post relative (by date) to the current post.

get_previous_post()

Retrieves the previous post that is adjacent to the current post. Return post as object.

get_previous_post_link()

Gets a link (tag A) to the previous post relative (by date) to the current post.

get_the_post_navigation()

Gets the navigation links (HTML) to the next and previous posts. Uses on a single post page: is_singular().

next_post_link()

Displays a link (tag A) to the next post relative (by date) to the current post.

previous_post_link()

Displays a link to the previous (by date) post. The function must be used on separate pages (of the is_single() type).

the_post_navigation()

Displays the HTML block of links to the next and previous posts. Uses on a single post page: is_singular().