Forums

SEO - Page Numbers Change in Title and Permalink (2 posts)

  1. forestwander
    Member
    Posted 2 years ago #

    I am trying to figure out how I can have the page number change for each category page in my site.

    This would help a lot with SEO.

    For instance the pages are in this format.

    Free Waterfall Pictures Nature Photography
    http://www.forestwander.com/waterfalls/?cpg=2

    Free Waterfall Pictures Nature Photography
    http://www.forestwander.com/waterfalls/?cpg=3

    Free Waterfall Pictures Nature Photography
    http://www.forestwander.com/waterfalls/?cpg=4

    And so on for each page under the waterfalls category.

    What I am trying to accomplish is for each page to have a unique title and permalink that is SEO friendly. Such as...

    Free Waterfall Pictures Nature Photography Page 2
    http://www.forestwander.com/waterfalls/Page-2

    Free Waterfall Pictures Nature Photography Page 3
    http://www.forestwander.com/waterfalls/Page-3

    Free Waterfall Pictures Nature Photography Page 4
    http://www.forestwander.com/waterfalls/Page-4

    I cannot accomplish this with headspace as I get an error nor can I do it with All in one SEO.

    It would be great if there were just some code I could add for the pages to do this in the template or something.

    Please help as I do not have the knowledge to accomplish this and hopefully this would help others as well that want to accomplish the same SEO benefits.

    Thank you for any help... :)

  2. malcolmcoles
    Member
    Posted 2 years ago #

    There's a bit of PHP you can use to add page numbers to the title. Stick this in the code that generates your title and meta description:

    <?php if ( $paged < 2 ) { } else { echo (' Page '); echo ($paged);} ?>

    More here: http://www.malcolmcoles.co.uk/blog/avoid-duplicate-meta-descriptions-in-pages-2-and-higher-of-the-wordpress-loop/

Topic Closed

This topic has been closed to new replies.

About this Topic