Support » Plugin: GD Custom Posts And Taxonomies Tools » [Plugin: GD Custom Posts And Taxonomies Tools] need some help using this tool

  • Resolved Ovidiu


    I think I have udnerstand most of the features of custom psot types and taxonomies and of this plugin but I am unsure about how to achieve this:

    lets say I am creating these:

    custom post type: recipe
    custom tax: ingredient

    and integrate them into my general blog. to separate them more from the other content I’d like to have a permalink as follows: and

    so how would I add this food bit to the permalink? I tried the rewrite field option but it doesn’t take any special characters… isn’t that the palce where it should go?

Viewing 7 replies - 1 through 7 (of 7 total)
  • I’ve worked out how to do it for the custom post type but not for the custom taxonomy.
    according to theory it should work just the same but it won’t let me input food/ingredient it keeps stripping away the / which works for food/recipe 🙁

    Plugin Author Milan Petrovic


    Rewriting and permalinks have nothing to do with my plugin. WordPress is generating rewrite rules. The only way I see to do this is to overwrite existing WP rules for the specific taxonomy and insert additional element in the URL.

    Using your plugin, I created a custom post type called recipe and chose this Rewrite Slug: food/recipe
    according to the codex page: it seems it does this:
    'rewrite' => array('slug' => 'food/recipe')
    works perfect!

    Using your plugin I created a custom taxonomy called ingredients and where it say: Rewrite: I chose custom with this value: food/ingredient instead of the default: Yes, using name.
    I checked the codex: and it seems like I could use this:

    'rewrite' => array( 'slug' => 'food/ingredient' ),

    but it doesn’t work. the codex says:

    (boolean or array) (optional) Set to false to prevent rewrite, or array to customize customize query var. Default will use $taxonomy as query var

    Default: true

    $args array

    * ‘slug’ – prepend posts with this slug – defaults to taxonomy’s name
    * ‘with_front’ – allowing permalinks to be prepended with front base – defaults to true

    Now I am a beginner with this while you are a developer so my question is am I reading this wrong? Isn’t it possible?
    If it should be is it a shortcoming of your plugin or a WP bug?

    You say rewriting has nothing to do with your plugin but when your plugin registers a custom taxonomy for me I can set up these options 🙂
    I am not interested in custom permalinks or such (I know there is another plugin out there for this)

    Thanks for your feedback, maybe you can shed some more light onto this issue please.

    Plugin Author Milan Petrovic


    To be honest, I had no idea that you can specify rewrite for custom post type using two elements. Good tip. And you are right, taxonomies also support this, I tested it just now. But there is a bug in my plugin that is preventing custom slug to be saved with / character. This is from the old code used in WP 2.9 where custom slug had to be sanitized and such construct was not allowed.

    Anyway, new versions of both Pro and Lite editions of plugin will be released tomorrow evening.

    Thanks for reporting this bug.


    No harm done.
    I will wait for the update.
    I am no coder, sometimes I misread technical documentation. That’s why I asked for your opinion.
    I could manually add my custom stuff to my functions.php but for what I am doing currently, your plugin just makes life easier.

    Thanks for looking into this!

    Plugin Author Milan Petrovic


    I hate adding anything to functions.php. After a while you forget the things you add, and when you need to change the theme it’s a real mess. For most things, plugins are best solutions.

    Anyway, issue is fixed, and new version will be released later tonight.

    works 🙂

    Thanks a lot!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: GD Custom Posts And Taxonomies Tools] need some help using this tool’ is closed to new replies.