• Hi,

    I am new to WordPress. I have an inventory of equipments. I was able to configure them with custom post types and having a taxonomy.

    The taxonomies are equipments for sale and rental. Each taxonomy has term called new and used. The equipments will be differentiated even if new and used terms are repeated since they have different parent taxonomy.

    This is the url of the equipments for rent which are new : http://gandjmachinery.mediaone-alpha.com/rental/new/

    If i click Compact Forklift CL480-1S from the url above, i will go to http://gandjmachinery.mediaone-alpha.com/inventory/compact-forklift-cl480-1s/

    Is there a way to update the Equipment name to the taxonomy from where it was clicked from? For example, if i click from /rental/new/ .. the title of the single vehicle will also depend from where it was clicked?

    Please help

Viewing 1 replies (of 1 total)
  • Casey Driscoll

    (@caseypatrickdriscoll)

    Hi feitan,

    Thanks for posting!

    It sounds like you are trying to represent the state of your inventory items. Item state or status, along with manipulating and changing the state, is a complex issue in making websites.

    That sort of dynamic routing isn’t easy with WordPress. I’m not sure it is recommended either. WordPress is great at storing and retrieving items, but those items generally stay in the same place, with the same URL. Moving the item or changing its state can change the URL, which is generally a bad practice.

    That said, I think I have a solution to consider. If you create descriptive post types like ‘new-inventory’ and ‘used-inventory’, instead of just ‘inventory’, you can store them separately. For example, you’d have a gandjmachinery.com/new-inventory/compact-forklift-cl480-1s/, and you would still tag it with the ‘new’ tag.

    Only ‘new-inventory’ items would get the ‘new’ tag; the same for all ‘used-inventory’ items, which would only get the ‘used’ tag. This way, /rental/new and /rental/used would still work, AND you would have an automatic /used-inventory and /new-inventory, listing the correct items.

    Does that make sense? Let me know if this is helpful or if you were thinking of something else.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Single Custom Post With Category’ is closed to new replies.