How to use format post in a pertinent way
How to use format post in a pertinent way
How to use format post in a pertinent way
How to add Post Format Taxonomy Archive page in the menu?
trigger html cleanup for all posts
You are getting into a bit of a mess by simply skipping posts in the loop if they are not the correct format. You have a couple of options. Firstly, you can perform the filter using a hook in your theme functions.php. Have a look at pre_get_posts, which allows you to alter the query and … Read more
Post formats for Pages not saving
The filter will be displayed by default if any posts of the current type already have a post format associated with them, regardless of whether the theme supports post formats or not. We can see from your screenshot that posts already have post formats, so the filter is displayed. Here’s the code that will allow … Read more
You have a number of halfway options, but there is nothing that directly matches your requirements. That is because this is not something Facebook provides. Copy Paste Manual embedding Screenshots OEmbed Other software may claim to do this but it is a simulation/illusion, and will rely heavily on bespoke customisation, it isn’t really a facebook … Read more
There is no convention or consensus on any of these questions. In my own Theme, Oenology, I use the standard template tag the_content() to get the content for almost every Post Format type. The exception is Images and Galleries, where I pull the image out separately, and use the_excerpt() as the image caption/gallery description. A) … Read more
Put this in your function.php function akv3_query_format_standard($query) { if (isset($query->query_vars[‘post_format’]) && $query->query_vars[‘post_format’] == ‘post-format-standard’) { if (($post_formats = get_theme_support(‘post-formats’)) && is_array($post_formats[0]) && count($post_formats[0])) { $terms = array(); foreach ($post_formats[0] as $format) { $terms[] = ‘post-format-‘.$format; } $query->is_tax = null; unset($query->query_vars[‘post_format’]); unset($query->query_vars[‘taxonomy’]); unset($query->query_vars[‘term’]); unset($query->query[‘post_format’]); $query->set(‘tax_query’, array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘post_format’, ‘terms’ => $terms, … Read more
Since you’re going to be modifying either the Loop Query or the Loop output, I would recommend modifying the appropriate template files directly. To filter out Posts with the “quote” Post Format, simply wrap your Loop output (inside of the if-have-posts-while-have-posts-the-post) with: if ( ! has_post_format( ‘quote’ ) ) { // Loop output goes here … Read more