Support » How-To and Troubleshooting » Remove post formats alltogether?

Remove post formats alltogether?

  • Hi!

    When Custom post types was introduced i started to use that function alot, on my own personal site i added these post types: “Status”, “Photo”, “Gallery”, “Video” and a couple more, i thought that was a great way to organize all the different types of posts on my site.

    It worked really great for some time, until WP introduced post-formats, and to make mathers worse, WP used the same name as i did, so, that means alot of stuff broke.

    The biggest issue is that pagination doesnt work at all, i have a meny with the same name as the post types, every page uses the corresponding Page template. So if i want to see all my “Status” posts i just go to “Status” in the meny, the problem is that only the first page works, when i go to page 2it shows nothing (because there is no Status post formats at all, just “Status” custom posts).

    Pretty annoying huh? Sure i can change my Pagename for the “Status” template to be “Statuss” instead of “Status”, that way the pagination would work.

    But thats not pretty, i have tried doing this:

    Sure, the post-formats is removed but it still doesnt let me use a page with the name “Status” that works with pagination.

    So, can i disable the psot-formats in WP completly so the pagination works too?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anyone? This is really annoying!

    Since this page indexes pretty high for a search on how to remove post formats in a child theme, here’s the answer to your question:

    // Remove post formats support
    add_action('after_setup_theme', 'remove_post_formats', 11);
    function remove_post_formats() {
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove post formats alltogether?’ is closed to new replies.