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

With bulk editing (thanks to Matthew Gerring) you can select all the posts in a certain type and convert them to a new type with one quick action.

Block Editor

With block-editor (aka Gutenberg) support (thanks to Daniel Bachhuber) you can switch between post-types that use either the Block Editor and the Classic one, without losing any of your embedded content.

Imagens 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. From the post edit screen, above the “Publish” button is the “Post Type” interface.
  6. Change post types as needed.

Requisitos mínimos

  • WordPress versão 3.0 ou maior.
  • PHP versão 5.2.4 ou maior.
  • MySQL versão 5.0 ou maior.

Exigências

  • Versão mais recente do WordPress.
  • PHP versão 7.0 ou maior.
  • MySQL versão 5.7 ou maior, ou MariaDB 10 ou maior.

FAQ

Why would I need this?

You need to selectively change a posts type from one to another.

Does this ruin my taxonomy associations?

It should not. This plugin only changes the ‘post_type’ property of a post.

Avaliações

30 de abril de 2020
I created a load of quick pages on a new site... accidentally created posts instead :/ This plugin was just what I needed. Many thanks!!
15 de abril de 2020
4 days ago I installed it and changed a post into a page, this was what I wanted. But it removed the design part. No matter how hard I tried only text was appearing. I tried different ways to create new pages, but even on new pages I could not achieve the desired design with all methods e.g. manually creating blocks, importing templates, using templates of other pages. Nothing worked. So many errors were coming, either button's only text would appear, or heading's would appear with smaller font size and many more Even after I deactivated this plugin, the design is still behaving crazy and unpredictable. 1. All the blocks become part of the first block that I create 2. At few places, only button's text is appearing 3. Heading font's appear at diffrently. (though I have set universal font size for different headings) 4. Surprisingly when I duplicate heading or button block (so I put where it is not appearing correctly), The new button would appear with the correct size but the old button or heading will get disfigured. It is happening so randomly that I am not even able to write problem properly. I think this plugin made some changes in database because of which these errors have become permanent after removing this plugin. I spent 3 long days trying to correct the appearance of a single page (I created new one, after copy-pasting from my old blog). Yet it is nothing near what I expected. The bigger problem is because it is happening to every new page I try to create, It has become a permanent problem on my website The only relief is, design of older pages is not distorted. Can somebody help me correct it?
4 de fevereiro de 2020
I needed to switch all posts to project template, and this plugin saved me lot of time. thank you !
Leia todas as 166 avaliações

Contribuidores e desenvolvedores

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

Contribuidores

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

Traduzir “Post Type Switcher” para o seu idioma.

Interessado no desenvolvimento?

Navegue pelo código, dê uma olhada no repositório SVN ou assine o registro de desenvolvimento via RSS.

Registro de alterações

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