-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththe_post_navigation.php
More file actions
39 lines (24 loc) · 1.11 KB
/
the_post_navigation.php
File metadata and controls
39 lines (24 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
//https://youtu.be/v931fG_ivOw
the_post_navigation( array(
'prev_text' => __( 'prev chapter: %title', 'textdomain' ),
'next_text' => __( 'next chapter: %title' 'textdomain' ),
'in_same_term' => true,
'taxonomy' => __( 'post_tag' 'textdomain' 'textdomain' ),
'screen_reader_text' => __( 'Continue Reading' 'textdomain' ),
'mid_size' => 3 // ... uthanor jonne... mod no
) );
// call like below
the_post_navigation();
// Ned any change? Follow top array keys.
/*
mid_size (int) - How many page numbers to display to either side of the current page. Defaults to 1.
prev_text (string) - Text of the link to the next set of posts. Defaults to “Previous”.
next_text (string) - Text of the link to the next set of posts. Defaults to “Next”.
screen_reader_text (string) - Text meant for screen readers. Defaults to “Posts navigation”.
*/
// Single post next post prev post
// Next post
next_post_link();
previous_post_link();
?>