Post Format single-loop.php using get_template_part
You are missing a comma in the arguments for get_template_part. Instead of <?php get_template_part( ‘news’ ‘video’ ); ?> it should be <?php get_template_part( ‘news’,’video’ ); ?>
You are missing a comma in the arguments for get_template_part. Instead of <?php get_template_part( ‘news’ ‘video’ ); ?> it should be <?php get_template_part( ‘news’,’video’ ); ?>
Since you need a specific HTML structure let’s keep things clean and do what The Codex suggests – break it into template parts based on the post format. Let’s create a subfolder in your theme to store these post formats, maybe POST_TYPE_SLUG-formats so it’s clear what is in this folder ( Replace the uppercase with … Read more
Alex King made a plugin that creates a different admin UI for each Post Format type. More info here: http://alexking.org/blog/2011/10/25/wordpress-post-formats-admin-ui
Try $content = get_the_content(); $content=”<span>”</span>”.$content.'<span>”</span>’; echo apply_filters(‘the_content’, $content); CSS Solution: <blockquote> <?php the_content(); ?> </blockquote> blockquote:before{ content: ‘”‘; } blockquote:after{ content: ‘”‘; }
Try: <?php echo get_post_format_string( get_post_format() ); ?> EDIT Note, if you want a fail-safe output, try this: <?php if ( get_post_format() ) { echo get_post_format_string( get_post_format() ); } else { ehco ‘Standard’; } ?> Or, if you want to store it in a variable: <?php $post_format_string = ( get_post_format() ? get_post_format_string( get_post_format() ) : ‘Standard’ … Read more
Try remove_post_type_support: remove_post_type_support( ‘post’, ‘post-formats’ );
Say if your have header-video.php used for video post format. Replace get_header(); with get_header(get_post_format()); in your regular singular.php or index.php. If WP can find header-video.php it will load it otherwise it will automatically will fallback to header.php.
Exclude Post Format from next_post and prev_post
Try this one: jQuery( document ).ready( function($) { // Starts by hiding the “Video Options” meta box $( “#video-options” ).addClass( “hidden” ); if( $( “input#post-format-video” ).is(‘:checked’) ){ $( “#video-options” ).removeClass( “hidden” ); } // If “Video” post format is selected, show the “Video Options” meta box $( “input#post-format-video” ).change( function() { if( $(this).is(‘:checked’) ){ $( … Read more
You would need to use WordPress Conditional Tags to query if this page is the custom post type you are wanting to target and then if it is remove shortcode. Untested but you can try this: function remove_shortcodes( $content ) { if ( get_post_type() == ‘post-type-name’ ) { return strip_shortcodes( $content ); } else return … Read more