• I need to create a php call that will recognize the last page a user navigate from and display a header associated with the page. Example: User navigates to post from page 1 then header 1 appears, but if the navigate to same post from page 2 then header 2 is displayed. Any ideas. I am lost on where to even start.

Viewing 1 replies (of 1 total)
  • You could use custom fields for each post. So for instance you could specify the URL of the header file/image in a custom field for the post, then in the theme itself, have the header read the current posts meta for this custom field and display this header.

    Here’s more about using custom fields in WordPress: http://codex.wordpress.org/Custom_Fields

    Hope this helps or at least gives you some further direction.

    ~Anthony

Viewing 1 replies (of 1 total)
  • The topic ‘How To Display Header Based On Last Page Viewed’ is closed to new replies.