I want a page to view only a specific post format (e.g. aside).
Do I have to create my own page and run a custom query, or does WordPress have an automatic page generated for me (like the categories)?
I want a page to view only a specific post format (e.g. aside).
Do I have to create my own page and run a custom query, or does WordPress have an automatic page generated for me (like the categories)?
You must be logged in to post a comment.
Take a look at get_post_format_link()
Here’s a little example that uses
get_post_format_link()
to show a link to the format’s archive page. You can see something similar to this in action on Justin Tadlock’s site.usage:
The URL Structure is:
So for an aside we’d have:
You would need to add theme support for post formats with code.
The code above is what you’d put in your theme’s
functions.php
file, and then in your template files, you would display each post accordingly with the following code, for example if your post format for a post wasvideo
:See the Codex for more info:
http://codex.wordpress.org/Post_Formats#Adding_Theme_Support