New answers tagged

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


0

The question isn't very clear to me but i'll attempt to answer anyway, forgive me if it's obvious to you: What you describe is the behavior of "custom post types" When you create custom post types you define a slug like your "suburl" and "suburl2" and all posts created under that type fall under site.com/suburl/post-title I'm sure that if you first create ...


0

It works for me. add_filter('post_link', 'locale_permalink', 10, 3); add_filter('post_type_link', 'locale_permalink', 10, 3); function locale_permalink($permalink, $post_id, $leavename) { if (strpos($permalink, '%category_slider%') === FALSE) return $permalink; $post = get_post($post_id); if (!$post) return $permalink; if ($post->post_type != '...


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 ...


-1

NO NEED TO HIDE! You will waste energy. it has no secruity. Read this - https://goo.gl/Pkq8Kn


0

You can't do this by default, but you can write a query to do it within your theme. It could be a security risk to allow any field to be entered in the URL, so you'll need to explicitly detect those that you are wanting. In your functions.php, you could add something like this (untested!): add_action( 'pre_get_posts', '...


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 ...


0

There is no way this kind of functionality exist without some plugin/code to implement it and without doing actual rewrites. Wordpress core do not know what is a "stop word" and do not believe in multiple URL for the same content. If a theme was changed, this might have been a code in the theme that was responsible for such a functionality.



Top 50 recent answers are included