OpenGIS / Waymark

Waymark adds powerful mapping features to WordPress that are easy to use. Create beautiful, interactive Maps that you can customise to suit your needs.
https://www.waymark.dev
GNU General Public License v2.0
20 stars 6 forks source link

Feature: options page to override post type/taxonomy settings like slug #6

Closed huubl closed 12 months ago

huubl commented 2 years ago

Hi,

What about an option or filter to set custom slugs (and maybe labels) for the waymark_map post type and waymark_collection taxonomy?

morehawes commented 2 years ago

Hi @huubl,

Thanks for reaching out. Unless I misunderstand, this is already available for Maps and Collections.

Please do let me know if this is not the case for you.

Cheers,

Joe

huubl commented 2 years ago

Hi,

I'm talking about this part: image

What I actually meant is to have control over the setting, e.g. using a custom slug, labels and set archive to true.

https://github.com/morehawes/waymark/blob/bef8c7a9d0e177b13bfaf73d8213e5f4a3abaacd/inc/Waymark_Types.php#L7-L54

morehawes commented 2 years ago

Nice idea! I had considered this at the time of hard coding "map" and "collection" into the rewrites, I figured someone would ask for it at some point.

I will look into adding these as Settings.

Cheers,

Joe

morehawes commented 12 months ago

Added in v0.9.28. Thanks again for the suggestion!

Cheers,

Joe