• Hey this is my website anyone know how to add pagination rel links on to header ?
    There are no pagination markups.
    https://dcrazed.com/

    Like this

    <link rel=”prev” href=”https://www.example.com/article-part1.html”&gt;
    <link rel=”next” href=”https://www.example.com/article-part3.html”&gt;

    I found this function
    function rel_next_prev(){
    global $paged;
    if (!is_singular()){
    if ( get_previous_posts_link() ) { ?>
    <link rel=”prev” href=”<?php echo get_pagenum_link( $paged – 1 ); ?>” /><?php
    }

    if ( get_next_posts_link() ) { ?>
    <link rel=”next” href=”<?php echo get_pagenum_link( $paged +1 ); ?>” /><?php
    }
    }
    }
    add_action( ‘wp_head’, ‘rel_next_prev’ );

    But it doesnt work either.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor joostdevalk

    (@joostdevalk)

    Yeah you figured it out already? If so… Why is it still a 1 star review? ??

    Thread Starter Rijo Abraham

    (@hdalive)

    Problem is, i cannot change the rating now. In the long run it looks like we may have to stop using seo and redirect plugins.

    WordPress only hosting sites seems to be incompatible with these kind of plugins and causing huge problems. For me atleast.

    New themes already have seo metaboxes and well optimized for everything seo, so its a matter of time. Still i like and use many features in yoast seo.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add Pagination Rel link ?’ is closed to new replies.