Exclude Current Page from "Pages" Widget
-
Hi all,
I would like to apologize if this question is already answered somewhere but I was Googling it for many hours and I didn’t find the solution.So, here is what I want to do:
I have created a “Pages” widget which shows all my pages at the sidebar.
What I want is my current page to be excluded from the widget.For example, let’s say I have the widget “Other Services” which lists all pages related to services. This widget is shown in every service’s page.
So, if I am in page ‘Service 1’, the widget shows a list of links, like- Service 1
- Service 2
- Service 3
- …
What I want is the widget to automatically detect that I am currently in page ‘Service 1’ and exclude it from the widget’s list so I can avoid creating different “Other Services” widgets from every service page.
Is this possible with some way?
Thank you in advance.
- The topic ‘Exclude Current Page from "Pages" Widget’ is closed to new replies.