Custom Post Type as Taxonomy or Custom Field

I am working on a genealogical society website that needs custom content for townships, cemeteries and churches. I have created these custom post types. The most common link between the three would be a taxonomy I call ‘gridid’ (unique to the way Maine townships are organized). However, I would like to associate the Cemeteries to the Townships they are located in.

How can I add a “parent” dropdown to select the Township associated with the Cemetery?

  • Michelle Shull
    • DEV MAN’s Apprentice

    Hi Heather!

    You’re totally on the right track. You’ll need to do a few steps.

    1. Make sure the gridid taxonomy is hierarchical.

    2. Make the township taxonomy, also make it hierarchical

    3. Go back to the settings for gridid, and assign Township as the parent taxonomy.

    4. Install this free plugin from the repo: https://wordpress.org/plugins/custom-taxonomies-menu-widget/, it will let you create a dropdown, or set of dropdowns, in a sidebar widget to help users select based on Township or Grid ID.

    For more info, we’ve got a great blog post on CustomPress, here: https://premium.wpmudev.org/blog/working-with-custompress/

    I love CustomPress, it’s one of my favorite plugins of ours, I always like seeing members do cool things with it. : )

  • HeatherFeuer
    • Site Builder, Child of Zeus

    Sorry for the delay in a reply. I followed your suggestions and was able to get the exact result I was looking for! I too am beginning to love CustomPress and I’m looking forward to seeing what more I can do with it.

    To see what I my vision is you can go to http://acgs.selfip.org/townships and on the map click on “Caribou.” This will bring up a modal window with the township info and scrolling down in the modal window you will see the cemeteries associated with that township. (Still very much in progress.)

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.