Page showing it’s parent instead

  • Unknown's avatar

    Here’s my practice site:

    http://matthewsim.wordpress.com/

    I created a page (title “Stuff 2”, slug “2”, ID 33) and assigned it a parent page (title “Stuff”, slug “stuff”, ID 28). The Pages navigation widget (relabeled “Index”) works correctly, reflecting the hierarchy and correctly building the URL to “Stuff 2”:

    http://matthewsim.wordpress.com/stuff/2/

    When I click on this, however, the title and content shown is from the parent page (title “Stuff”) and not the page itself.

    Has anyone seen this? Is this a bug?

    Note that I have a static front page “Home”, so that may also be a factor.

  • Unknown's avatar

    I either don’t understand what you mean, or you’ve sorted it. :-S

    You are saying that when you click on the link Stuff 2, your index page – front page – pops up?

  • Unknown's avatar

    When I click on “Stuff 2”, I see the title and content for “Stuff”.

  • Unknown's avatar

    The code for the page reads:
    <li class="page_item page-item-33"><a href="http://matthewsim.wordpress.com/stuff/2/" title="Stuff&nbsp;2">Stuff&nbsp;2</a></li>
    It should be:
    <li class=”page_item page-item-33″>Stuff 2
    (Same for the other two sub-pages)
    So you must go to Manage Pages and change the editable part of their permalinks from “x” to “stuff-x”.

  • Unknown's avatar

    Sorry, forgot the ticks for the correct code! Again:

    The code for the page reads:
    <li class="page_item page-item-33"><a href="http://matthewsim.wordpress.com/stuff/2/" title="Stuff&nbsp;2">Stuff&nbsp;2</a></li>
    It should be:
    <li class="page_item page-item-33"><a href="http://matthewsim.wordpress.com/stuff/stuff-2/" title="Stuff&nbsp;2">Stuff&nbsp;2</a></li>
    (Same for the other two sub-pages)
    So you must go to Manage Pages and change the editable part of their permalinks from “x” to “stuff-x”.

  • Unknown's avatar

    panaghiotisadam, thanks so much for taking a look at this. The page slug is set to just “x”, not “stuff-x”, so that should be fine. Any other ideas?

  • Unknown's avatar

    FYI, I received a good answer on this. The problem is that single digits are reserved for paging and can’t be used as slugs. I’m all set now. Thanks everyone.

  • The topic ‘Page showing it’s parent instead’ is closed to new replies.