samedi 29 novembre 2014

List all pages using a specific template on a page


I just created a WordPress page called Latest Blog Posts where I want to list, in chronological order, all pages from my website using the template name "Blog". The list should contain the title of the pages, the date the pages were published and their thumbnail images.


Is there any WordPress built-in function/query that could easily allow me to do so? If not, how should I proceed when creating new blog pages (using the template "Blog") to allow me to list them all on a single page.


Most of my pages do not use the template name "Blog" but I recently decided to ad a blog section to my website and would love to be able to list all my blog posts on a single page.





Aucun commentaire:

Enregistrer un commentaire