Okay
  Public Ticket #476862
Custom Permalink structure affecting Staff and Portfolio URL's
Closed

Comments

  • middlep1 started the conversation

    Hi,

    I've set a custom permalink structure of:

    /news/%postname%

    /news/ being the URL of my news/blog page. However, this custom structure is also affecting the Slug/URL of the Staff and Portfolio post types, rewriting them to:

    /news/staff/%postname%

    This is NOT the behaviour I expected, I would expect the URL's for Staff Members and Portfolio post types be structured as:

    /staff/%postname%

    and not be affected by the custom permalink structure

    I've had a dig around the theme files and can't find anything directly setting up the custom post types in the standard way I would expect, and haven't been able to find a solution.

    From my understanding of the register_post_type() function you should pass it a 'rewrite' argument of with_front set to false. This ignores the custom permalink structure. e.g.

    'rewrite' => array(
    'slug' => 'your_post_type',
    'with_front' => false
    ),

    At the moment, without a fix this makes TheFox theme unusable for me without having to change the core code base and looking for an alternative theme, shame after spending $58 on it!

    Please fix it ASAP or at least offer advanced options to alter the URL's in the Redux options panel.

    Thanks

  •  895
    TheFox replied

    Hi, thanks for purchasing thefox and thanks for the feedback!

    We joined the zip file of our modified plugin, please remove thefox custom post plugin and update with the one we sent you.

    This should fix the problem.

    Also if you are using the latest version you should be able to choose the slug name from the theme options panel.

    Do not hesitate to contact us if you have other questions

    Regards

  • middlep1 replied

    Thanks, this seems to have resolved my issues 100%.

    It would make sense to merge this with your core theme branch for your next version release, or at least offer configurable options to affect the rewrite method of the post type slugs.

    Thank you for helping


    P.

  •  895
    TheFox replied

    Hello,

    Thanks to your feedback in the next update we will change the plugin to the version we sent you.

    Do not hesitate to contact us if you have other questions.

    Regards