Change the slug ( url ) to a sequence number starting from 0 in the custom record type?
Change the slug ( url ) to a sequence number starting from 0 in the custom record type?
Change the slug ( url ) to a sequence number starting from 0 in the custom record type?
Change get_author_posts_url / Author URL via filter
How To Change Username Slug
Guest author – URL, base and custom taxonomy – working but unstable
There’s no such thing as a single permalink document name. It varies depending on what is being queried. Taxonomy terms use the slug of the term, pages and posts uses the slug of the posts. Post type archives sometimes use the post type name, but they might use something else entirely depending on how it’s … Read more
As the commenters have noticed wp_unique_post_slug is called from wp_insert_post to ensure there are no double slugs. It is also called from two other functions, which explains why it is a separate function and not incorporated in wp_insert_post. A little used feature is the possibility to apply filters present in wp_unique_post_slug. There are two of … Read more
my solution: $catid=’24’ $cats = get_category ($catid); if ($cats) {$category_link = $cats->slug; if ( $parent = $cats->parent ) { $category_link = get_category_parents($parent, false, “https://wordpress.stackexchange.com/”, true) . $category_link; } }
This is the output of the function: array( ‘pa_size’ => array( ‘label’ => ‘Size’, ‘value’ => ‘Medium’, ) ) You get the slug like this: $terms = WC_Order_Item_Meta::get_formatted(); foreach($terms as $slug => $term){ }
I solved the problem. The permalink slug under the title of a new post would not let me tweak the slug for some reason. I was able to get rid of the unwanted ‘-‘ in the permalink by heading to the posts list and clicking quick edit to edit the slug over there.
I got the client to agree to a slightly different slug so that all the CPT’s pages used a parent of “practitioners” and the pages I was trying to create could use “practitioner” without the S, it simplified things alot and users may not notice or even care!