Outil de recherche WordPress pour les développeurs et auteurs de thèmes



prev_post_rel_link ›

Depuis2.8.0
Dépréciéen/a
prev_post_rel_link ( $title = '%title', $in_same_term = false, $excluded_terms = '', $taxonomy = 'category' )
Paramètres: (4)
  • (string) $title Optional. Link title format. Default '%title'.
    Requis: Non
    Défaut: '%title'
  • (bool) $in_same_term Optional. Whether link should be in a same taxonomy term. Default false.
    Requis: Non
    Défaut: false
  • (array|string) $excluded_terms Optional. Array or comma-separated list of excluded term IDs. Default true.
    Requis: Non
    Défaut: (vide)
  • (string) $taxonomy Optional. Taxonomy, if $in_same_term is true. Default 'category'.
    Requis: Non
    Défaut: 'category'
Voir:
Défini(e) dans:
Codex:

Displays the relational link for the previous post adjacent to the current post.



Source

function prev_post_rel_link( $title = '%title', $in_same_term = false, $excluded_terms = '', $taxonomy = 'category' ) {
	echo get_adjacent_post_rel_link( $title, $in_same_term, $excluded_terms, true, $taxonomy );
}