Select Custom Taxonomy from Theme Options

Since you are likely developing this and you don’t have any posts associated with the season taxonomy, you will not get any terms returned with get_terms(‘season’);’ unless you specify the parameterhide_emptyto be0`. I would change the code thusly: /** Seasons */ $args = array( ‘hide_empty’ => ‘0’ ); $season_terms = get_terms(‘season’, $args); $season_tax = array(); … Read more

How to Organize my Photo Albums?

General idea based on the use of regular Posts, not Custom Post Types (which is what the plugin CPT-UI is about): one parent Category -Photos under it, the needed sub-categories -Personal, Professional, etc one post corresponds to one Album -Vacations 2012, News Coverage, etc upload all images of the Album into the post, put titles, … Read more

display custom post type from register taxonomy

First off, I’d like to note a few things wrong with your Post Type and Taxonomy set up. There’s a few settings in your $labels that don’t make sense: $labels = array( … ‘post_type’ => ‘attachment’, ‘post_parent’ => $post->ID, ‘post_status’ => ‘inherit’, ‘post_mime_type’ => ‘image’, ); These last 4 options don’t make much sense ( … Read more