• I’m trying to create a navigtion widget that will allow the user to go back to the parent, how can I make a relative link so that it will work on all pages that sends the user back to parent article?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I would strongly advise against trying to use relative links in any WordPress site. They can – and often do – behave unpredictable. Stick to full (absolute) urls.

    Thread Starter RealtorDC

    (@realtordc)

    I understand.. but if I am going to put it in a sidebar.. or possibly use it on multiple sites, I can’t do it without relative links.. so can it be done?

    I can’t do it without relative links

    Why not?

    Thread Starter RealtorDC

    (@realtordc)

    well I guess you know something I don’t.. please share.. If I want to create a sidebar widget, that will always go up 1 level to parent, how do I include an absolute link?

    Parent1 > Page 1
    Parent 1 > Page 2

    Parent 2 > Page 1
    Parent 2 > Page 2

    Same link returns user to Parent of appropriate page from any page? How?

    Have a look at List_Sub-Pages for some ideas.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can you relative link to parent?’ is closed to new replies.