wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



adjacent_post_link › WordPress Function

Da2.5.0
Deprecaton/a
adjacent_post_link ( $format, $link, $in_same_term = false, $excluded_terms = '', $previous = true, $taxonomy = 'category' )
Parametri: (6)
  • (string) $format Link anchor format.
    Richiesto:
  • (string) $link Link permalink format.
    Richiesto:
  • (bool) $in_same_term Optional. Whether link should be in the same taxonomy term. Default false.
    Richiesto: No
    Default: false
  • (int[]|string) $excluded_terms Optional. Array or comma-separated list of excluded category IDs. Default empty.
    Richiesto: No
    Default: (vuoto)
  • (bool) $previous Optional. Whether to display link to previous or next post. Default true.
    Richiesto: No
    Default: true
  • (string) $taxonomy Optional. Taxonomy, if `$in_same_term` is true. Default 'category'.
    Richiesto: No
    Default: 'category'
Definito a:
Codex:

Displays the adjacent post link.

Can be either next post link or previous.


Sorgenti

function adjacent_post_link( $format, $link, $in_same_term = false, $excluded_terms = '', $previous = true, $taxonomy = 'category' ) {
	echo get_adjacent_post_link( $format, $link, $in_same_term, $excluded_terms, $previous, $taxonomy );
}