New answers tagged slug
Modification of a slug happens when wordpress detect that the slug is already in use. "In use" in this case includes the posts that are trashed. In your case if you don't need the id to be associated with the date then you might get better result by using the post id as the id, or implement some incremental counter.
Considering WordPress Codex flush_rewrite_rules This function is useful when used with custom post types as it allows for automatic flushing of the WordPress rewrite rules (usually needs to be done manually for new custom post types). However, this is an expensive operation so it should only be used when absolutely necessary.... I'd recommend you to ...
There is a plugin that regenerates the urls for post/pages/attachments! You can also go to permalinks and select 'default' or custom structure using post id. This hack is only for pages/post not attachments.
WordPress as a content management system organizes pieces of data into categorizations. It calls any individual piece of data that it might manipulate or display a "post", and any way to classify or organize that piece of data a "taxonomy". But not every post is the same, and there are often groups of posts that have a distinct set of properties that are ...
You could use this search and replace tool: search and replace by interconnectit Apart from that you could put some redirects in your htaccess, but really the search and replace works great.
Not sure why your object is returning the non-object notice, but you can set the output of get_term_by to OBJECT, ARRAY_A, or ARRAY_N - You'll want to use ARRAY_A and then access the term ID via $term['term_id'].
Top 50 recent answers are included