Hi Jason, is it possible to pass a variable to a template. To be exact:
Would it possible to add a custom field to each page (%my_portfolio_slug%) and use this value in the template elements?
I have about 10 pages (& 10 portfolio categories), each with their custom text and dedicated (portfolio category) post slider.
On the page template I use ‘content from the current page’ and a headline with %page_title%.
I now place each portfolio slider on the ‘current page’.
Would be nice (easy for markup changes) if I could place a ‘general’ portfolio post slider element on the template page and somehow inherit the portfolio slug from the page that calls the template. (like using %page_title% in a headline element).
- You must be logged in to reply to this topic.