Can t change page slug WordPress?

Can t change page slug WordPress?

First off, go to the list of pages and make sure that the trash has been emptied (the about page is not in the trash (links at the top left of the list). You now might have to wait for 24 hours for the actual deletion to be done in the database. Then again try and change the page slug.

How do I add a live news feed to my WordPress site?

Log in to your WordPress admin area and go to Widgets in the Appearance section. Click on Add next to the RSS widget. In the Current Widgets section on the right, click on Edit for the RSS widget. Type the RSS feed URL, its title (optional) and check what item details to display (optional).

Can slugs have spaces?

By default, the slug of any post you publish will be the same as the title, only lowercase and with dashes instead of spaces. For example, if you start a blog and write a post called “My First Blog Post”, then the default post slug would be “my-first-blog-post”.

Where to put page slug in WordPress theme?

Because this is a theme-specific code, we recommend that you put it in your theme’s functions.php file. Now you will start seeing a new body class being outputted like this: page- {slug}. Use that class to override your default styles and customize elements for specific pages. For example, if you were trying to modify a div with widgets class.

How to get page id of a page using page slug?

So I went back to thinking and came up with this simpler approach based on the WordPress Codex ‘s documentation: There is a function url_to_postid since WordPress v1.0.0 🙂 This task is easiest to achieve by using this function. When page is top-level page, only slug has to be given.

Why are there no page IDs in WordPress?

WordPress has these things called body classes which outputs the class page, page-template- {filename} and page-id- {number}. We couldn’t use page-id- {number} because page IDs change from development to deployment. We also didn’t want to create a custom page template with repetitive code.