Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    May 2006
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

    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!

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Location
    Manchester, UK
    Posts
    533
    Thanks
    4
    Thanked 1 Time in 1 Post
    so would the user be looking at pages that are not in the blog.. then when they press "back to blog" it takes them to the most recent blog entry??

    (sorry, not 100% sure what you mean!)

  • #3
    Regular Coder
    Join Date
    May 2006
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry for the very late reply! I mean you know how WP has the blog (single post view, home page, archives etc) and then static pages? I'd like a back button on the static pages that would send the user back to the last page that was not a static page on the blog. I hope that clearer


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •