WordPress.org

Plugin Directory

إضافة Post Type Switcher تبديل نوع المحتوى

إضافة Post Type Switcher تبديل نوع المحتوى

الوصف

تضيف هذه الإضافة قائمة منسدلة بسيطة لنوع المحتوى (post-type) إلى واجهة محرر المقالة أو الصفحة، مما يسمح لك بإعادة تعيين أي محتوى إلى نوع محتوى جديد. تسمح لك بتبديل نوع المحتوى أثناء تحرير مقالتك أو صفحتك.

الأنواع المدعومة

يمكن للإضافة تحويل كل مجموعة تقريبًا من المقالات، الصفحات، وحتى أنواع المقالات أو المحتويات المخصصة:

  • صفحة إلى مقالة
  • مقالة إلى صفحة
  • مقالة إلى نوع مخصص
  • نوع محتوى مخصص إلى نوع محتوى مخصص

اعتبارًا من 3.0.0، تمت إزالة دعم التبديل إلى المرفقات أو منها. قد يعود هذا في إصدار لاحق.

يتم استبعاد أنواع المنشورات غير المرئية، مثل المراجعات والقوائم وما إلى ذلك عمدًا، ولكن إذا كنت بحاجة إلى الوصول إلى أنواع المنشورات غير المرئية، فيمكنك ضبط الحدود باستخدام الفلتر ‘pts_post_type_filter’.

التحرير المتعدّد

باستخدام التحرير المتعدّد (بفضل Matthew Gerring)، يمكنك تحديد جميع المقالات أو الصفحات في نوع معين وتحويلها إلى نوع جديد بإجراء واحد سريع.

مُحرر المكوّنات

مع دعم مُحرر المكوّنات (المعروف أيضًا باسم Gutenberg)، (بفضل Daniel Bachhuber) يمكنك التبديل بين أنواع المحتوى (post-types) التي تستخدم مُحرر المكوّنات (Block Editor) والمحرر التقليدي (Classic Editor)، دون فقدان أي من المحتوى المضمن.

لقطات الشاشة

  • عمود “النوع” في شاشة “المقالات”.
  • واجهة “نوع المحتوى ” في شاشة “التحرير السريع”.
  • واجهة “نوع المحتوى ” في شاشة “تحرير المقالة”.

التنصيب

التنصيب

  1. بلوحة تحكم ووردبريس الخاصة بك، الانتقال إلى “إضافات” -> “رفع إضافة”.
  2. البحث عن إضافة “Post Type Switcher”.
  3. تنصيب الإضافة بالضغط على زر “التنصيب”.
  4. تفعيل الإضافة بالضغط على زر “التفعيل”.
  5. من شاشة تحرير المقالة، فوق الزر “نشر” توجد واجهة “نوع المحتوى”.
  6. تغيير أنواع المحتوى حسب الحاجة.

المتطلبات الأدنى

  • نسخة ووردبريس 5.0 أو أحدث.
  • PHP إصدار 7.0.0 أو أحدث.
  • MySQL إصدار 5.7 أو أحدث.

المتطلبات الموصى بها

  • أحدث نسخة ووردبريس.
  • PHP إصدار 8.0 أو أحدث.
  • إصدار MySQL 8.0 أو أحدث، أو MariaDB 1.5 أو أحدث.

الأسئلة المتكررّة

لماذا أحتاج إلى هذا؟

تحتاج إلى تغيير نوع المقالات أو الصفحات بشكل انتقائي من واحدة إلى أخرى.

هل هذه الإضافة تقوم باتلاف أو تدمير لفئات التصنيفات الخاصة بي؟

إنه لا ينبغي ذلك. هذه الإضافة تقوم بتغيير خاصية نوع المحتوى ‘post_type’ للمقالة أو الصفحة.

Does this ruin block-editor content?

It should not. Be careful when editing HTML content while switching between editor types!

Will this delete my content?

No. This plugin does not include any code capable of deleting anything.

Plugin conflicts are not unheard of and can be difficult to troubleshoot.

If you’re worried, backup your database and deactivate all other plugins before using this tool.

If you’re still worried, ask for help in the WordPress.org support forums.

المراجعات

24 يوليو، 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 يوليو، 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.
4 فبراير، 2025
Quickly changes post types in bulk. Very useful when you need to migrate content and/or create CPT’s.
إقرأ جميع المراجعات 250

المساهمون والمطوّرون

“إضافة Post Type Switcher تبديل نوع المحتوى” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في هذه الإضافة.

المساهمون

لقد تم ترجمة ”إضافة Post Type Switcher تبديل نوع المحتوى“ إلى 34 لغة. شكراً إلى جميع المُترجمين لمُساهماتهم.

ترجمة ”إضافة Post Type Switcher تبديل نوع المحتوى“ إلى لغتك.

مُهتم بالتطوير؟

تصفّح الشفرة، تحقق من مستودع SVN، أو الاشتراك في سجل التطوير بواسطة RSS.

سجل التغييرات

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

  • دعم مُحرر المكوّنات

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

  • إضافة الدعم لتفعيل الشبكة

1.6.0

  • إضافة النطاقات النصية textdomains للترجمة
  • تحميل سلاسل الترجمة باستخدام load_plugin_textdomain()
  • قبل حفظ البيانات، التحقق مما إذا لم يكن الحفظ التلقائي يستخدم wp_is_post_autosave()
  • قبل حفظ البيانات، التحقق مما إذا لم يكن الحفظ التلقائي يستخدم wp_is_post_revision()
  • الأمان: منع الوصول المباشر إلى الأدلة
  • الأمان: خروج سلاسل الترجمة
  • إضافة لقطات الشاشة

1.5.0 – norcross

  • إصلاح العديد من القوائم المنسدلة السريعة

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

  • الإصدار