Post Formats allow for various types of posts to be styled or formatted based on their meaning.

learn more… | top users | synonyms

1
vote
3answers
848 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
299 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
2answers
35 views

Post titles below the post format content

I've been trying to figure out this problem for a while now: <article class="post"> <div class="entry-header"> <h2 class="entry-title"><a href="<?php ...
1
vote
0answers
25 views

Usage of post_formats

During the process of developing my first serious theme I stumbled over a basical question: how should I use the post_formats? I know what post_formats are useful for. But for learning purpose I ...
1
vote
1answer
186 views

How to exclude post formats from wordpress recent posts in a tabs widget

hey guys so i have a problem is that what i want is just standard recent posts only to show and i using a function in my the theme function file to show the recent post the code of the function ...
1
vote
0answers
57 views

Best way to handle Post-Format Video without using the_content?

I have read the Codex and I'm about 3 hours searching around sites for a deep understanding of post-formats but got no answer. Don't know if it is a dumb question but after spending a long time ...
1
vote
1answer
57 views

Registering different Post Formats for Blog Post and CPT

I'm using following code to register post formats for my blog posts ... add_theme_support( 'post-formats', array( 'gallery', 'video', 'audio' ) ); Now, i want to add post formats support for my CPT ...
1
vote
1answer
265 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
89 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
324 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
172 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
994 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
1k 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
1answer
209 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 ...
0
votes
2answers
215 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
2answers
176 views

How to enqueue scripts depending on post formats?

So I'm trying to enqueue scripts used for some post formats like video and audio and I could find a way to check what post formats are going to be shown on the page. I tried print_r on some global ...
0
votes
2answers
19 views

Adding new post format on plugin activation

I am adding a new post format on my plugin activation using this code: wp_insert_term( 'post-format-interviews_ans', 'post_format' ); It's not working. The rest of the plugin activation code, like ...
0
votes
1answer
86 views

Query only the posts with a post format of “audio”

I'm trying to query only the posts that have a post format of audio. I'm pretty sure I'm doing this wrong. Can I get a little help? <?php get_header();?> <section id="content"> ...
0
votes
2answers
1k views

Post formats template

I would like to know what template wordpress uses to display post formats archive pages? What is parent template file that is used when there is no specified template file and what is specified ...
0
votes
2answers
585 views

Apply post formats to a specific post type only?

I have the following code in functions.php to give me post format support and a custom post type 'photos'. But I would like the post formats to only apply to the 'photos' post type and not to the ...
0
votes
1answer
447 views

Understanding Post Formats/Custom Post types Etc

I don't understand what "Adding Post Type Support" is for when we have "Adding Theme Support"? For different post-formats this is the way I was shown before. This is then how I did it for the project ...
0
votes
1answer
427 views

Exclude post format from get_posts

