Changing Path for Gallery & Album Pages

Bring Your Business to LifeSupportImage StoreChanging Path for Gallery & Album Pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #50302
    atypicallife
    Participant

    Hello – first of all, I love this plugin. Thank you so much for taking the time to develop it!

    I have a site that already uses the path http://site.com/galleries for something other than this plugin and so I would like to be able to change the default path for the gallery and album pages to a different name.

    I have a decent working knowledge of PHP, so if it is too difficult to add this to the settings menu, I would be happy if you just pointed me in the right direction as to where I could change this in the plugin files.

    Thanks!

    #50316
    Xpark Media
    Keymaster

    You will need to change the custom post type and the writer rules, both of these are initiated and generated in the image-store/_inc/core.php file.

    I recommend creating a secondary plugin to modify the values,
    remove or run secondary hooks to modify the values

    generate_rewrite_rules (run same function replace the root “rewrite”)
    ims_gallery_post_type (change the “rewrite” value)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.