The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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


    # 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.


    # March 3, 2012 at 12:52 pm

    This reply has been reported for inappropriate content.

    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?

    # March 3, 2012 at 7:38 pm

    This reply has been reported for inappropriate content.

    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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed