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
- Remove slug from custom post type post URLs
- Why would WordPress use ‘attachment’ in a custom post type’s query string?
- Custom post type URL with post ID that allows archiving and paging
- Custom post type taxonomies URL rewrite
- Enforcing canonical URLs with multiple custom post types
- Custom permalinks
- WordPress Custom Post Type Category Page
- Issues when rewrite rules collide?
- Custom post type permalink changing itself every other change
- Custom post type permalink structure with the category also acting as an archive
- Prepend meta_value to permalink of post
- How to create custom URLs for Custom Post Type sub sections?
- Custom Permalinks for Custom Post Types and Taxonomies
- Custom Post Type Rewrite Rule for Author & Paging?
- Removing parent slug from URL on custom post type
- How to properly prefix blog post URL’s
- Custom post type category, taxonomy and URL rewrite problem
- Rewrite on custom post type permalink not working?
- Custom post-type in root directory, blog posts in subdirectory
- Custom query variable – get wordpress to redirect to nice permalink url
- Multisite with a single, shared custom post type, while retaining site URL
- Share parent path between Custom Post Types and Pages?
- Rewrite URL for only archive page (custom post type)
- Remove base slug in permalinks of hierarchical custom post type
- Rewrite rules for custom posts types
- Remove the parent slug in a CPT URL
- Index page with the same id as the slug
- Custom post type as home page with custom url
- How to rewrite url for any specific taxonomy?
- Custom post URL 404 error
- URL rewrite add author as base
- WordPress randomly shows 404 errors
- URL rewriting for CTP assigned entity
- CPT’s with landing page instead of archive – Url Rewrite?
- Added Custom Post Type and the View Option Doesn’t Work
- Best way to specify “article type” in URL
- How to have permalink like domain.com/term/postname?
- post_type_link Filter – Too Few Arguments
- WordPress rewrite url
- How to rewrite the post slug of a custom post type post
- How to display wp_post by custom field value?
- Add Custom Values to Permalinks Through Custom Fields and Posts
- Archive page for custom post type and custom taxonomy
- Rewrite rules for custom post type
- Custom taxonomy and post type rewrite rules
- Combine 2 different custom post slugs into a single permalink?
- Custom post type items open in archives?
- Url Rewriting a dynamic wordpress page with parameters
- Setting Parent Page to Post
- Add rewrite rule for custom post type single page
- Custom taxonomy terms as children of multiple custom post types
- Custom Post Type & Taxonomies – Rewrite
- Preview url not working outside wp-admin
- Change CPT permalink to use the category
- add_rewrite_rule wordpress ignoring url pattern, wp rewrite not working
- Rewrite of Custom Post Type doesn’t work with dynamic data
- Custom URL for Custom Post Type & Custom Taxonomy Term
- Custom taxanomy and custom post type – pagination leads to 404
- Flush rewrite rules when new cpt is registred
- Custom post url in search.php isn’t the correct rewrited url
- Custom Post – additional param in the custom post URL goes to error page
- Remove wp directory and slug for custom post type from the URLs
- CPT url rewriting : regular posts return 404 error
- Custom WordPress URL
- Custom Post Type Categories Not Maintaining URL structure any more
- Category slug not showing for Custom Post Type
- URL Rewrite Adjustment for Custom Post Type causes template to revert to index.php
- Why are my wp urls showing page not found?
- Sorting custom post types by taxonomy (So close)
- Custom Post Type – Rewrite slug [duplicate]
- Rewrite rules for using the same base slug for multiple content types
- img src not working correctly in custom post type
- add_rewrite_rule not working in Custom Post Type UI Plugin