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
18 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
0answers
24 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
25 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
30 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
47 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
46 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
36 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
86 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
24 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
135 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
67 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
45 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 ...
0
votes
1answer
39 views

Category template not displaying all post formats

When I visit a category page that lists all posts in that category, the divs that are to hold the content are empty. The template is clearly only set to display the standard post format, but none of ...
1
vote
0answers
26 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 ...
0
votes
2answers
148 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
3answers
66 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
43 views

Change standard post format metabox

I added a meta box to my theme (WordPress admin) for video, image, gallery and chat, but I can't add a meta box for the standard post. When I add post type support for "Standard", the standard post ...
0
votes
2answers
73 views

Post archive for certain post format

I am using the following code for a custom archive of all posts: $taxonomy = 'category'; $param_type = 'category__in'; $term_args = array( 'orderby' => 'slug', 'order' => 'ASC' ); ...
0
votes
0answers
62 views

CPT unsaved draft gives error 404 - when Post Formats support enabled

I've a plugin for Portfolio CPT (can be downloaded from here: http://bit.ly/1tEj5bC), using this plugin, every thing works fine. But when i edit any portfolio entry and click on 'Preview Changes' ...
0
votes
1answer
48 views

An archive page without post format (just standard post)

I'm trying to get posts with not marked with any type of post types (aside, audio etc). But I didn't find any solution to do this. I thought doing this with custom fields but site has a lot of ...
0
votes
1answer
32 views

Display post format post in the sidebar

I am trying to pull posts with the post-format of "quote" on my sidebar. I'm getting the code to spit out the else statement but that's about it so far. I am working in the roots theme if that helps ...
9
votes
2answers
3k 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
0answers
22 views

Gallery preview on Post Format posts

I am trying to put a 2 picture preview of a gallery on each post that is the post format of 'gallery'. I managed to get all the thumbnails to show up in a post with: <?php echo ...
0
votes
1answer
103 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
100 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
519 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 ...
2
votes
2answers
115 views

Strip shortcode from specific post types (formats)

I am trying to remove the shortcode from a specific post type, in this case link. I used this code on my functions.php but it removes the shortcode from the_content for every post type. <?php ...
1
vote
1answer
233 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 ...
0
votes
1answer
52 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
747 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
152 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 /** * ...
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 ...
0
votes
1answer
201 views

Wrap posts p tags in div

I am trying to set up blog posts so that when an image is added it is wrapped in one div set to float right and when text is added it is wrapped in another div set to float left. So that all images ...
0
votes
1answer
492 views

WordPress add post format support not working

I am working on a theme and for some reason, add_theme_support( 'post-formats', ... ) is not working. In my theme's functions.php I have the following near the top: function mytheme_setup() { // ...
1
vote
1answer
66 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 ...
0
votes
3answers
887 views

How can I add Wordpress Audio Player as featured audio in Audio Blog Posts?

I'm creating a Wordpress blogging theme and have started doing the individual files for each post-format. In doing this I've encountered a problem for the functionality to the audio format. I would ...
-1
votes
1answer
17 views

Test editor problem

I want to write a post in word-press but why only html editor in the text box?
2
votes
2answers
100 views

How to create an archive for all posts that do not have a post format?

The title says it all. I need working pagination, correct post count etc. Basically a new page for posts but with a filter for post formats. Things I have tried so far: 1) Created a new rewrite rule ...
0
votes
0answers
77 views

Next Post Link in format

I'm after a wordpress function that can give me the link to the next post with the same format as the current post. I've been looking and struggling to find one. I expected to find an option similar ...
0
votes
0answers
46 views

In a page I need to display posts “standard” and post “videos” with post formats

I have created a filter to display "standard" posts in a page by selecting category and it works well but it deletes "video" posts. I need to create another filter to display the "video" posts from ...
0
votes
1answer
273 views

URL of a custom post type's post format archive?

With pretty permalinks enabled, the URL of a Custom Post Format archive would look like this: http://example.com/type/link/ And it works for me. Now, considering that my custom post type archive ...
1
vote
1answer
192 views

How to query for posts without a post_format

I have looked in the WP codex for an example which shows how to use a taxonomy query to retrieve a set of posts that have no post_format. IOW: 'All posts where an aside or quote or link...etc... ...
0
votes
3answers
225 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: ...
1
vote
1answer
307 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 ...
0
votes
1answer
632 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
0answers
143 views

Rewrite a specific Post Format to URL slug

I'll cut to the chase. I am using Post Formats on my WordPress 3.6 site, specifically 'Video', which I want to include in the URL slug. I'm pretty well verse in WordPress plugin writing etc, but ...
1
vote
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
0answers
88 views

How to keep Wordpress from re-formatting my code posts?

As you can see from the image above, it's changing '{print $5}' to '{print $&;5}' I tried the following article about "stop changing my quotes" And then even installed the "Advanced ...
0
votes
1answer
927 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
1answer
186 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. ...