Viewing 1 replies (of 1 total)
  • Plugin Author apasionados

    (@apasionados)

    Hi Grapheyes,

    The plugin kills following HTML entities /&.+?;/ including the .. So when setting up a post using the editor with the plugin installed you will not get the ..

    Nevertheless we have not tested if the plugin works with automatic import of posts from other websites because there are many ways of doing this and each one uses a different approach. If the import uses the standard WordPress hook the plugin should work.

    The plugin acts on the name_save_pre hook which works perfectly when using the WordPress editor for creating posts or pages.

    Have you tried to import the posts with the plugin turned on?

    You will have to check how you import the posts from the other pages and you could add the removal of HTML entities when importing using a similar code to this one:

    $seo_slug = strtolower(stripslashes($_POST['post_title']));
    $seo_slug = preg_replace('/&.+?;/', '', $seo_slug);

    Hope this will help you to sort it out.

Viewing 1 replies (of 1 total)
  • The topic ‘How replace "." by "-" automatically in the slug’ is closed to new replies.