Post formats template

Post formats are used to customize posts according to their “meta” content, but they are always posts and as posts they will be listed on archive and category pages. What is parent template file that is used when there is no specified template file and what is specified template file that covers all post formats … Read more

Plugin to set all Posts in a certain Category to a certain Post Format

Try putting this plugin in your wp-content/plugins folder and then activate it: <?php /* Plugin Name: WPSE53245 – Set Tweet category posts as Aside Plugin URI: http://http://wordpress.stackexchange.com/questions/53235 Description: Set Tweet category posts as Aside Version: 0.1 Author: Ashfame Author URI: http://wordpress.stackexchange.com/users/1521/ashfame */ add_action( ‘save_post’, ‘wpse53235_set_post_format_aside’ ); function wpse53235_set_post_format_aside( $postID ) { if ( has_post_format( ‘aside’, … Read more

Post format selector in Thematic child theme post class

Okay, I’m going on the assumption that the real question is “how do I get Thematic to add the post-format to its body classes?” Try this in your functions.php: function my_thematic_post_format_class( $classes = array() ) { $format = get_post_format(); if ( ” == $format ) $format=”standard”; $classes[] = ‘format-‘ . $format; return $classes; } add_filter( … Read more

How to exclude posts of a certain format from the feed

If you want to modify the feed, you should hook into the main query that WordPress will do on every page request. The best hook here is pre_get_posts. This code example will hook into pre_get_posts, check whether it is a feed, and add the post format taxonomy query: add_action( ‘pre_get_posts’, ‘wpse18412_pre_get_posts’ ); function wpse18412_pre_get_posts( &$wp_query … Read more

Changing “Enter title here” based on post format

You need to do the following; jQuery(document).ready(function( $ ) { $(‘input.post-format’).click(function(){ $(‘#title-prompt-text’).val( $(this).next(‘label’).text()); }) }); This will replace the title with whichever post format you select. Save the above into a file called custom-post-title.js and you will need to place this file into your theme folder. Either in the root or within a folder named … Read more

Get post only from ‘standard’ post format

Do, <?php if( false == get_post_format() ){ ?> <a href=”https://wordpress.stackexchange.com/questions/103119/<?php the_permalink(); ?>” rel=”bookmark”><?php the_title(); ?></a> <?php } ?> The standard post format isn’t actually a post format, so if you conditionally check whether a post contains a post format (other than the default standard), it will return false, because it’s set to… standard.

techhipbettruvabetnorabahisbahis forumutaraftarium24edueduedueduseduseduseduseduedusedu