How to Disable Post Format Archives Pages in WordPress

Post format seems useless to a lot of bloggers. Many bloggers like to stick with the default post layout. In that case, you don’t need this extra Post Format option inside your post editor. 

You can easily remove this post format by using the following code. If you think the code is a hassle to you, then install WP Adminify plugin and enable this tweak. 

Just copy and paste the following code inside your function.php file and reload your post editor.

					// Remove archives post formats
add_action('template_redirect', 'jltwp_adminify_remove_archives_postformat');
function jltwp_adminify_remove_archives_postformat()
    if (is_tax('post_format')){
        $target = get_option('siteurl');
        $status = '301';
        wp_redirect($target, 301);

If you are WP Adminify user, then navigate to WP Adminify> Tweaks > Post / Archives option. You will see the “Disable Post Format Archives” option. Just enable it and click on the Save button. 

Disable Post Format Archives in WordPress
Was this article helpful?

© 2021-2024 - Adminify | All rights reserved

WP Adminfy accepted payment methods