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

learn more… | top users | synonyms

0
votes
2answers
15 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
2answers
720 views

Video post format, extra content breaks video embed

I am using the content-video.php include to show the latest video post on my homepage. The include only shows the video from the post and not the rest of the content, which works well. My problem is, ...
1
vote
1answer
47 views

Different markup for each post format

I use the underscores.me framework and in mu content.php (the template displaying the loop of posts) I have the following code: <div class="article-text dot-ellipsis"> <div class="...
0
votes
1answer
44 views

How to get post attachments in gallery post format template

I'm doing a WordPress theme, and I get stuck on one thing. As you know, the post-format in WordPress has different types of formats, I did all the types except the gallery slideshow. What I need, for ...
-1
votes
2answers
38 views

Get post format and use it as a CSS class in different spans

I use a <span> inside the loop and I would like to get each post format the post is containing as a class in separate spans. Example: If the post format is video and private: I would like to ...
0
votes
2answers
27 views

Display post formats differently on index.php (loop in function)

I'm a newbie-- please bare with my ignorance here. I've been trying to read other questions about this but so far I can't wrap my head around this. I'm hoping to display post formats differently on ...
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
1answer
73 views

How to load a different header based on post format?

I have a difficult question. What's the best way to load a different header based on a post format? I guess I could load another loop around the header but I noticed the site does slow down. This is ...
0
votes
0answers
25 views

How to edit 'aside' post format in for a custom post type

