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

learn more… | top users | synonyms

1
vote
1answer
1k 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
794 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
59 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
2answers
95 views

Filter the first <blockquote> from Quote Post Format

I want to get the first blockquote from the post (even if the user writes only one, or more than one) in the Quote Post Format, in order to show it in the archive Loop. For example: $quote = ...
1
vote
1answer
44 views

How do I use this PHP library to access OpenGraph data in a child theme?

I'm fleshing out post formats in a child theme. For link-type posts, if a featured image hasn't been set, I'd like to fetch the OpenGraph image associated with the link and display it. I've found ...
1
vote
1answer
516 views

Displaying all Video Post Formats to Page

I am creating a video-archive page for all the posts_format with video. Currently, I have: <?php $format = has_post_format('video', $post_id); ?> <?php if($layout != "fullwidth") { ...
1
vote
1answer
778 views

Database location in Wordpress

I have created my website in WordPress and want to transfert it in my domain created with ipage. I am not able to locate the WordPress database. Can you help me? How is the format or extention of DB ...
1
vote
1answer
34 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
207 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
931 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
302 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
33 views

Is there any problem if I use get_template_part like this?

I want to display different content on my home page and in single pages, so I am using the following code in index.php: get_template_part( 'template-parts/content-home', get_post_format() ); At ...
1
vote
0answers
51 views

How can I remove the first video from a post and feature it?

I am trying to develop a theme in which when you select a 'video' post format, it automatically gets the first video from the post and features it (instead of where the featured image would normally ...
1
vote
0answers
40 views

Post Format Default Content

Is it possible to have the default content change as the user selects different post formats? What I want is for backend users of my Wordpress to select different formats, thereby changing between ...
1
vote
0answers
28 views

How to get Related Custom Posts?

So i am having an issue where i try to get the latest posts but also the related one from Custom Post Format - Video. Didnt see anywhere this solution/tut, is it even possible, i guess it is. I just ...
1
vote
1answer
93 views

Exclude post format from navigation

I would like to exclude the post format "image" from the navigation at the bottom of my single posts. How would I be able to amend the following code to exclude the "images" post format? if ( ! ...
1
vote
1answer
145 views

previous_post_link/next_post_link disappear when excluding by post_format

I am trying to exclude aside post formats from my next and previous links, but for some reason, using get_term_by is not returning me the term_id for the post_format taxonomy. I see this taxonomy ...
1
vote
2answers
178 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
36 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
368 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
1answer
117 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
363 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
96 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
412 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 ...
0
votes
2answers
1k 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
371 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
313 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
211 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
78 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
194 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
1answer
1k 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
2answers
723 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
499 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
573 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
2answers
4k 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
1answer
621 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
14 views

Override post-formats in child theme

I'm using a child theme that only has video post format, but parent theme defines all post formats: add_theme_support( 'post-formats', array( 'gallery', 'link', 'image', 'quote', 'video', 'audio', '...
0
votes
1answer
67 views

Audio post format with Advanced Custom Fields

I am using the Advanced Custom Fields plugin to create custom fields for post formats. I have a field that only displays when the audio post format is selected. This is a text filed where the user ...
0
votes
2answers
299 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
2k 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 importantly,...
0
votes
1answer
228 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
394 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
83 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 this....
0
votes
1answer
429 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 index....
0
votes
1answer
249 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
35 views

Post format or Type for List Type Posts

I want to create a post type / format where I can create list type posts... For example... h1.Title: The List Post Title like "Best Salads..." - Intro paragraph h2. Best Veg Salads - Intro -- h3. ...
0
votes
1answer
70 views

Month display in English but required in Swedish?

I am using WordPress settings like below Image: On post output come like 13 October 11:49 but my requirement is to make it like oktober in Swedish and same for all other months. Thanks!
0
votes
2answers
34 views

About post format

I've been trying to get post format to work for a while now, and for some reasons it is still not working the way it should. I am creating a custom theme based on HTML5 Blank theme. First thing I ...
0
votes
1answer
64 views

How to modify get_the_excerpt() when post-format equals 'quote'?

How can I modify the get_the_excerpt() when the post-format of the post is set to quote?