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
.
Related Posts:
- How to enqueue scripts depending on post formats?
- How to use format post in a pertinent way
- How to get Images included in Post
- How to know if get_posts() failed?
- Post Format Archive template name for theme folder?
- Display posts for a single post format
- How do I sort (order) the results from `get_children()`?
- Get post only from ‘standard’ post format
- how to display full post with pagination on home page
- Post & edit a post from front end along with upload, dropdown, and other inputs
- How to edit layout of a particular post format?
- Change post format using custom field
- Displaying Page Title on index.php
- How to Replace the WordPress Featured Image with a Video?
- Convert a complex webpage into WP theme
- Changing next and previous post link text
- Tumblr-like Post Types for WordPress
- Understand post type
- Mark menu item as current-menu-item for category
- Why won’t my taxonomy query show up?
- Admin Notices don’t display on the admin screen for certain post
- Remove certain post-formats from showing in blog?
- Why orderby=”date” does not support manually changed posts?
- Static page does not show my posts
- I am unable to publish/update post
- page.php showing loop of posts and not page content
- Custom WordPress Theme: Publish Date and Display Date for posts right beside each other
- How to show single post page as home page
- How to Link to all posts that have the Standard Post Format
- Exclude category from
- Blog page not working
- How to display the link (title) and thumbnail post?
- Underscores Theme Unit Testing – Catching Untitled Posts
- get_the_excerpt() is not working as expected – returns wrong text
- Unable to restore from backup – how to obtain old blog posts?
- Disable sticky option for specific categories
- Highlight static blog page link in header
- How to create a template for Pages?
- How do I do a page break?
- Block editors annoying warnings
- Is it possible to customize the post according to post format in single.php?
- What does WordPress do if I save a post without content/title? [duplicate]
- How to add a class to edit_post_link?
- Admin – no Featured image choice in create new/page|post
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- how to hide empty fields of post category description?
- Getting Whitescreen when publishing a post [closed]
- Give posts a particular template based on the assigned category
- Display Featured Posts Grid on Static Page (Gazette)
- Audio post format with Advanced Custom Fields
- how to handle the loop using filling bootstrap grid structure?
- Cant’ Grab WordPress Built-in Posts Through Loop
- Change default post style to columns
- How do I allow certain users to make a certain type of post?
- How to add a post class on every post. (on homepage)
- I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
- WordPress Architecture as a CMS – Posts & Pages
- Am getting duplicate data from get_posts()
- A better code for no post format?
- How can I globally italicize list of texts in the UI database or Posts? [closed]
- Changing The Default Header POST Title and Description text by category in wordpress
- Change modified date to current date when title updated automatically
- Add a field in my rest api
- Permanently deleted posts still exist
- created post displaying differently on front end
- Aligning images in the wp editor not working. How do i get this to work in custom theme?
- How to insert custom text after H1 to all my blog posts?
- How to pull latest posts from a specific category
- Moved a website and excerpts don’t work for old posts
- The letter “i” appears capitalised even when I don’t mean to capitalise them
- How to prevent clicking on posts
- How to get value of a selected option from select tag and use it in WP_query to filter posts?
- Integrate video and iframe in a post type gallery
- How to put the WordPress blog into theme
- Display post order ranking within wordpress loop
- Displaying a specific sub-category’s posts from wp_query
- Trim excerpt to first paragraph
- Posts only showing on /localhost/wordpress/ and not on other pages
- How to get all posts in gallery post format template
- Post are not showing up
- Post Format problem
- Blog styling in SASS
- How to show the posts list into a static page? Problems to use the loop into a static page
- WP Load post with ajax and apply isotope
- Display the current post author and his url in the post header
- Rewrite a specific Post Format to URL slug
- wordpress taxonomy results
- Which hooks are essential for post templates?
- Get most recent posts by category that aren’t first overall [duplicate]
- Specific Post Format Image Thumbnail
- The post order is different for logged-in and non-logged-in users? [closed]
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- Convert HTML5 to WordPress theme
- Change from all posts to specific categories post on main page?
- Wp_query WooCommerce products
- Get posts after calculating meta key
- Post Format Status [closed]
- No matching template found when using single.php
- Is there a block to print post link standalone in a block theme?
- WordPress Ajax load doesn’t work