Post Type Switcher

Περιγραφή

This plugin adds a simple post-type drop-down to the post editor interface, allowing you to reassign any post to a new post type. It allows you to switch post’s type while editing your post.

Yποστηριζόμενοι τύποι

The plugin can convert nearly every combination of posts, pages, and even custom post types:

  • Σελίδα σε άρθρο
  • Άρθρο σε σελίδα
  • Post to Custom
  • Custom to Custom

As of 3.0.0, support for switching to or from Attachments was removed. This may come back in a subsequent version.

Invisible post types, such as revisions, menus, etc., are purposely excluded. But, if you need to access invisible post types, you can adjust the boundaries using the ‘pts_post_type_filter’ filter.

Μαζική επεξεργασία

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.

Στιγμιότυπα

  • "Type" column in "Posts" screen.
  • "Post Type" interface in "Quick Edit".
  • "Post Type" interface in "Edit Post" screen.

Εγκατάσταση

Εγκατάσταση

  1. In your WordPress Dashboard go to “Plugins” -> “Add Plugin”.
  2. ροσθήκη ενέργειας «post_type_switcher»
  3. Install the plugin by pressing the “Install” button.
  4. Activate the plugin by pressing the “Activate” button.
  5. From the post edit screen, above the “Publish” button is the “Post Type” interface.
  6. Change post types as needed.

Ελάχιστες Απαιτήσεις

  • WordPress 3.0 ή νεότερο.
  • PHP έκδοση 5.2.4 ή μεγαλύτερη.
  • MYSQL έκδοση 5.0 ή μεγαλύτερη.

Προτεινόμενες απαιτήσεις

  • Τελευταία έκδοση WordPress.
  • PHP έκδοση 7.0 ή μεγαλύτερη.
  • MySQL version 5.7 or greater, or MariaDB 10 or greater.

Συχνές Ερωτήσεις

Γιατί το χρειάζομαι αυτό;

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.

Κριτικές

24 Ιουλίου 2020
Works like expected, easy and helpfully! Thank you!
5 Ιουλίου 2020
I made a large amount of pages instead of them being posts. I was able to quickly fix them in a matter of seconds. Awesome job with this plugin! Thanks.
11 Ιουνίου 2020
I had multiple post types I needed to combine and I was dreading the process of doing it manually or writing a custom script to handle it. This plugin solved my problem in seconds!
2 Ιουνίου 2020
When you effectively use this plugin to convert from a page to an article you make a total mess. Let me explain - firstly the category becomes blank, and it doesn't even go to uncategorized or let you select it, so you can't even filter the pages you just transformed to articles. Annoying, but could do. What I really can't work with is that it doesn't change the template from page to post, if you try to open your newly transformed "post" after you switched it from being a page, the template will still have "page type-page" in the class, therefore using your (potentially) customized styles inherited from pages and not posts, plus on top of that, which is even worse, sidebar won't show up either because of that (at least, on TwentySeventeen theme, but I think on others too). Big nope unfortunately, good effort but not tweaked properly to be actually useful, uninstalling.
1 Ιουνίου 2020
Lifesaver plugin if you're using Elementor. Thanks a lot!
Ανάγνωση όλων των 172 κριτικών

Συνεισφέροντες & Προγραμματιστές

“Post Type Switcher” είναι λογισμικό ανοιχτού κώδικα. Οι παρακάτω έχουν συνεισφέρει στη δημιουργία του.

Συντελεστές

“Post Type Switcher” έχει μεταφραστεί σε 20 γλώσσες. Thank you to the translators for their contributions.

Μεταφράστε το “Post Type Switcher” στην γλώσσα σας.

Interested in development?

Περιηγηθείτε στον κώδικα , ανατρέξτε στο αποθετήριο SVN ή εγγραφείτε στο αρχείο καταγραφής αλλαγών μέσω RSS .

Σύνοψη αλλαγών

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
  • Προσθήκη ενέργειας «post_type_switcher»

1.7.0

  • Προσθήκη υποστήριξης για ενεργοποίηση σε δικτύο (multisite)

1.6.0

  • Βελτιώσεις υποστήριξη μεταφράσεων
  • 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
  • Προσθήκη στιγμιότυπων οθόνων

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 και PHPDoc βελτιώσεις

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
  • Δεν απαιτεί πλέον JavaScript

0.2.0

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

0.1.0

  • Έκδοση