The title basically says it all. I know I can use the following to get posts from the aside post format: $args = array( 'post_type'=> 'post', 'post_status' => 'publish', 'order' ...
0
votes
1answer
558 views

post formats - where's the difference: “aside” vs. “status”?

As stated in a previous Q, i'm currently getting into post formats and what to do with them. After searching for quite a time through search results and a lot of blog posts, i realized that there's ...
0
votes
2answers
100 views

Taxonomy - Exclude post format from showing on page

Im trying to set up a taxonomy to hide a post_format on a particular page. I have created the below which stops that post_format from displaying on the page but it also hides it in the 'Posts' page ...
0
votes
1answer
511 views

Add URL field to the link post format

I'm building a blog where 95% of posts will be of "link" post format. I'd like to specify the URL explicitly when adding a new "link" post. In a separate field between the title and the content. (Not ...
0
votes
1answer
177 views

How to get the id or url of the image in an image post?

I have a bunch of image posts and I'd like to get the ID of those images I didn't set a featured image so I can use wp_get_attachment_image_src() to get the urls of various sizes of those images. ...
0
votes
2answers
332 views

How can I make a page for post formats (specifically quotes) in wordpress 3.5

I am trying to create the ability for the end user to add quotes (testimonials) as posts. So far, so good. I have enabled the 'quote' post-format in my theme. So the ability exists to enter said ...
0
votes
1answer
76 views

How can I prevent posts with no title showing up in my query?

How do I prevent posts with no title showing up in my query / loop ? ( I am doing aside, quote etc post-formats and I want to exclude title less posts from one particular loop) I have nothing on ...
0
votes
1answer
389 views

How do I get standard posts to open up in their own template when using get_template_part()?

It seems to me that twentyelven opens standard single posts using the file content-single.php yet when I try the same code and files they open for me in content.php here's the code I have in ...
0
votes
1answer
241 views

Almost Done… Post Format Code

I would REALLY appreciate some help with this, I have been working on it for a while and am so close to done I can taste it. I need each post format excerpt to have the same excerpt code as the ...
0
votes
2answers
3k views

If post-format == 'gallery' conditional

I'm working on trying to get my homepage template to display post-format 'gallery' a little different than the other formats but having no luck so far. Here is a snippet 'inside the loop' that shows ...
0
votes
3answers
64 views

Getting Twitter Content on My Blog

I'm the editor of a niche blog that posts lots of great content. We also post links to other sites/resources in our Twitter feed. What's frustrating to me is that outside content on our Twitter feed ...
0
votes
1answer
91 views

Use different post formats on different post types

I added post-formats support like below. add_theme_support( 'post-formats', array( 'gallery', 'link', 'quote', 'audio', 'video' ) ); I also added post-formats support to custom post type like ...
0
votes
1answer
346 views

How to query posts of standard post format. For real

So, I have been looking EVERYWHERE. I tried every kind of combination. So far, nothing. I have to query two posts to show on my front page, of post post-type, not in one category but, most ...
0
votes
1answer
45 views

How to make the 'delete' button inactive on some categories?

As currently there's no way to declare any new custom post format in WordPress (3.9.1), is there a way I can make the 'delete' button on some categories inactive, so that the Editor can't remove them, ...
0
votes
1answer
684 views

How to create Page templates for showing Blog posts in different layouts?

I'm creating a Wordpress Theme, and I want to create few Page Templates for creating Blog pages with different layouts. So for example, I want to have blog-4-column.php, blog-3column.php and ...
0
votes
1answer
149 views

How to show only Standard Format post in my custom taxonomy page -wordpress 3.8.1

I want to exclude photo and video categories (ID's 1 and 2 respectively) from my custom taxonomy page. Any suggestions on how can I exclude these two categories from the loop? <?php /** * ...
0
votes
3answers
185 views

Conditional for Post Format

I want to to show a specific content on the top of each post (on single page) depending of the post-type. If it's normal, show something, if it's gallery, show another. By now the code is like this: ...
0
votes
1answer
824 views

Add specific custom fields to post formats

I am trying to find a simple way to customise my wordpress backend and register different custom fields for each post formats. I know this is easy to do with custom post types but is it at all ...
0
votes
2answers
538 views

Include Post Format in permalink

I'm running the latest version of WordPress with pretty permalinks enabled. I'm looking for a way to include the Post Format type (eg: link, status, quote) in the post's permalink. When the post has ...
0
votes
1answer
59 views

Post Format Link Validation Error

For link post formats to appear in my archive.php I'm using the following code: <a href="<?php echo wp_trim_words( get_the_content(), 100 ); ?>"> <?php the_content(); ?> </a> ...
0
votes
1answer
440 views

Add Post Format Support to Twentyeleven Child Theme

On a Twentyeleven child theme's functions.php file I attempted to add video post format support using: add_theme_support('post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', ...
0
votes
2answers
544 views

Adding link post format to theme and permalink to rss feed

I have been in the process of adding the link post format to the thematic theme via a child theme. To be honest, this is the first time I have done any sort of theme work with WordPress. I have been ...
0
votes
2answers
188 views

Cafe Food Menu upload

A funky cafe changes their menu every month, and they're not comfortable with using the default Wordpress editor to make a Wordpress page look the same as their Word doc. Example word doc here. Can ...
0
votes
1answer
197 views

Smart post format loop problems

Hi i'm trying to adopt the get_template_part() method for looping post formats as in: if ( have_posts() ) : while ( have_posts() ) : the_post(); if( ! get_post_format() ) { ...
0
votes
1answer
264 views

“post-format” code snippets list [closed]

What is it about? This Q shall become a collection of code snippets about post-formats and their use cases. What to add? Please add snippets/functions/classes/project-links about... Pulling & ...
0
votes
1answer
204 views

How can I correctly redirect user to the submitted post and define a template for each new post in Wordpress?

What I want to do is to create a simple front-end post submit form, for every different type of post I will include in my Wordpress app. For example there will be articles, events, quick messages and ...
0
votes
1answer
432 views

How does one go about converting custom post type to post format?

I have a blog which uses custom post type 'aside' for aside posts. Now that wordpress has custom post formats, I want to use the 'aside' post format instead. Is there a way to convert post typess to ...
0
votes
3answers
236 views

A better code for no post format?

As suggested on this site, I am using this code to style an excerpt if no post format is selected/if it is a standard post. <?php $format = get_post_format(); if ( false === $format ) { echo 'This ...
0
votes
1answer
267 views

3.1 post formats and specific categories/custom taxonomies

Is there a way to have a specific custom taxonomy for new 3.1 post formats? Let's say for example we want to categorize the "gallery" post format with two categories —only available for those kind ...