• I have been searching for awhile and can’t find a solution for some reason. I have read a million posts but still cant find an example.

    I am trying to use the_post_navigation to setup paging with next and previous links as well as the numbered paging.

    I trying to use this on my single-portfolio.php and archive-portfolio.php templates and having no luck. I have my permalinks set to Post name http://example.com/sample-post/ in-case that matters.

    I have tried the following with no luck (this is what I use for normal posts and it works).

    the_posts_pagination( array(
        'mid_size'  => 3,
        'prev_text' => __( 'Newer Posts', 'textdomain' ),
        'next_text' => __( 'Older Posts', 'textdomain' ),
    ) );

    Any help would be great!

Viewing 1 replies (of 1 total)
  • Thread Starter jadamson

    (@jadamson)

    I can get the next and previous links to work on single-portfolio.php, how would I add in the numbers though? <next 123…456 prev> is what I need to do

Viewing 1 replies (of 1 total)

The topic ‘the_post_navigation usage with a custom post type’ is closed to new replies.