Hot answers tagged

3

I know this topic is old, but I was having the same issue, and none of the suggested fixes worked. I didn't have any pages still in trash. I didn't have a category with the same name as my page. I didn't have another page with the same name. So I did something crazy. WP was trying to name my page as page-2, so I went to mywebsite.com/page to see what ...


3

Looking at the code, you should be able to filter it. Something like the following should do it: add_filter( 'emoji_url', 'wpse_232874_emoji_cdn_url' ); function wpse_232874_emoji_cdn_url( $url ) { return 'http://example.com/my/cdn/url/'; } ...replacing http://example.com/my/cdn/url/ with whatever URL you want to use. Reference Plugin API


1

Changing arguments for a post type "on the fly" by changing the global at some random point in time is below ideal. When you look at register_post_type() there is the register_post_type_args filter. Example on how to use it as a small (mu-)plugin: <?php /** * Plugin Name: Change Post Type arguments for Post Type X */ add_filter( 'plugins_loaded', ...


1

You need to update all the places in the database that are using the original location. you can use the following tool to do so. There are others but I have found this one to be easy. Just remember to remove the files after you are done with it. I would run this in it's new location and leave the development version alone. https://interconnectit.com/...


1

There are various ways to achieve it. The most simplest one could be to make a new page and with name "en" so the slug will be mysite.com/en/ Now make the "en" page as parent of my-page-name or in other words make my-page-name as a child of en. So slug will be mysite.com/en/my-page-name/


1

Duplicates don't just come from Pages and Posts, WordPress also defines Images and Files from the Media Library as "Posts". This means if you have a file / image in the Media Library with the same name as a page, it will assign the next duplicate a -2 ( from the wp_unique_post_slug() function ) so there's no URL conflicts. TL;DR - Duplicate? Search for ...



Only top voted, non community-wiki answers of a minimum length are eligible