Forums

%pagename% and %postname% won't work on blog page (5 posts)

  1. BStock1983
    Member
    Posted 2 years ago #

    Hi everyone,

    I've scoured the permalink tagged posts and can't find anything that resembles the issue I'm having. Basically, I've got a site, http://magiscreative.com, set up with a static homepage and a blog page. I've tried to set up the permalinks to be either %pagename, %postname or /%pagename%/%postname%/, but the blog page continues to resolve to /?page_id=5 every time.

    So far, %postname is the best option because it successfuly displays the pagenames and postnames. But, I still can't figure out why the only one that won't work is the blog page. Anyone know what could cause this?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    There is no /%pagename%/ permalink structure tag. Try reading Using_Permalinks.

  3. BStock1983
    Member
    Posted 2 years ago #

    Yea, I'm just using /%postname%/ because it defaults to the page slug text anyways and it works properly for everything except the url of the actual blog page. I've read through the permalinks instructions, but I can't figure out why it's still showing the page id # for that page.

  4. freesouldesign
    Member
    Posted 2 years ago #

    Try manually changing the page slug (edit - page).

  5. BStock1983
    Member
    Posted 2 years ago #

    It's bizarre. On the Edit Page screen for "Blog", the preview permalink is correct "http://magiscreative.com/blog/" and when I click "View Page" it takes me to the page and the permalink appears correctly. Navigate away and back to the blog page and the page id # appears again instead of the page title.

    I tried deleting it, re-entering the name and saving it, but the same thing happens. It's as though WP has recognized the change and will display it initially, but defaults whenever I navigate to the page.

Topic Closed

This topic has been closed to new replies.

About this Topic