Post Formats allow for various types of posts to be styled or formatted based on their meaning.
6
votes
2answers
3k views
How do I query by post format in WordPress 3.1
I am trying to query for all posts with a post format of 'quote.' I have added the post formats to my functions.php with
add_theme_support( 'post-formats', array( 'image', 'video', 'gallery', 'quote' ...
5
votes
3answers
2k views
has_post_format() vs. get_post_format()
I just stepped into the concept of post formats and was wondering why there are two out of 3 functions from the post format "API" offer absolutely the same functionality. Consider the following two ...
5
votes
3answers
141 views
What difference does it make if I enable support for video post format?
I am sorry if this is stupid. I can't seem to figure out what special things it does. If I embed a youtube video(embed/iframe) it works for both standard and video format. Surely, I am missing ...
5
votes
2answers
448 views
How to filter by post-format in admin?
I need to filter my posts by Post-Formats in admin ?
How can I do that ?
For now, Wordpress allows to filter by Categories and Dates.
5
votes
4answers
1k views
Display/query post formats
WP 3.1 has everyone excited, if somewhat confused, about post formats.
Enabling new post formats
The issue of enabling post formats has been covered at length. It's as simple as adding this line to ...
4
votes
2answers
1k views
post formats - how to switch meta boxes when changing format?
Problem
After realizing that post formats are pretty popular, but only a extremly rough drawn concept, i see that users will run into possible traps.
Post format ...
uses post meta fields & ...
4
votes
3answers
1k views
Different post format options per custom post type?
I want to add post formats for each post type. For example, I have a post type 'Gallery'. I want to add 'images', 'galleries' and 'videos' in this post. In normal posts I want to use another list of ...
3
votes
4answers
1k views
Is it possible to rename a post format?
Since WP 3.1, it's been possible to use Tumblr-style post formats. I want to use the 'aside' option in a theme, but I want it to have a different title in the WP admin area.
So, for example, when a ...
3
votes
4answers
1k views
Is it possible to remove the “standard” post format?
I'm using post formats heavily on a project, but have no current need for the standard option. Beyond being an unnecessary bit of UI, it actually causes broken behavior if it does get mistakenly ...
3
votes
2answers
519 views
Adding post-formats to Twenty Ten child theme
So I have been building a child theme for a site. Wanted to add post formats to a twentyten child theme. Now, the goal of my child theme is to copy over the absolute least amount of code/templates ...
3
votes
4answers
811 views
How to set a default format for a custom post type?
I created a custom post type for my blog, to allow easier separation of content. This new post type supports different post formats, but most of them will be galleries.
register_post_type('atelier',
...
3
votes
1answer
482 views
How to exclude posts of a certain format from the feed
I want to exclude posts from aside post-format in the feed. I have already checked up here about how to exclude posts from a certain post format from the loop but how to exclude posts from a post ...
3
votes
1answer
478 views
Post format selector in Thematic child theme post class
I'm having a very hard time implementing post formats in my Thematic child theme. I am able to add post format theme support and add content via the big conditional statement, but the .format-video, ...
2
votes
2answers
448 views
Post Format Archive template name for theme folder?
What should I call the archive file for a post format? Ex archive-gallery.php? (doesn't work)
I would like to create a list of all the gallery formats with a preview and some custom taxonomies thrown ...
2
votes
2answers
3k views
Custom Post Formats for Custom Post Types
The weight of opinion seems to favour using custom post types instead of custom post formats.
I have several custom post types that I want to style in 4 different formats in a way that is not public ...
2
votes
1answer
83 views
Is there a real life use case for post formats except for microbloging?
I am trying to write a guide for using wordperss and can't quiet figure how explain the usage of post formats. I read all the documentation available on the web and then played with twentytwelve and ...
2
votes
2answers
262 views
Changing “Enter title here” based on post format
I'm wondering if is possible to change the text "Enter title here" based on the post format that you selected? For example: If you select the post format Quote than your text will be "Enter author's ...
2
votes
1answer
389 views
Post Formats in the context of the Database 'Save Post' function
I am trying to pick up an in-depth understanding of how post-formats relate to posts 'in the database' - i.e. what meta information when compiled together constitutes a post format. And yes, I do ...
2
votes
1answer
129 views
Hide meta box based on post format
I'm currently using a version of this function - post formats - how to switch meta boxes when changing format? which hides all meta boxes until a corresponding post format is selected (Ie; If someone ...
2
votes
1answer
189 views
How to change post format from Aside to Image for all posts?
I have a blog where all the posts had the post format Image. This morning I see that somehow they have all been changed to Aside. I'm still trying to figure out how this happened, but in the ...
2
votes
1answer
36 views
Target all posts that are NOT aside or link post formats
I want to add a post title to all of my posts apart from those that are marked as "aside" or "link" post formats.
I'm currently using this code to hide the post title for aside posts;
<?php if (! ...
2
votes
0answers
142 views
Change post format using custom field
I'm creating a theme using the CF Post Formats plugin. But I've run into some trouble I don't know how to solve. Here's what I want to be able to do:
Create a new standard-format post
Enter a url ...
2
votes
0answers
55 views
Exclude Post Format from next_post and prev_post
Is there a way to exclude a specific Post Format from next_post and prev_post? I want my asides to show up in the regular list of posts on the main blog page, but when a user is navigating through ...
1
vote
2answers
201 views
How do I remove the post format meta box?
Is it possible to remove the "Post Format" meta box from the edit/new post page?
The blog in question has a lot of users that keep messing with that but it only uses the standard format post.
I'm ...
1
vote
3answers
1k views
How do I add a new custom post format?
How do I add a new custom format while making a post in WordPress?
The default formats are standard, aside, image, gallery... I want to add a new format of 'xyz' name. How can I do it?
1
vote
2answers
209 views
Filter the_content() in the Quote Post Format to Display Quotes
I'm customizing a theme for a client and I want to leverage post formats.
On the quote post format I would like
the_content();
to be wrapped in a two spans that contains quotation marks that I ...
1
vote
2answers
467 views
Tumblr-like Post Types for WordPress
Is there any way to get Tumblr-like post types for WordPress? Ones where when you select a post type, it gives you different fields in the post editor for that type. For instance, if there was a link ...
1
vote
2answers
283 views
Auto-embed link info from URLs in link post format?
Would it be possible to make the link post format work the way links are shared in Facebook, i.e. auto-populate a title, description, and thumbnail?
A plugin for BuddyPress (Buddypress Links, see ...
1
vote
1answer
958 views
Custom Post Formats
Here's my use case: a client will be making numerous blog posts, some of which are portfolio pieces of his recent work. This sounds like a perfect use case for a Post Format, but no "portfolio" post ...
1
vote
1answer
109 views
How can I achieve something like has_post_format( 'standard' )?
In opposite to get_post_format, the conditional has_post_format() function returns a boolean value and should be the perfect function for a conditional check like:
if ( has_post_format( array( ...
1
vote
1answer
406 views
Plugin to set all Posts in a certain Category to a certain Post Format
I want to setup my WordPress so that whenever I create a post with the category "Tweet", my wordpress installation automatically changes the post format from post to aside. This will help me because I ...
1
vote
1answer
435 views
Link Featured Thumb to Attachment Page, If Possible
Are featured thumbs uploaded the same as other images and have their own attachment post url?
I'm trying to utilize the 3.0+ post formats and am using the featured image when creating a post under ...
1
vote
3answers
610 views
Only get_posts of certain post formats
I'm trying to create a archive list with only my "normal" post format articles (not link, aside, quote, etc formats).
How would I implement has_post_format( 'standard' ), or something similar, into ...
1
vote
2answers
458 views
Does Wordpress generate an automatic page for post formats?
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 ...
1
vote
1answer
101 views
What is the recommended behavior for the post formats?
I will be modifying a theme to add post types to it here soon. I know there are post formats and I realize I could make the behavior be whatever I want. However, I would like them to be used for how ...
1
vote
1answer
467 views
Filtering post-formats from the loop using new WP-Query();
Hi i am currently building upon a theme that i have build previously for my blog.
The following code is to point to the latest post (the featured post). As this will have a different styling than all ...
1
vote
1answer
49 views
WordPress As A Shared Items Collection
I'm planning on using WordPress to create an arcive of my starred/shared/favourited items on a few services, such as:
Twitter Favourites
YouTube Favourites
Google Reader Starred Items
Stack ...
1
vote
1answer
31 views
How to recognise on which site the content is being rendered?
I've created a child theme basing on twenty twelve.
Since I present the content a little bit different on home and on the archive page, I'd like to know inside content-[format].php on which page the ...
1
vote
1answer
61 views
Checking post format during xmlrpc_publish_post
WordPress apparently stores post format information outside of the $post object. During publish_post this isn't (usually) a problem because you can check on formats via get_post_format( $post->ID ) ...
1
vote
1answer
185 views
Filtering out specific post formats from certain pages
I'd like to filter out certain post formats from certain page templates. Specifically, I'd like to exclude link post types from the front page, so I can put them in a side bar, but still keep them in ...
1
vote
3answers
553 views
How to Link to all posts that have the Standard Post Format
Why doesn't this work?! <?php echo get_post_format_link('standard');?>
:( Any hints? All the other formats work.
1
vote
1answer
276 views
post formats - how to get the relevant content part?
The following post formats got a specific type of content part that should get displayed:
Audio
Video
Link
Questions:
A) What is the exact content (element) that is meant to get displayed for ...
1
vote
1answer
81 views
Assign post format to categories
I'm looking for a way to allow Wordpress (via a plugin?) to assign a specific post format to categories. (I can assign categories via a third party like IFTTT)
Then all my posts in a certain category ...
1
vote
0answers
47 views
Difficulty with PHP function that displays a post's format in WordPress
I am working on a WordPress theme using Bones. I would like to be able to show some text just above the title of each post if the post is either featured, password protected or private.
So far I came ...
1
vote
1answer
223 views
Displaying icon image for WordPress post formats, is there a cleaner way to do this?
The code I am currently using in the loop is in this code snippet:
https://gist.github.com/1316622
This just seems messy, and long.
I am thinking the best method would really be to use CSS ...
1
vote
0answers
171 views
In Loop, if a Gallery, Only Pull First Image [closed]
I'm trying to create a loop that only displays the post types: "photo" and "gallery".
If it's a gallery I would like to display only one of the images, preferably the first.
I'm a little confused ...
0
votes
2answers
690 views
Formatting Standard Post Format
I'm looking to display an image for all the "standard" post formats on my site. I have done some research on how to add quote, video, photo, etc and have been able to implement these images into the ...
0
votes
2answers
341 views
how to get list of post formats supported by theme?
After adding support for a selection of post formats like this:
add_theme_support( 'post-formats', array( 'aside', 'video' ) );
how can I then get the list of supported post formats back?
I'm ...
0
votes
2answers
45 views
Is it possible to filter the display name for post formats for display in the Formats meta box?
I've got a few special needs in terms of post formatting, but do not want (and cannot) break out of the standard Post Format paradigm per best practices.
I've come up with a mapping of WordPress ...
0
votes
1answer
24 views
How can I add a filter to a particular post format?
I have several post formats and I want to use add_filter selectively, applying the filter to some of the post formats but not all. When I do this in my functions.php file it affect all the post ...