• Hi all,

    First of all thanks a lot for your help, i’m stuck with this since a long long time…

    I would like to customize the permalink structure.

    The actual structure I can’t change is
    https://www.mysite.com/recipes/recipe-name

    I would like to translate it in french + remove “archives” + add “.html” like this:
    https://www.mysite.com/recettes/recipe-name.html

    But after many time spent on this, I still can’t figure this out… when I add a recipe, by default there is automatically https://www.mysite.com/recipes/name-of-post added…

    I tried to change this page recipe-press.php file in “rewrite rules” part but it didn’t work:
    /* Add rules for recipes */
    $rewrite_rules = $wp_rewrite->generate_rewrite_rules(‘recettes/’);
    $rewrite_rules[‘recettes/?$’] = ‘index.php?paged=1’;

    Could you please tell me what should be changed to accomplish this task?

    Many thanks for all your help,

    Alex.

Viewing 2 replies - 1 through 2 (of 2 total)
  • did you try just
    /%postname%.html

    Thread Starter rigolman

    (@rigolman)

    Hi Samuel,

    First of all thank you for you reply.

    I already have my permalink as a “custom” structure with “/%postname%.html”.

    It’s already working with my default blog post but not with the post with the type “recipes”…

    Any other idea?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalinks issue’ is closed to new replies.