WordPress.org

Support

Support » Plugins and Hacks » Widget Logic » [Resolved] Show widget dependant upon previous page viewed.

[Resolved] Show widget dependant upon previous page viewed.

  • 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)
  • Plugin Author alanft

    @alanft

    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.

    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 ‘[Resolved] Show widget dependant upon previous page viewed.’ is closed to new replies.
Skip to toolbar