Is it possible to rename a post format?

I think this is the only way for now. Put this in your functions.php in your theme folder or create a simple plugin: function rename_post_formats( $safe_text ) { if ( $safe_text == ‘Aside’ ) return ‘Quick’; return $safe_text; } add_filter( ‘esc_html’, ‘rename_post_formats’ ); //rename Aside in posts list table function live_rename_formats() { global $current_screen; if … Read more

Are content.php and content-single.php the same?

No, content.php and content-single.php are not the same thing. In your example CODE: if (get_post_format() == false) { get_template_part(‘content’, ‘single’); } else { get_template_part(‘content’, get_post_format()); } WordPress will load content-single.php when get_post_format() is false. However, get_template_part( $slug, $name ) may still try to load content.php when you call it with get_template_part(‘content’, get_post_format()); in the following … Read more

has_post_format() vs. get_post_format()

Edit has_post_format() requires a string, $format, as the first parameter; which means that it can only be used to test for explicit post-format types: if ( has_post_format( $format ) { // Current post has the $format post format; // do something } To determine if a post has any post format, use get_post_format(), which will … Read more

Only get_posts of certain post formats

You can’t actually pass a taxonomy-related argument to get_posts(). (Edit: actually, yes you can. The Codex is just somewhat unclear. Looking at source, get_posts() is, at its heart, just a wrapper for WP_Query().) You can pass meta keys/values, and post types, but not taxonomies such as post format. So for this line: $myposts = get_posts(‘numberposts=-1&orderby=post_date&order=DESC’); … Read more

Is There a Difference Between Taxonomies and Categories?

Taxonomies, as previously described are a collective noun for the following category post_tag post_format link_category custom taxonomy The first four are built-in taxonomies, while custom taxonomies are taxonomies that are manually created by the user with register_taxonomy. Custom Taxonomies can be hierarchical (like the build-in taxonomy category) or not (like post tags) The categories and … Read more

techhipbettruvabetnorabahisbahis forumutaraftarium24edueduedusedusedueduseduseduseduedu