I’m pretty sure you’d define the custom post formats in functions.php, then they’d reference their own PHP file which contains the loop you’d need.
So for example, Text format would go to post-text.php
, Image format post-image.php
, etc.
You could add your match filters into a function within functions.php, and then call the function from within the post format PHP files.
Some info here: http://en.blog.wordpress.com/2013/01/15/post-formats
How-to is here: http://wp.tutsplus.com/tutorials/proof-using-post-formats.
Related Posts:
- Filtering post-formats from the loop using new WP-Query();
- what is __return_false in filters
- Passing Additional Parameters to add_filter Callable
- How can I add an Author filter to the Media Library?
- Modify WordPress Rest Api Request/Response
- How to add some custom HTML into wordpress admin bar?
- Custom theme hooks / filters – passing arguments
- Change upload directory on custom plugin page
- What params are available with the_content filter?
- How to hook wp_list_pages?
- Don’t replace “|” with Empty String (“”) when generating slugs from title
- apply_filters(‘the_content’, $content) alternative
- How to use the_excerpt in a filter hook?
- Add wrapper to only youtube videos via embed_oembed_html filter function
- Add post/page ID to inserted links within the_content
- Changing document title only on a custom page template
- Shortcodes not resolved in AJAX call response
- Possible to filter the posts or categories that XML-RPC users see in their mobile application?
- Ajax, filters and shortcodes
- wp_link_pages output appears twice
- Multiple Ajax Data Action
- Add filter to wp_dropdown_pages() or wp_dropdown_categories() – no select container?
- Hook different functions to the same filter conditionally OR Pass additional arguments to existing filter?
- How do I pass the value from a foreach loop to an add_filter function? [closed]
- Changing a WordPress core function without hacking core
- Change WordPress RSS link with filter?
- Search results sorted by post types
- How to remove get_post_metadata using remove_filter inside a class?
- Pass parameter to the upload_dir filter
- Filter or Hook to catch pre-rendering of post content
- Sorting and limitation with pre_get_posts
- Warning: Missing argument 2 for widget_title filter
- check to see if hook is available
- Use add_filter on concatenated string variable
- Change term name only on front
- Filter users by custom colum not meta key
- How do I hide the current page’s title?
- How to allow users to view pending posts of a specific custom post type?
- Remove filter callback: method in class
- Change name of existing post status type
- How to filter meta_values using REST API
- Header image automatically changes depending on season
- How do I use remove_action on an add_action that uses an array?
- Admin Backend – Search Pages only by title
- How to hide Ads in between posts on AMP? [closed]
- What is the downside of using a filter as a “poor man’s” dependency injection?
- Add content as soon starts
- Access get_the_title() from ‘excerpt_length’ filter
- Wrong post_status notice after wp_insert_post_data
- BBPress changing default group activity
- Comment search plugin
- How can I add a filter to a particular post format?
- Filter the_content to add something before each element?
- How to display the content HTML of a page without displaying the gallery code as well
- Filter by category and city for doctors and hospitals in wordpress
- Remove Comment Author Link only for subscribers
- Prevent reset password specific user role
- WooCommerce coupon hook argument NULL when using filter woocommerce_get_shop_coupon_data
- Create new custom field that calculates age
- How can I edit comment meta value before it is saved?
- Why current_user_can(‘edit_comment’) always true?
- Remove comments validation (remove filter?)
- Redirect after post deleted
- How to stop filter from running on the index.php page?
- Filter Shortcodes when using get_page
- Usage of filters
- Where exactly does the edit_{taxonomy} hook fire?
- How to filter with dropdown in backend for custom data
- Is there any reason for the nested filters to be applied on the first case and not in the second one?
- Best practice: Custom Post Type / Filter / Load more
- Filter Media by attached page or blog post in Library
- How to stop DOMDocument destroying embeds?
- Redirect an archive page to its relevant URL-friendly filtered page
- Run `wp_insert_post_data` on all posts
- Show uploaded pdf files dynamically and filter by month name
- How can I pass instance via apply_filters as a parameter?
- how to use substr with get_the_content()
- WordPress add_filter to post_date
- Add filter return false not working
- create a shortcode with acf including a filter
- How to take shortcode and content separately from a page?
- Display post after choice two taxonomy terms
- Apply a filter str_replace on specific caracters array in the_content()
- get_the_archive_title hook unwanted changes!
- Put data in my-account/view-order/id/ page
- Can’t set properly WordPress add_filter function
- apply_filters to $GLOBALS
- The title of an attachment is not working
- Removing a line from a WP core function (comment_template.php) – filter or other technique?
- Hide H1 Title using the_title filter
- get_the_excerpt on mobile still displays continue reading
- Add Default WordPress Formatting To Data From External SQL Tables?
- Joining tables not working in the post editor page
- Auto append text after the title?
- filter a list by gender
- add_filter(‘the_content’, ‘method’) does not trigger my custom method
- Better way to change the default password reset url with the woocommerce one?
- woocommerce_coupon_is_valid_for_product not working to exclude specific product tag
- Replacing text using add_filter
- Background color and background image below element in Contact Form 7 – error tip [closed]