The post slug
is generated in the wp_insert_post
(…/wp-includes/post.php) function. The function calls another function to sanitize the your post title
. You can use the filter sanitize_title
(…/wp-includes/formatting.php) to replace -
by +
. This will change the behavior in more situations then just the title of a post. So you should check if it is a post title that is sanitized.
Related Posts:
- Add custom Attachment Display Setting for images
- Rewriting post slug before post save
- Getting the post_id in wp_ajax function
- Replacing all attachment links in post with media file link
- Change the default number of posts to show on mobile version
- I am trying to create a simple frontend form for posting
- Post content being duplicated by the_content();
- How can I pass $post object to ‘save_post’ add_action?
- 1 column admin screen options – move submitdiv to bottom
- Single Post Navigation Within Each Category
- Add confirmation popup on “Move to Trash”
- How to get the latest posting time of archived pages in WordPress?
- Insert posts in two tables
- get_next_post() not working
- How To Keep Posts from Being Displayed Two or More Times on My Homepage? [closed]
- custom wordpress post loop – hide iframe content
- Different template for posts of all subcategories of category
- Search for posts based on their url in the admin?
- Add custom field automatically (add_post_meta) with value based on number of words of article
- How to access featured image?
- Mark menu item as current-menu-item for category
- Post revisions disappeared (for some posts)
- Replace ‘published on date’ with ‘modified on date’ on Posts
- How to display category from recent posts?
- Best way to assign post position in a news site homepage? (no categories, no sticky posts)
- How do I restart my loop with get_next_post()?
- How do I use WP_Query to get a range of posts with custom fields that have numbers with letters in them?
- How to give capability (publish contributors posts) to author role?
- “Duplicate” Posts Appearing Since 3.1.2 Update
- Rename “post” to “article” throughout the admin back end [duplicate]
- Setup a custom dynamic post
- How to make a price range slider from get_post_meta?
- One menu for frontpage (one pager), and a different menu for posts
- pagination for single post by category
- Post page to display specific category
- Adding an image to a non existing post
- How to create new post content templates for my users?
- Start post pagination at 0 instead of 1
- Excluding posts not working
- How to include my own css in post
- how to get random post id by using post type
- (solved) getting post author’s user role
- Block editors annoying warnings
- Add get_the_tags() to Single Posts section via functions.php
- Disable auto-save and post revisions from inside a theme or plugin
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- Refresh problem post is duplicated when page is submitted after page reload
- Migrate posts from category and sub-category via SQL
- Force fill all fields when creating a new post
- Posts Missing in Dashboard after update
- Display recent posts from portfolio
- How to get post with slug and exclude categories
- Auto update post title and slug when post status is changed
- How to make related post order by random?
- Accessing Post ID Within Loop
- Retrieving posts by their date and category
- WordPress displays post on subcategory only
- Update field in database for users
- wp-link-pages in header and footer of the post
- get last post’s link with SQL query
- Output Buffer Issue with Single Post View
- Categories Listing and Highlighting current category item
- In admin panel, use a form to create a post?
- How to get the post id (of the parent custom custom type) in a loop inside a widget?
- Actions to use when flushing cache (when posts are added / deleted / modified)
- WP query taxonomy optimization
- can’t modify post title using the_posts filter
- How Do I Redirect WordPress Pages but not posts?
- Single Post Gallery Using Shortcode
- Author post count in category
- How to show only homepage in google results instead of privacy, contact pages
- Post count doesn’t match number of posts shown in list in admin
- Show post count in custom taxonomy page
- how let users select categories for posts in frontend?
- Unable to get all the Posts Attachments
- view a list of 3 future post, from the nearest to the most far
- Category URL to use same string as Post URL Permalink
- Why do some post, listed under the “Mine” Tab, and the same posts listed tunder “Published” Tab
- How to add content to the menu
- Printable Page with all Posts from Tag
- Why the blog posts is not showing?
- Multiple Custom Post Type loop logic
- WordPress search for specific Post Type
- Get the correct meta_value with get_post_meta
- Export Posts with specific custom fields by sql
- Gallery just showing plain short code like [gallery ids="240,236,275"]. how to solve this?
- Posts are being posted in two categories instead of 1
- How can I change the look of a post as is displayed
- List posts that are in the same category as the current post title
- Wanting to apply different featured images for each post
- save_post not working
- Password-protected Posts lead to 404 Error
- Multiple blog “feeds” in a single blog each with distinctly styled post pages
- How to get pagination working with “Pending” Posts
- How do I show the post title if an advanced custom field hasn’t been used?
- Post’s arent displaying
- Show with echo if a post has two or more categories
- Can I get custom post items in select box (dropdown)
- How to make the Post Author name fixed as “Editorial Staff” even if there are multiple authors?
- Trying to create parent for post. I need some help. Thanks