When registering your CPT, the rewrite
and has_archive
parameters will control the URLs (untested):
register_post_type( 'course', array(
...
'rewrite' => array(
'with_front' => false,
'slug' => 'course',
),
'has_archive' => 'courses',
);
Related Posts:
- How to remove /index.php/ from URL’s
- Run WordPress frontend and backend in different domains
- How to remove “http://” When Echoing URL?
- Change homepage url
- How can I change all links on pages to point to a different domain from where the site is hosted?
- Remove site root trailing slash
- URL parsing – what is it?
- Changing my site url from azure.net to custom domain
- Remove / from www.example.com/ [closed]
- Avoid the removal of “https:” from URLs
- Confusion about Site url and directory
- WordPress get parameter ‘unapproved’ and ‘moderation-hash’
- Changing the website URL to the root folder
- Showing my server ip in source code for several links not for all links
- How do I avoid messing up URLs when switching from example.com/subdir to example.com?
- Cannot access WordPress website from external IP while internally it is working properly [closed]
- DNS – Change WordPress Site Name?
- Alternatives to site_url() and get_template_directory_uri()
- What is the best way to revert to www version of domain name?
- Changing siteurl in the database not working
- How to make a seo friendly URL of 2 different pages with same words
- Why my URL has an unknown character string?
- Two domain site: Link base URLs point to wrong domain
- Making a site URL
- Can’t change url because site address is greyed out
- How do you retrieve a post by slug name through REST API?
- Why “?v=hash” is added to my URLs? [closed]
- Detecting a WordPress URL without doing a full HTTP GET?
- How does WordPress generate URL slugs?
- How does routing on wordpress work?
- Redirecting to old domain after migration
- Unwanted media library URLs in posts?
- How to remove file versions from the file source links in wp_head?
- Add menu and submenu in admin with a URL instead of slug?
- Update media file url in wordpress media library
- Change logo url link
- Dynamic URL generates dynamic content
- As soon as I add a custom query_var using the filter, my pages point to an archive page – why?
- Concatenate site_url and string doesn’t work
- Which of WordPress’s .php files need to be directly accessible via HTTP?
- How to create a page for authors? like www.myblog.com/author/
- Old URL Redirect website after migration
- pass user id in slug and get user information
- Best way to give site sub-page it’s own domain?
- Dynamically change page title from URL param
- What is the correct way to convert the absolute path of the executing script to a URL, in WordPress?
- Getting 404 Hits on URI -/-/-/-/-/-/-/-/-/- . How to deal
- How to change logo url [closed]
- Make homepage a non-WordPress page
- Content duplication issue with dynamic URLs
- Is get_permalink also the canonical URL?
- Remove trailing slash from previous_posts_link()
- Moved WP into new folder. How to fix image links in posts?
- Using esc_url_raw with protocols properly
- Site transferred to new server produces 404s
- How to parse a custom url (within WP site) and obtain params passed to that URL
- wordpress copyright dynamic
- Two sets of url one content?
- Multiple duplicate URL’s
- Dynamic URL and pass the data to an iframe
- Unicode characters are saved in a funny way in the DB
- Unnecessary url
- How to close tab automatically if URL has specific word? [closed]
- Redirect Old wordpress url to new wordpress url
- Finding URI in Child Theme
- Make custom system url
- Sanitizing URL in a WordPress plugin
- How to display translated content with custom slug?
- How to get a page url segment on wordpress?
- How to create a user ability to save pages with full url?
- unique url access control
- How to bulk Update URLs to new values?
- I found weird email address appended to some of my URLs, what does that mean?
- Add more than one query parameter onto wordpress url
- WordPress Website change directory
- Allow duplicate slugs for pages and posts
- Cannot Save Changes After Updating URL Settings
- How to encode correclty an url with the char “&” for an email?
- How do i create navigation links like this in wordpress? [closed]
- Blog post Links leading to home page [closed]
- Change dynamically URL to SEO friendly via .htaccess?
- Get userdata from url
- How to make url variable?
- WordPress dynamic subpage for ACF
- From whence %E2%80%8E at the end of post link
- WordPress Address (URL) Reverts back
- How to pass REQUEST_URI to function
- wordpress url with format .com/category/sub-category
- URL Forwarding – wordpress links reverting back
- Get gallery url (Nextgen) [closed]
- How to use query string in URL to display content on the wordpress page
- Multisite subdirectory blogs missing slash
- Function to get custom post image URL
- How to echo a dynamic url
- WordPress rewrites my link with custom URL scheme to http(s)
- Show page name after home url
- How to create multiple urls for a same page contents in wordpress
- how to add param string after website url in wordpress?
- Are the wp entries in these URL’s legitimate?
- Unable to Retrieve Query Parameters Passed in URL