Forums

Permalinks issue (3 posts)

  1. rigolman
    Member
    Posted 1 year ago #

    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
    http://www.mysite.com/recipes/recipe-name

    I would like to translate it in french + remove "archives" + add ".html" like this:
    http://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 http://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.

  2. Samuel B
    moderator
    Posted 1 year ago #

    did you try just
    /%postname%.html

  3. rigolman
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic