You can set the rewrite
slug
when you register your post type:
$args = array(
'rewrite' => array( 'slug' => 'media/lajmet' )
// other args...
);
Related Posts:
- Add .html (dot HTML) extension to custom post types
- How to have a custom URL structure for a custom post type?
- WordPress custom post type url change
- remove post-name from title in custom post type
- Rewrite Custom Post Type URL slug
- Query var removed after rewrite
- Custom Post type and permalink settings
- Custom Post Types, URL rewrite on multiple CPTs
- Get Taxonomy Term Title by it’s URL
- Front custom edit post page for each post
- How to build custom route by adding taxonomies to URL ? ex: www.demo.com/communities/palo-alto/
- Rewrite Question Mark in Post Template to Make it Pretty URL
- Taxonomy in URL
- Custom Post Type Category URL
- How to create custom search result page with custom URL parameters for custom post type?
- Custom Post Type URL Rewrite’s
- returning the currect URL for nested posts
- I want to rewrite the URL of a specific post with a specific custom field to easily analyze in Google Analytics
- Add %post_id% to slug of custom post type and prevent the “unique slug” thing that WP does?
- Force WordPress to only match URL in category
- Custom post type with parent page? Possible?
- Why is a custom post type’s URL “/?cposts=name-of-the-post” but default post’s URL is “/?p=ID”?
- Customize category URL
- Menu Structure and URL structure, with Pages and Post-Type-Posts
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Custom post type with custom taxonomies structure url not working archive of CPT
- Rewrite rule taxonomy url with different values in one function
- How to get list of taxonomy slugs ordered parents>childs?
- Rewrite rule for Custom Post Type Page as a parent
- Added Custom Post Type and the View Option Doesn’t Work
- Rewrite Endpoints and CPTs – How to use in a plugin
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- add_rewrite_rule and passing variables for custom post types
- Pretty URLs and custom post types
- Specific routing for CPT
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- Lost of query parameter when using permalink
- Custom post type’s permalink adds the name of the post type before the post name
- Custom taxonomy and post type with same slug
- Best structure / rewrite rules to achieve the following url
- Custom permalink with child taxonomy terms
- CPT category hierarchy
- Custom post type archive with page as parent url
- Permalink misbehaving in Custom Post Types
- Create Custom Post Type as page
- Best way to specify “article type” in URL
- Pagination custom post type not working with rewrite slug
- Custom Rewrite Rule for Custom Post Type with URL Param
- WordPress custom slug rewrite
- retrieve permalinks of posts inside custom post type by using post ID
- Custom URLs in post types make it impossible to view archive
- I can’t access custom taxonomy page listing
- How to have permalink like domain.com/term/postname?
- How does: /index.php?post_type=event&event-date=2011-07-25 work? What if it doesn’t work?
- Custom Permalinks for Custom Post Types
- post_type_link Filter – Too Few Arguments
- Postname on unique permalink structure appends “-2” for a custom post type. How can I get this to stop happening?
- Share root slug for Child Page and Custom Post Type (prioritizing child pages over posts)
- Combine multiple CPT names to create valid permalinks
- WordPress Custom Post Type – Rewrite Query
- How to create connection among state, city, store and store number based on URL
- After creating Custom post type by user delete old one
- Set parent for custom post type archive rewrite url
- custom endpoints on Custom Post Type return 404 page not found
- Route subpage to Custom Post Type
- Add term slug in URL of custom post type details page
- Programmatically add custom field to post_name in a custom post type
- Custom Post Type Advanced Slug
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- Dynamic CPT permalink structure based on ACF field value
- How do I know if a rewritten rule was applied?
- WordPress rewrite url
- Page inside custom post type (url rewrite?)
- URL Rewrite – Page Archive
- url rewriting for custom post types
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- Post type Permalink
- Sanitize title only if only custom post type
- How to constrain the results to a specific post_type on tag archive page?
- How Can I Remove Custom Post Type Slug From URL
- WordPress custom permalink and archive link for custom post type
- link featured image to external link
- How to rewrite the post slug of a custom post type post
- How to display wp_post by custom field value?
- get_post_permalink() and custom permalink rewriting
- rewriterule not working
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- Custom Post Types and Removing Slugs – should we do it?
- Pagination for custom post types – url rewriting
- How to add page under a custom post type?
- Changing custom post type URL issue
- Modifying rewrite rules to use /category//
- Custom Post Type View Button in Admin Gives 400 Error
- Add Custom Values to Permalinks Through Custom Fields and Posts
- Taxonomy rewrite pagination 404
- Archive page for custom post type and custom taxonomy
- Post/Custom Post Type URL Access
- Why does my URL keep returning 404 error code?
- Custom Post Type nest under a normal WordPress Page
- Custom Post Type Date Based Archive URL rewrite [duplicate]