Post Type Switcher

Descrição

Este plugin adiciona uma lista suspensa de tipos de posts ao editor, permitindo a você alterar o tipo do post para qualquer outro tipo. Você pode alternar o tipo de post enquanto edita seu post.

Tipos suportados

O plugin pode converter quase qualquer tipo de post em outro, páginas e mesmo tipos de post personalizados:

  • Página para post
  • Post para página
  • Post para tipo personalizado
  • Personalizado para personalizado

A partir da versão 3.0.0, o suporte para a mudança de um tipo para o tipo de post Anexo foi removida. Isso pode voltar em uma versão posterior.

Os tipos de posts invisíveis, como revisões, menus, etc são propositadamente excluídos. Mas, se você precisar acessar esses tipos de posts invisíveis, você pode ajustar os limites usando o filtro ‘pts_post_type_filter’.

Edição em massa

Com a edição em massa (graças a Matthew Gerring), você pode selecionar todos os posts de um determinado tipo e convertê-los para um novo tipo em uma ação rápida.

Editor de blocos

Com o suporte ao editor de blocos (ou Gutenberg) (graças a Daniel Bachhuber), você pode alternar entre tipos de posts que usam tanto o editor de blocos quanto o clássico, sem perder nada do seu conteúdo incorporado.

Capturas de tela

  • Coluna “Tipo” na tela “Posts”.
  • “Tipo de post” na interface “Edição rápida”
  • “Tipo de post” em “Editar post”

Instalação

Instalação

  1. No painel WordPress do seu website vá para “Plugins” -> “Adicionar plugin”.
  2. Pesquise por “Post Type Switcher”.
  3. Instale o plugin clicando no botão “Instalar”.
  4. Ative o plugin clicando no botão “Ativar”.
  5. A partir da tela de edição do post, acima do botão de “Publicar” está a interface do “Tipo de post”.
  6. Altere tipos de post como precisar.

Requisitos mínimos

  • WordPress versão 5.0 ou superior.
  • PHP versão 7.0.0 ou superior.
  • MySQL versão 5.7 ou superior.

Exigências

  • Versão mais recente do WordPress.
  • PHP versão 8.0 ou superior.
  • MySQL versão 8.0 ou superior, ou MariaDB 10.5 ou superior.

Perguntas frequentes

Por que eu precisaria disso?

Se você precisa alterar um tipo de post seletivamente de um para outro.

Isso vai arruinar minhas associações com taxonomias?

Não deveria. Este plugin apenas muda a propriedade “post_type” de um post.

Isso vai arruinar o conteúdo do editor de blocos?

Não deveria. Tome cuidado ao editar conteúdo HTML enquanto estiver trocando entre tipos de editores!

Isso vai excluir meu conteúdo?

Não. Este plugin não inclui nenhum código capaz de excluir nada.

Não há conhecimento sobre conflitos com plugins e podem ser difíceis de identificar e resolver.

Se você estiver preocupado, faça um backup de seu banco de dados e desative todos os outros plugins antes de usar esta ferramenta.

Se você ainda estiver preocupado, busque ajuda nos fóruns de suporte do WordPress.org.

Avaliações

30 janeiro, 2026
I’ve used this plugin for a while now and it’s amazing. Saves me a ton of time and is simply straightforward.
24 julho, 2025
Extremely useful plugin if you have migrated your site from Joomla and all your content is migrated as posts. Post Type Switcher allows you to quickly switch relevant items from posts to pages. Also very useful if you use custom post types and need to migrate content between types which you can do in a matter of seconds.
21 julho, 2025
I have been using this plugin for several years now and have come to find that it’s a regular part of my routine now when I decide that a new custom post type is needed for a site, and super easy to move pages or posts to other post types when needed. I also use page builders and have not seen any issues as a result of using this plugin as all the postmeta is still there. If it’s missing in the new post type then that means the new post type didn’t support it. What I typically do is use another plugin to clone the page or post, and then move that to the new post type. That’s a good way to not disturb the current setup while working on the new post type and implementing features or building onto things. I’m amazed how some sites that I help with have 1,000+ pages (before I came into the project). When I go through those sites I can usually come up with 3 or 4 post types that will help declutter, or put things that should have never been in “pages” into their own space. Post Type Switcher is so great at helping move things – and then we just set up some 301 redirects to preserve SEO and prevent 404 errors.
Leia todas as 252 avaliações

Colaboradores e desenvolvedores

“Post Type Switcher” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

Post Type Switcher” foi traduzido para 34 localidades. Agradecemos aos tradutores por suas contribuições.

Traduzir o “Post Type Switcher” para seu idioma.

Interessado no desenvolvimento?

Navegue pelo código, consulte o repositório SVN ou assine o registro de desenvolvimento por RSS.

Registro de alterações

4.0.1

  • Prevent Authors & Contributors from changing types on posts of Editors & Admins

4.0.0

  • Requires WordPress 6.2
  • Requires PHP 8.0
  • Improve block editor styling
  • Stash original & previous types in post meta
  • Add pts_get_post_types_filter filter
  • Load textdomain on init instead of plugins_loaded

3.3.0

  • Hide the “Type” column by default

3.2.1

  • Update author
  • Add sponsor link

3.2.0

  • Block editor support

3.1.0

  • Fix post targeting when called recursively

3.0.0

  • Improved Quick-Edit and Bulk-Edit support
  • Remove attachment type support for now, as there is no way to switch back
  • Fix bug causing some post-types to switch unexpectedly

2.0.1

  • Ensure quick-edit works with new procedure
  • Quick-edit “Type” column works again!

2.0.0

  • Improved plugin compatibility with WooThemes Sensei
  • Filter post arguments vs. hook to save_post
  • Add “post_type_switcher” action

1.7.0

  • Add support for network activation

1.6.0

  • Add textdomains for localization
  • Load translation strings using load_plugin_textdomain()
  • Before saving data chack if it’s not an autosave using wp_is_post_autosave()
  • Before saving data chack if it’s not a revision using wp_is_post_revision()
  • Security: Prevent direct access to directories
  • Security: Translation strings escaping
  • Add screenshots

1.5.0 – norcross

  • Fix multiple quickedit dropdowns

1.4.0

  • Improve handling of non-public post types

1.3.0

  • Fix saving of autodrafts

1.2.1

  • Improved WordPress 3.9 integration (added dashicon to publish metabox)

1.2.0

  • Add bulk editing to supported post types
  • Props Matthew Gerring for bulk edit contribution

1.1.1

  • Add is_admin() check to prevent theme-side interference
  • Change save_post priority to 999 to avoid plugin compatibility issues
  • Remove ending closing php tag
  • HTML and PHPDoc improvements

1.1.0

  • Fix revisions being nooped
  • Fix malformed HTML for some user roles
  • Make a singleton (meh…)

1.0.0

  • Fix JS bugs
  • Audit post save bail conditions
  • Tweak UI for WordPress 3.3

0.3.0

  • Use the API to change the post type, fixing a conflict with persistent object caches
  • No longer requires JavaScript

0.2.0

  • Disallow post types that are not public and do not have a visible UI

0.1.0

  • Release