Conditions: Page have template, for example: /* Template name: News */
Explaining:
We have many pages, and one page with assigned template (/* Template name: News */).
I want on main page (index.php) retrieve page(News) url and title.
|
|
Let me try to summarize what you want and answer:
So you have a "News" page that's using a specific template called "News" and you want to grab that page's ID, URL, and title to display on the front page, correct? Get a Page by TemplateThere is no built-in way to grab a page based on the template it's using. Instead, you have to search for all pages based on a hidden meta value that matches your page template. So, let's say your News template is named
Remember, since Displaying Page InformationNow, inside your
|
|||
|
|