Grow your CSS skills. Land your dream job.

WordPress best way to do this

  • # May 19, 2013 at 4:20 pm

    Hi,

    I’m using a custom post type for my client to create a new cake rather than post of page.

    In creating this she will enter title, images, text etc. All is fine. There are three types of cake, wedding, special and birthday all require the same data exactly.

    I should also say that these three categories are children of the parent page cakes.

    What would be the best way to split these so I can say show all wedding cakes on a page and all birthday on another?

    I could create another post type for each cake type but that seems a bit of a waste.

    I could use categories or I guess I could create a field for each type.

    Just wondered how you guys would deal with this.

    Thanks

    Ps
    I should also say that this site doesn’t make use of categories for anything else.

    # May 19, 2013 at 4:25 pm

    I’d either use Categories or a custom taxonomy.

    # May 19, 2013 at 6:15 pm

    Taxonomy.

    # May 19, 2013 at 6:29 pm

    Cheers guys

    # May 19, 2013 at 6:31 pm

    What’s the difference between a category and a Taxonomy?

    # May 20, 2013 at 4:31 am

    Categories and Tags are a sort of taxonomy.

    In your case, using categories might be quite alright (I haven’t looked into categories for both posts and custom post types while only showing the custom post type, so I can’t give you a definite answer), but if, for instance, you later want to tag cakes with “Ingredients”, then you can create a tag-like taxonomy called “Ingredients” and from there show only cakes that have, for instance, licorice in them.

    # May 20, 2013 at 8:49 am

    I’ll have a look it sounds like either will work for me.

    Thanks Melindrea

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".