Description
Custom Post Type Multiroutes allows you to manage, add, edit and update multiple routes for your Custom Post Types.
Minimum configuration needed. Install it, type your routes for your posts and refresh permalinks.
Use case
Say you have a custom post type called ‘Galleries’ and you want it to appear on two archive pages:
/news/gallery/
/media/album/
And its single pages to be: /news/gallery/<gallery-name>
and /media/album/<gallery-name>
All you have to do is:
- Go to Settings > CPT Multiroutes (you will se a list of your custom post types)
- Click on « Add Route » for your ‘Galleries’ post.
- Fill the new imput for that new route, in this case ‘news/gallery’
- Repeat 2&3 per route you want to add.
- Select the checkbox ‘Rewrite this post type archive to these routes’ if you want that route to be your archive page for the custom post type.
- Click Save Routes.
Additionally a custom Metabox will appear on each of those custom post types on its admin edit page, there you will be able to choose individually on which route you wish the post to be visible. By default it will be visible on all defined routes.
If you are using WPML for multilanguage, when you add a route, an input for each acive language will appear so you can translate those new routes.
Captures d'écrans
Installation
- Upload the entire
Custom-Post-Type-Multiroutes
folder to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
FAQ
-
Yes. It will work with all CPT with these properties: ‘show_ui’ => true, ‘show_in_menu’ => true.
-
Yes. But currently it’s only compatible with WPML.
-
No, you can add as much routes as you need.
Avis
Il n’y a aucun avis sur cette extension.
Contributeurs & développeurs
« Custom Post Type Multiroutes » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.
Contributeurs“Custom Post Type Multiroutes” a été traduit dans 2 locales. Remerciez l’équipe de traduction pour ses contributions.
Traduisez « Custom Post Type Multiroutes » dans votre langue.
Le développement vous intéresse ?
Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.
Historique des changements
0.1.1
- Added admin edit post list column and filter by post cptmr_route postmeta.
- Bugfix.
0.1.0
- Initial release.