• Resolved JohnGriffith

    (@johngriffith)


    Is there a condition which may be applied in Widget Logic to show a widget on page X in domain example.com only if the previous page viewed was, say, page y in domain example.com?

    So if you access page x immediately after viewing page y, you see the widget.

    If you access page x immediately after viewing any page except page y, you don’t.

    Regards,

    John

    http://wordpress.org/plugins/widget-logic/

Viewing 2 replies - 1 through 2 (of 2 total)
  • the only simple or ‘to hand’ way of driving this from the server end of things I can think of is to use the URL you get from

    $_SERVER[‘HTTP_REFERER’]

    and parse the URL somehow.

    Thread Starter JohnGriffith

    (@johngriffith)

    Thanks alanft,
    I downloaded widget logic plugin and used the $_SERVER[‘HTTP_REFERER’]as you suggested and it worked perfectly !
    Their instruction page actually had an example of doing this,
    Thanks again,
    John

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show widget dependant upon previous page viewed.’ is closed to new replies.