change link "rel" in search depending on _wp_page_template
-
Hi,
I have been searching for a few hours and tried a few different things but just cant find out how to fix a problem I’m having with search results.
The site I have uses pages which in turn have sub pages, these sub pages contain video and text and have their own template (video) which strips out the header and footer. These video pages are only ever displayed in a jquery overlay which gets triggered by rel=”#overlay” in the link from the parent page.
My problem is when a user searches these video pages are getting returned but the links need the rel=”#overlay” applied.
I just need to figure out which template each listed result is using and apply the correct rel to the link in the search results page
My questions, is this possible? I have tried “get_page_template” but didn’t get very far.
Thanks and any help suggestions much appreciated
- The topic ‘change link "rel" in search depending on _wp_page_template’ is closed to new replies.