I have created my custom post type using following code add_action( 'init', 'post_job' ); function post_job() { register_post_type( 'job', array( 'labels' => array( 'name' => 'Jobs', ...
0
votes
1answer
69 views

Change post template the proper way

I'm trying to create an option on edit posts screen (backend) to select different post template based the selection and I need your opinions guys if that is the proper way. Here is what I've tried so ...
0
votes
1answer
20 views

Setting 'post_format'

Currently I have the following code for my automated posting process file. // Create post object $my_post = array( 'post_title' => wp_strip_all_tags( trim( $row['title'] ) ), ...
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. ...
1
vote
0answers
53 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 ...
0
votes
0answers
48 views

Change flexslider bahaviour according to page width

I have a flexslider that displays photos from an Advanced Custom Fields gallery field on posts with gallery post format. Now, there are different post template widths that the user can choose. For ...
0
votes
1answer
68 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
1answer
71 views

Update caption for metabox gallery images

Just wondering how to make the caption on my metabox gallery images updatable. I have the caption on a textarea so it can be easily updated. I can change the contents of this textarea, cant seem to be ...
2
votes
1answer
68 views

How to generate a featured image from a video embeded in a metabox

I have a metabox that allows me to add videos from Youtube and Vimeo on posts with video post format. I am now looking into automatically generate thumbnails for these post with video post format. ...
0
votes
2answers
86 views

Icon over thumbnail according to post format

How would I go about adding icons over post thumbnails according to their post format. So for example if I have a post with a post format of audio the thumbnail would show everywhere(widgets, category ...
0
votes
1answer
75 views

How to show post format gallery metabox image caption in the post front end

After getting my images through a metabox for a gallery post format I have the following code to show them on the post front end: <?php if ( !empty( $images ) ) { foreach ( $images as ...
0
votes
1answer
125 views

Get image captions for images on gallery post format metabox

I have a post format gallery. I have created a metabox to add my images: function mytheme_show_post_gallery_metabox( $post ) { wp_nonce_field( 'mytheme_post_gallery_metabox', '...
0
votes
2answers
131 views

How to edit layout of a particular post format?

I'm looking to edit my theme layout of the aside post format. I have already included the add_theme_support() function to include the aside option when creating a post. However, the layout of an ...
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
37 views

How to treat post formats?

I'm currently working on another WordPress theme, supporting post formats. Adding post formats support to theme is easy, obviously — just few lines of code in functions.php. However from user's ...
18
votes
2answers
11k views

Is There a Difference Between Taxonomies and Categories?

I've been reading the codex for WordPress closely and am confused about the vague definitions between what a Taxonomy is and what a Category is. For that matter, term is also a word that is used in ...
0
votes
1answer
53 views

Archive of post format for Custom Post Type

Im using the CPT UI plugin to create my custom post types. I was wondering what i needed to do in order to see an archive of my custom post type by post format ie.. usually for default posts the url ...
0
votes
0answers
12 views

Post formats in 2 columns display

I'm having a hard time trying to figure out what's wrong in my loop. Here is my loop for a 2 columns post display : <?php $i = 0; ?> <?php if (have_posts()) : while (have_posts()) : ...
0
votes
2answers
3k views

Custom single.php files for different post formats

I have 3 custom post formats. One is for image, one for video, and, one for gallery besides the default post and they each have a view comments link on the bottom right corner at the end of the post. ...
0
votes
1answer
51 views

set_post_format called after wp_update_post when using bulk edit?

EDIT: See comments below. changing the question to reflect this new info From what I understand from the codex, save_post is meant to always fire after the post is saved (and when creating a new post)...
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!
1
vote
2answers
96 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 = ...
0
votes
2answers
106 views

Wordpress export tool doesn't export post-format value of custom post type?

I already created a custom post type with post-format support declared. register_post_type('portfolio', array( 'labels' => array( 'name' => __('Portfolio', "xxx"), ...
0
votes
0answers
10 views

wysiwyg automatic bulletlist when pasting Ø

I have a text in a MS word file with the following text: Bla bla bla Øjne Bla bla bla But when I copy and paste that into a post, it changes to: Bla bla bla jne Bla bla bla Any way to fix this?...
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 ...
0
votes
0answers
16 views

Set all post with X category to X post format when using XML-RPC

I came across this thread, which seems like it would work for what I'm trying to accomplish. I'm a little unclear on this code and was hoping for a hand. When a post is submitted to my wordpress site ...
1
vote
1answer
192 views

Custom post types vs post formats : future-proofing - is one less “future proof” than another?

I'm faced with the following guideline for a contracting job. Post Type vs. Post Format Avoid custom Post Types and embrace Post Formats! Post formats are supported by WordPress core, and are ...
1
vote
1answer
659 views

Is possible to add post-formats to custom-post-type?

I was wondering if there is some way to put together the custom-post-types and post-formats so I can code a new post type and offer some variations as post-formats. I'm involved in a company ...
0
votes
0answers
26 views

Query posts in current category but not attachment format

In my category.php i want to query posts in the current category but are not in post formats attachments. How do i achieve this? I currently have the below code that displays all the posts in the ...
3
votes
1answer
378 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 ...
0
votes
0answers
19 views

Export Gallery Post Format Image Src to CSV

I'm trying to export the paths of any images that are inserted into a post via the 'gallery' post format option. As of now, all I get are the image IDs of those images under a column that says '...
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?
0
votes
1answer
63 views

Display the video of a post_format Video

I've a post with post_format = video, in which the content are a video and a text (in the default editor). I need to display the video and the text separately. How can do it? For now, I've this code: ...
0
votes
1answer
35 views

Post Format problem

I'v tried really a lot of solutions, and the one that works, it works half a way. Inside single.php I'v added <?php while ( have_posts() ) : the_post(); ?> <?php if( has_post_format('video'...
0
votes
0answers
77 views

Is there a way to query for standard post formats along with other formats in a single query?

Let say I want to query for standard post formats along with video post formats excluding all the other formats. I can imagine the query like this: $query = new WP_Query( array( 'post_type' =>...
0
votes
0answers
33 views

Display the_date() but force the_time() behavior if format is different

In my blog, there are two post formats, standard and link. For standard posts, the date of publishing is always shown at the end of the post, no matter what, and never above its title. For link ...
4
votes
2answers
1k 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 ...
1
vote
1answer
94 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 ( ! ...
0
votes
1answer
52 views

Make tag archive display post are ordered by post format

I would like to set up an archive page for tags where posts are displayed separated depending on post format, first post-format-aside then an archive with all posts except the posts already displayed, ...
0
votes
0answers
11 views

Utilizing 'link format' in WordPress without losing SEO value?

In many WordPress themes that support formats, applying the link format to a post makes its title point to a URL (examples can be found: Daring Fireball and MacSparky). In the theme I'm using, the ...
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 ...