Articles of post formats

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’ ); $terms = get_terms($taxonomy,$term_args); if ($terms) { foreach( $terms as $term ) { $args = array( “$param_type” => array($term->term_id), ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => […]

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 below. add_post_type_support( ‘my-custom-post-type’, ‘post-formats’ ); My question is: Is it possible to use different post formats on regular posts and custom post type? For example, using ‘gallery’, ‘link’, ‘quote’, […]

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 gets lost to the ether. It’s good, helpful stuff, but you can’t find it three months (or years) later, […]

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, from-post format-aside. So first I want 4 posts with the post-format-aside format and then I want an archive but without posts from […]

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 did was to add post_formats to functions.php function add_post_formats() { add_theme_support( ‘post-formats’, array( ‘gallery’, ‘quote’, […]

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?

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!

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. Salad #1 — h3. Salad #2 .. — h3. Salad #X h2. Best Non-Veg Salads – Intro — […]

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

I’m new to WordPress and I’m hoping to display post formats differently on the home page; sort of like this image: The problem is that the theme I’m using is very different than other themes I’ve seen, the loop is in a function. In my index.php, I have <?php if(have_posts()) : while(have_posts()) : the_post(); echo […]

How to add meta box for current post format?

I wanted to add meta box with current post format like when i select video post format then there will be appear video url input post just under the post editor. How to do that? any help