WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
[resolved] Show widget dependant upon previous page viewed. (3 posts)

  1. JohnGriffith
    Member
    Posted 12 months ago #

    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/

  2. alanft
    Member
    Plugin Author

    Posted 12 months ago #

    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.

  3. JohnGriffith
    Member
    Posted 12 months ago #

    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

Reply

You must log in to post.

About this Plugin

About this Topic