What can we help you with?
Home › Forums › Themes Support › General › How to change post type slug in HaruTheme
Response time up to 1 business day.
Tagged: slug, custom posttype
Hi all Customer,
In this topic tutorial we’ll help you change posttype slug (Archive Posttype page).
We’ll use Formota theme as example and change slug of Posttype Video:
Step 1: Go to wp-content/plugins/haru-formota-core/includes/posttypes/ then open file video.php
Step 2: Change video slug please see line 75. You need change code here:
'slug' => 'video',
'slug' => 'haru-video', // You can change to an other slug
Step 3: Go to Settings -> Permalink and re-save.
You can do similar when change video-category & video-tag slug
Step 4: If you don’t want to show archive custom posttype page you can change the code on line 69 from:
'has_archive' => true,
'has_archive' => false,
Maybe you need re-save permalink options.
Hope this help you!
I did steps of 1 and 2 but on third step, Permalinks page hasn’t have the custom base settings. How can I active it?
Thanks in advance
When you did step 1 and 2 you already changed slug and need click Save Permalink is enough for make sure slug update in database.
The fields you see above are from WordPress core and WooCommerce.
You must be logged in to reply to this topic.