Grow your CSS skills. Land your dream job.

WordPress Logic Problem

  • # March 3, 2012 at 7:01 am

    Hey Guys,

    This isn’t so much a css coding issue as it is a logic problem.

    I am building a website for a band management company. I want a custom post type for each band with custom fields for different information.

    There are also Gigs on the site. I want to be able to query gigs and display them based on date on a gigs page for all bands on the site, but also have them show up the appropriate bands page just for that band.

    Anyone have some hints on how to do this.

    Should the gigs page just query all bands and just display gigs ordered by date or would it be better with a custom taxonomy?

    Thanks for your help

    Matt

    # March 3, 2012 at 12:12 pm

    I was stuck in same problem, when i had to show deals for the stores ( both were custom post types), i used Custom Post type relations plugin to implement it.

    Thanks,
    Mohit

    Rob
    # March 3, 2012 at 12:52 pm

    I would set up a custom post type in the “page” format and then another one in the “post” format for giggs – then add a custom taxonomy to the gigs. Then you could add the band name as a custom tax for the gigs posts and loop them out to the bands custom pages :)

    # March 3, 2012 at 7:28 pm

    Thanks Guys,

    I’ll look into the plugin.

    @Robskywarrior is there anyway of dynamically populating a custom taxonomy with the titles of a custom post type. So the Taxonomy ‘Bands’ would only display actual names. Then on the band page query if taxonomy == the_title?

    Rob
    # March 3, 2012 at 7:38 pm

    Possibly – I have recently created a site which uses a custom tax but we added them all ourselves. I am not sure on the functions for adding tax automatically though…

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

You must be logged in to reply to this topic.

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