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
This topic contains 0 replies, has 1 voice, and was last updated by admin 5 months ago.
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!
You must be logged in to reply to this topic.