Display posts for a single post format

The post format taxonomy: The post format is a default taxonomy, registered with: register_taxonomy( ‘post_format’, ‘post’, array( ‘public’ => true, ‘hierarchical’ => false, ‘labels’ => array( ‘name’ => _x( ‘Format’, ‘post format’ ), ‘singular_name’ => _x( ‘Format’, ‘post format’ ), ), ‘query_var’ => true, ‘rewrite’ => $rewrite[‘post_format’], ‘show_ui’ => false, ‘_builtin’ => true, ‘show_in_nav_menus’ => … Read more

Post Format Archive template name for theme folder?

Well…. for querying, formats are a taxonomy parameter…so that should work…. http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters Lemme loook… And yep, here’s how that works http://codex.wordpress.org/Template_Hierarchy#Custom_Taxonomies_display taxonomy-post_format-post-format-link.php

How to query posts of standard post format. For real

It looks like your syntax is a little off for the tax query. Try this: $query = new WP_Query( array( ‘post_type’ => ‘post’, ‘cat’ => ‘-1’, ‘posts_per_page’ => 2, ‘tax_query’ => array( array( ‘taxonomy’ => ‘post_format’, ‘field’ => ‘slug’, ‘terms’ => array(‘post-format-aside’, ‘post-format-gallery’, ‘post-format-link’, ‘post-format-image’, ‘post-format-quote’, ‘post-format-status’, ‘post-format-audio’, ‘post-format-chat’, ‘post-format-video’), ‘operator’ => ‘NOT IN’ ) … Read more

Renaming post formats after Gutenberg

The situation with changing strings in the block editor is complicated. There’s 2 problems here: The list of post formats used by the block editor (Gutenberg) is not filterable using JavaScript hooks, just as the list is not filterable in PHP. The JavaScript translation functions used by the block editor do not have equivalents of … Read more

Does WordPress generate an automatic page for post formats?

Take a look at get_post_format_link() Here’s a little example that uses get_post_format_link() to show a link to the format’s archive page. You can see something similar to this in action on Justin Tadlock’s site. function get_post_format_archive_link() { return sprintf( ‘<a class=”post-format-archive-link %1$s” href=”https://wordpress.stackexchange.com/questions/39925/%2$s”>%1$s</a>’, get_post_format(), get_post_format_link( get_post_format() ) ); } usage: echo get_post_format_archive_link(); The URL Structure … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24eduedusedusedusedusedueduseduedusedu