5 replies
  • WEB DESIGN
  • |
This is a wordpress question about permalinks. I could not decide if it belonged in SEO or here. Finally I made a decision and posted here.

I use the built in post name permalink structure in Wordpress. If I access a post from with in the blog I get the last post made in that category. Example:

ragingalcoholic.com/rehab-programs/alcohol-evaluations/
ragingalcoholic.com/audit/

These 2 URLs both show the same article, although I need to click on the posts title to get the audit URL.

However, if I go to another post within the category I get this:

ragingalcoholic.com/rehab-programs/alcohol-evaluations/page/3/

How do I get a consistent permalink structure. Does the above occur because I have selected to have one page per post.
I also use Yoast SEO and in the permalinks section there I have told Yoast to drop the Category.
I know there is something "off" with my permalinks, I have a sort of a "its not wrong" but "it isn't quite right" situation.

Thank you for taking time to consider my problem.
Please do not feel constrained in your answers, if I am asking the wrong question, tell me which ones I should be asking and how to fix the problem
#permalinks #wordpress
  • Profile picture of the author joe ferdinando
    Working with permalinks in wordpress can become tricky sometimes.

    The most common used setting is to go with post names!

    The second permalink setting is to go with a custom setting and make your post and pages .html which is said to be better for SEO

    One problem found was that if you created post and pages and later changed the permalinks to post name the earlier post may still carry the post number and not the name!

    Using a plugin to overwrite the post name and number can cause issues!

    You wrote that you use Yoast SEO and in the permalinks section there I have told Yoast to drop the Category.

    1) try to disable Yoast and test your permalinks.
    2) if you still have the issue with permalinks activate yoast and go to permalinks and reset the Yoast to not drop categories and test the site!
    3) If this fails to work then here is another option:

    a) Use a plugin to backup and restore (I recommend Backup Creator) your site to a subdomain to test a fresh install with new permalink structure. Set permalinks to post name and then test the site. This will change all permalinks from earlier post and pages and create new fresh permalinks.

    If this works then you can clone the site back to the original site!
    Signature
    {{ DiscussionBoard.errors[8955344].message }}
    • Profile picture of the author schleprock
      That is an outstanding idea. The fresh install on a test domain, I mean.
      What do you think about having 2 posts per page. Is the one post per page better?
      Currently each post or page only has 1 post/page on it. (all my pages are privacy, sitemap, stuff, no real content)
      {{ DiscussionBoard.errors[8955649].message }}
      • Profile picture of the author joe ferdinando
        Originally Posted by schleprock View Post

        That is an outstanding idea. The fresh install on a test domain, I mean.
        What do you think about having 2 posts per page. Is the one post per page better?
        Currently each post or page only has 1 post/page on it. (all my pages are privacy, sitemap, stuff, no real content)
        The only page that should have more than one post should be your blog page!
        Signature
        {{ DiscussionBoard.errors[8955773].message }}
  • Profile picture of the author Istvan Horvath
    Currently each post or page only has 1 post/page on it.
    Sorry, that sentence is a complete nonsense... when it comes about WP.

    a) you have a setting option in wp-admin > Settings > Reading to show/display X numer of post on a webpage [reminder: webpages and Pages -always with capital P - in WordPress are two different things]
    - whether your settings is 1 or 50 posts per (web)page doesn't matter... only your readers will hate you for the latter
    - you can't have posts on Pages

    b) in WP you can see posts in two ways, basically:
    - multipost view (on index and in archives, search results...)
    - single post view

    c) posts and Pages in WP are commonly known as entries
    Signature

    {{ DiscussionBoard.errors[8955946].message }}
  • Profile picture of the author copilu0
    Your problem is not from the Yoast plugin and also is not from your permalinks. For Yoast you could try to go again to the settings, uncheck the option, save and then check the option again and save.
    Even so I think Yoast does his job because if that category option was not working then your link should look like this:
    ragingalcoholic.com/category/rehab-programs/alcohol-evaluations/
    All that it does is to remove "category"

    Now for your problem:
    1) ragingalcoholic.com/rehab-programs/alcohol-evaluations/
    This link displays a subcategory and this is why you have that URL: rehab-programs is your main category slug and alcohol-evaluation is your subcategory slug. So that page is displaying your posts from alcohol-evaluation. The WP behavior is normal in this case.

    If you go to a second page then you'll get that "3" in your URL and this is something normal

    2) ragingalcoholic.com/audit/
    Is a post and is displayed as it should be from what I see

    I don't think you can find a solution from your WP settings but maybe you can change your theme code to work a little different than it does.
    {{ DiscussionBoard.errors[8967814].message }}

Trending Topics