Use below code for getting post format, simple made condition if post format =”standard” then load your preferred template
$format = get_post_format();
if($format ="video")
{
get_template_part( 'format', $format );
}
Something like this.
Related Posts:
- Post/Page Preview Template
- Is it possible to have two different previews of a post (ie. two templates for one post)?
- Display page content AFTER a loop of posts
- Using custom post template
- custom post template file not shown, instead all the time 404.php
- Create a custom posts page
- add_rewrite_rule and template redirect not working
- Custom post type template not called
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- Adding The Post Template Dropdown to WP-Admin
- custom post type single page template not working
- Is there a action hook for the “Empty Trash” button?
- Add a checkbox to post screen that adds a class to the title
- delete post also attachments
- Attach pdf file to custom post type
- How do I create a featured post within a custom post type?
- Accessing $post variable from template part
- Navigation link to specific user page
- how to show all post in my page-grid.php template page
- How to edit wordpress RSS feed to show post title only
- Add custom field to category of custom post type
- What Can I Use To Add A Custom Button Between Publish button and Move To Trash?
- user contributed content as custom post types
- Remove custom posts that match taxonomy value
- Custom Theme Want To Remove One Category From All Displays
- Different template for posts of all subcategories of category
- Post Type Label Name
- wp_query ‘s’ parameter does not work with custom post type
- What part of template to edit to remove category name from the top of posts?
- Blog Posts in Custom Menu
- How to display data in archive page?
- I want to display custom text widgets for each post in the sidebar?
- Display posts styled exactly like default posts
- Setting posts_per_page for taxonomy term template
- Custom Post Type – Category Rewrite – Remove Rewrite from Sitemap
- CPT archive redirects to single post
- Prevent Delete Attachment by URL or When Submit
- How can i limit the number of posts created per category?
- Turn On Comments On Custom Post Types in Directory Theme
- Duplicate Custom Post Type and Taxonomy Slug
- Calling Different Custom Post Timestamps in a table
- How to allow visitors to filter posts by multiple taxonomies
- How to create new post content templates for my users?
- How do I stop the loop from repeating in my category template?
- How to include my own css in post
- posts not showing on index.php
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- a little direction on custom post type
- disable Tab post on nav-menus page (Admin)
- Best Way to Add UnEditable HTML to Posts
- How to make different custom post layouts?
- How safe is it to delete old posts edits to save database space?
- Is codex right on deleting post?
- Is it possible to give the user the chance to select between two single template files to use in a post?
- if in category but only with post meta
- Force a specific template as default
- How to get different Related Posts
- l accidentally permanently deleted a Draft. There’s any way I can recover it?
- Inserting an example of the last 3 post on to the homepage
- Get a term each custom post type
- Post Templates and Post ID’s
- How do I disable the “by author” hyperlink on posts?
- Getting post and attached image from subdomain
- Custom post type slideshow background images to insert in a plugin
- Help on conditional statement to accompany wp_insert_post function please?
- Search results for ACF data
- Why does my “Add New Post” page have an old post in it?
- Redirect to custom post if custom archive page has just one result?
- Template for displaying CPT / Taxonomy URL issues
- Multiple posts in one page
- delete post hook not being fired when deling in wordpress dashboard admin
- WordPress Delete Users from backend doesn’t work
- Is it possible to make a custom post that adds multiple pages?
- Hiding title of selected post without plugins
- Custom post styling per category?
- Hook To Get All Posts Deleted
- Meta boxes not saving
- Custom Select Query pagination not working properly
- Custom URL Structure for posts with subcategories
- How to show the posts list into a static page? Problems to use the loop into a static page
- How do I control the fallback query after the original query returned cero posts?
- wordpress paginate, link to the right page
- Allow users to create their own page/s
- 404 for some custom taxonomy not ALL taxonomy
- 1 post, 2 templates
- Add default content to post (for specific category)
- WordPress strips some attributes for author posts
- Creating / Editing a post from within site template
- How to Do Custom Fields to Output a Definition List
- Display one post randomly from category on home page
- How to make a template for a specific post of a custom post type?
- Deleting first four characters from all Post Titles
- Deleling wordpress posts permanently still have IDs
- WordPress “Posts Page” isn’t showing template dropdown
- Taxonomy Category category.php not working
- Post’s arent displaying
- Can I get custom post items in select box (dropdown)
- How to have 2 posting pages on a blog
- WordPress Custom Post type csv exporter
- Edit Page button is gone