Back to last page viewed that is not is_page()...?

Discussion in 'PHP' started by belledumonde, Oct 31, 2006.

  1. #1
    hello! i was wondering if php is capable of doing the following and if so was hoping i could get some help doing it.

    i have a wordpress blog and change the content of the sidebar depending if the page being viewed is part of the blog (home, archive, search, or single post) or an actual seperate page (like the about, disclaimer etc).

    what i'd like is to have a link on the sidebar when viewing a page that says "back to blog" thats acts as a back button like in a browser, going back to the last page viewed. except what i want is for it to go back to any page that isnt a page, so basically the last blog page. um, does that make sense?

    let me try again.

    person is looking through blog
    clicks on a page
    wonders through pages
    clicks on "back to blog"
    redirected to last blog page

    does that make sense?

    hope it does, thank you in advance for any help!
     
    belledumonde, Oct 31, 2006 IP
  2. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if you define last blog page I might be able to help :)
    Do you mean last blog page viewed or last blog post ?
     
    maiahost, Oct 31, 2006 IP