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
29 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
20 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
23 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
33 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
25 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 ...
1
vote
1answer
33 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
1answer
33 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 ...
0
votes
1answer
33 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
50 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
0answers
15 views

How to, post-formats & category in link (permalinks)

For permalinks a combination of both. Simple: "e.g./type/status/category/general" -> return 404 or permutation, "e.g./category/genral/type/status" -> return 404 Do not working -How to i ...
0
votes
1answer
33 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
7 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
1answer
27 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 ...
0
votes
1answer
29 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
59 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
30 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
0answers
8 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 ...
1
vote
0answers
33 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
25 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
13 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
129 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 ...
0
votes
0answers
23 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 ...
0
votes
0answers
13 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
38 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
31 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( ...
0
votes
0answers
51 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
25 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 ...
0
votes
1answer
42 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
0answers
54 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 ...
1
vote
1answer
65 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
50 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
10 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 ...
0
votes
2answers
59 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 ...
1
vote
1answer
115 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 ...
0
votes
0answers
33 views

content-aside.php not being recognised

I am new to WordPress and I have hit a very frustrating block. I am trying to set up post formats, which I have done, and can select from the admin panel, but none of them will recognise my ...
0
votes
2answers
78 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
34 views

Theme development- photo gallery post type?

I am in the early stages of developing a theme and was looking at how to create a photo gallery post type where all of the images are contained in a slider which is inserted in place of a featured ...
0
votes
0answers
40 views

Why is my custom post type shown in the wrong place?

I'm using a template which shows the post formats pretty nice, but I don't think the WordPress way of making post formats is very user friendly. Therefore I have created my own custom post types by ...
1
vote
1answer
38 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 ...
0
votes
1answer
35 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 ...
0
votes
1answer
452 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
2answers
74 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 ...
1
vote
1answer
378 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
2answers
150 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 ...
0
votes
0answers
82 views

'Preview Changes' in CPT with Post Formats throws 404 error

I've tested a few custom post type plugins (having post formats support). ISSUE: While editing any CPT entry if I want to view those changes and click on 'Preview Changes' button, it throws a 404 ...
0
votes
0answers
146 views

add_meta_box() and post formats

function myplugin_add_meta_box() { add_meta_box( 'myplugin_sectionid', __( 'My Post Section Title', 'myplugin_textdomain' ), 'myplugin_meta_box_callback', 'post' ); } add_action( ...
0
votes
1answer
52 views

Post formats and template hierarchy

I want to use post formats but the theme (WP-Bootstrap by 320Press) on which my current template is based doesn't make use of the content.php template, only single.php. Is it possible to edit the ...
3
votes
1answer
343 views

Display posts for a single post format

I saw a a url path to display all posts of a particular 'format' a few weeks ago, but I've lost the link. Does anyone know the path? It will be something like mywebsitex.com/format/image Works ...
-2
votes
2answers
147 views

Post Format Status [closed]

I'm new at wordpress theme development. We inspected too many themes but didn't see any common culture at post format status. I wanted to ask how you're using this format, both front side and admin ...
0
votes
2answers
212 views

Style post formats differently on the home page

I was wondering how I can style different post formats differently on the home page. I set up all the formats and grabbed this code from a tutorial website, that displays all the different formats on ...