Displaying Archive results to custom PAGE
-
I have a custom page named ‘Workshop’, which uses the default template. However, the page has a custom sidebar with a custom menu widget. The menu the widget uses has a combination of category and tag links. Therefore, when a link is selected, the archive.php is used to generate search results.
DILEMMA: I would like the results generated by the archive template displayed on the ‘Workshop’ page followed by the page’s usual content. Most importantly though, if one cannot combine the page content, I would like the custom sidebar assigned to the ‘Workshop’ page reappear instead of the archive default sidebar.
ONE SOLUTION: I tried adding a conditional statement at the end of the archives, but I realized using the is_page(‘workshop’) isn’t going to work, because one is on the ‘archive’ page and not the calling page—‘Workshop’.
ANOTHER SOLUTION: I created a custom archive.php called archive_page.php. However, I am missing how the item in the sidebar-widget knows to use the custom archive file and not the default archive file.
Does anyone have a solution to my dilemma?
Here is a link to the ‘Workshop’ page: Strategies in Motion Work-shop Page/.
- The topic ‘Displaying Archive results to custom PAGE’ is closed to new replies.