How do I retrieve the slug of the current page?
I am trying to retrieve the slug of the current WordPress page outside the loop. The title of the page returns with wp_title (), but how can I get the slug?
I am trying to retrieve the slug of the current WordPress page outside the loop. The title of the page returns with wp_title (), but how can I get the slug?
is it possible to regenerate the slugs programmatically after changing the titles of the post? Numerous post titles were updated and the slug was not updated with the title so I need to regenerate all these slugs.
I’d like to rename files during upload and set their names to the post slug the files are being attached to, plus some random characters (a simple incremental counter will de just fine) to make the filenames different.
How to add dot(.) in post slugs?
Is it possible to redeclare/change the slug of a plugin’s existing custom post type (without simply editing the plugin)?
Is it possible to use a number for a post/page slug? I have tried to use e.g. ‘123’ for my page slug, but each time WordPress converts it to ‘123-2’.
Is it possible to change the author base slug according to his role? For example, authors get example.com/ninja/%username% and subscribers get example.com/trainee/%username%?
i have a page in wordpress called “video”. its page id is 6, and its slug is “video”
I’m pretty new to WordPress and I was wondering if I could get a page id with its slug. Is it possible please let me know?
in my theme I want to define a series of custom post types and custom taxonomies, each one having its own customized slug; the base language of my theme is english, therefore the slugs will be in English language