![]() |
how to create a page templat that act as directory?
I want to create a page that act as a category and show all the posts:
a kind of sitemap. I called a page with the slug "/map" and assigned it my custom page template. In the template i just override wp_query: PHP Code:
but it uses wrong HTML-Titlte and its missing H1 tags and also the body of the original /map page. Is there a way in genesis of simply doing this? I.e. 1. creating a page and using H1, TITLE, and Body from the Page 2. display posts from a custom WP_Query the same way as if i accessed /category/ EDIT: I've found a very hacky solution: PHP Code:
Thanks, Antonio :bang: |
How about something like this? http://www.briangardner.com/custom-archives-page/
|
Quote:
before the loop, i handle the archive loop in functions.php i don't need to recreate it in this template. Also a plugin apply_filter() call it in the "before wrap" functions. So its not something i can do with the custom grid loop. :bang: |
| All times are GMT -5. The time now is 03:44 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.