Function Signature:
_wp_link_page
Function Description:
Helper function for wp_link_pages().
Function Examples:
⚠️ Examples below are generated with GPT-3 once every hour. Do not take them too seriously.
Consider them as some extra input in your learning process - reason about them. Will it work? What could fail?
// Example 1: Basic usage of _wp_link_page to display pagination links for paginated posts
'' . __( 'Pages:', 'textdomain' ) . '',
'after' => '',
'link_before' => '',
'link_after' => '',
'next_or_number' => 'number',
'separator' => ' ',
'nextpagelink' => __( 'Next page', 'textdomain' ),
'previouspagelink' => __( 'Previous page', 'textdomain' ),
'pagelink' => '%',
'echo' => 1
);
wp_link_pages( $args );
?>
// Example 2: Using _wp_link_page to customize the pagination links for a specific post
'' . __( 'Pages:', 'textdomain' ) . '',
'after' => '',
'link_before' => '',
'link_after' => '',
'next_or_number' => 'number',
'separator' => ' ',
'nextpagelink' => __( 'Next', 'textdomain' ),
'previouspagelink' => __( 'Previous', 'textdomain' ),
'pagelink' => '%',
'echo' => 1
);
wp_link_pages( $args );
?>
// Example 3: Handling the case when there are no pagination links using _wp_link_page
'' . __( 'Pages:', 'textdomain' ) . '',
'after' => '',
'link_before' => '',
'link_after' => '',
'next_or_number' => 'number',
'separator' => ' ',
'nextpagelink' => '',
'previouspagelink' => '',
'pagelink' => '%',
'echo' => 1
);
wp_link_pages( $args );
?>