Well it turns out you can’t use a slash (“https://wordpress.stackexchange.com/”) in the slug but I found a solution from How to set permalink structure via functions.php, set the permalink structure in your theme’s functions.php file
add_action( 'init', function() {
global $wp_rewrite;
$wp_rewrite->set_permalink_structure( '/episode/%postname%/' );
} );
It will add /episode/ before the post slug
Related Posts:
- which is the function that removes accented vowels?
- Slugs as breadcrumbs for Pages
- change a post status when users update posts?
- Automatically insert php function into post $the_content
- Get page slug and assign a variable within functions.php
- Sanitize slug title
- is_account_page() change to page slug
- Identical custom taxonomy slugs for same hierarchical children
- Allow Post Author to be 0 on Update
- Get term slug by term id and then explode it
- The work of WordPress Function update_post
- How to assign php file(template) to several pages with same prefix page name/slug
- How Can I Create a Friendly Slug for a Dynamic Page?
- Display list of pages that contain a certain string within the slug
- Get child-pages slugs of current page into js-file
- Function working in single.php but not working in custom template file
- BuddyPress Edit activity function good practice
- wp_update_post breaks my function
- Show image exactly defined to a width
- wp-admin won’t load after setting wp-login custom url
- Incorrect redirect after commenting
- Get ID of first image attached to a post
- jQuery does not work
- Function naming convention
- Is `is_sidebar_active()` deprecated, and showing error?
- How to return hook data when multiple parameters are present?
- Generate featured images old posts
- debugging errors.. how to remedy?
- Where do i create my own function in wp-admin
- How to add_filter html template to middle of content
- Shortcode parse error – wrong syntax
- Load custom css in functions.php causing library issue
- Why does get_template_directory_uri() not include “www”, only for enqueued stylesheets?
- Getting commenter meta
- In jquery use php variable to execute an enqueued jquery file
- Run a jquery script on on a certain template page
- How to stop media_sideload_image from running when deleting a post?
- I want to display latest post in marquee [closed]
- How can i unload effect.min.js file?
- Can’t add_action to ‘save_post’ and get it to fire
- why is this function firing on all child menu items as well?
- Custom styles in Tiny MCE with an external CSS file
- I changed Functions.php and now I get “cannot decode raw data NSURLErrorDomain:-1015” (not blank)
- How to load jQuery in TOP of wp_footer?
- How to fetch custom post type by variable date?
- How to make custom comment fields required
- two search forms on the same page
- Getting out side of wp root folder from function.php using absolute path
- How do I register a new settings page? [closed]
- Include Jquery libraries in wordpress theme?
- Changing the header image using WPML
- current_page_item is missing inside wp_nav_menu
- Change default upload images size for contributors
- Strange error from functions.php files (wp_register_script)
- Retrieve First Image Function
- User meta and public function security
- file.php not loaded?
- How to setup a popup registeration page in wordpress with function.php
- Display ACF category image on archive and single template files
- How to get taxonomy tree ids without running expensive loops
- How to add if statement on WordPress shortcode output
- Auto delete content in specific folder inside media library
- Using get_terms for custom taxonomy in functions.php
- Why does modifying the “read more” link remove the link class?
- How to update an image attachment’s alt text from a custom field when saving a post?
- How Do I Unhook This Parent Theme Function?
- Woocommerce product price change
- Allow user only create specific tags
- Child theme remove parent filter in functions
- Set URL Parameter Post Layout As Default
- How to display different blocks for mobile and desktops
- Woocommerce – Switching Price for Category
- Help wiht adding fullcalendar.io to a WordPress page
- WP Enqueue Script Error
- Enqueue JS + CSS via a child theme functions.php file?
- How to add publish/draft button in Admin Post Lists
- How to create a WordPress Customizer Button to Clear a Cache?
- Move product attributes after summary on single product page
- Woocommerce – change order status from on-hold to pending payment
- Javascript and Stylesheet in child page
- How to add number to wordpress count function?
- How do I integrate my Child Theme into a Custom Template?
- Sending Messages Back to the Template After Processing?
- Shortcode to eliminate and replace with
- Why are some custom javascript files working but some are not
- Custom Nested WordPress Comments with avatar
- using enqueue_script in a shortcode isn’t working
- Functions file mods and CPU
- How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?
- How to overwrite ‘read more” text for artmag theme
- How to display milliseconds instead of seconds using timer_stop function? [closed]
- Filter to strip unnecessary attributes
- get_post_class() not working well
- WordPress Custom wp mail template return full template
- Comment turned Invisible
- Is it possible to use a post name in a custom post slug?
- wp_login_form display no styled form
- Would it be possible to disable embeds for specific user roles? If so, how?
- I am looking for a function to create category links in the wordpress loop for articles
- No src and sizes attributes present on WordPress thumbnail images; the smallest image size is loaded irregardless of viewport size