• erobertwald

    (@erobertwald)


    Hey all! First time posting, hope I’m in the right place!

    I’m working on a WP site, and I have a hierarchy of sorts set up to display posts in a drill-down fashion.

    At the top level, I have a page called “Media”. This page displays a list of the ten most recent posts that use the category “Video”, and each has a link that will take the user to the post itself via its permalink.

    At the bottom of this list is a link to see the full list of videos. The page the link calls is a page called “Media Video” and is a child page of “Media”. Clicking this link will take the user to “media/media-video”, which displays all of the video posts available. As with the “Media” page, clicking on the link for each item will take the user to the post itself via its permalink.

    I would like to be able to capture the page that brought them to the post in some way for reverse navigation. If they come directly from “Media”, I’d like to provide a “Back to Media” link. Likewise with”Media” > “Media Video”. This would be helpful as individual links, and also in arranging a breadcrumb.

    The other snag is that there are other pages in the site that will utilize these posts in the same manner, like “Portfolio” and “Portfolio Video”.

    One thought that occurred to me was to use php’s $_SERVER[‘HTTP_REFERER’] and parse that string but I was wondering if there might be something more “wordpressy”.

    Any suggestions? Thanks in advance!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Page/Child Page/Post Navigation Question’ is closed to new replies.