Rewrite rules for using the same base slug for multiple content types

Ok, the solution here turned out to be setting the correct priority on the add_action hook. Since we’re all hooking into init to register our post types per the Codex, the priority will determine which register_post_type function gets called first and, by extension, the order of the generated rewrite rules. So, I needed my “gemstone” … Read more

Changing checkbox array from single to multiple select

After days and days of frustration, I’m proudly answering my own question. The original code was not displaying multiple checkboxes because I was using the conditional !strcmp( $term->slug, $selected[0]->slug ) to render my “checked” options. Somehow it only returned 1 “checked” value at best. The correct conditional simply gets the value of the selected option, … Read more

Radom post image/link based on custom taxonomy

<?php query_posts( ‘cat=36&post_type=athletes&showposts=1&orderby=rand’); ?> changed to : <?php $args = array( ‘numberposts’ => 36,’category’ => ‘1’,’post_type’ => ‘athletes’, ‘orderby’ => ‘rand’); $lastposts = get_posts( $args ); foreach($lastposts as $post) : setup_postdata($post); ?> <h2><a href=”https://wordpress.stackexchange.com/questions/56381/<?php the_permalink(); ?>”><?php the_title(); ?></a></h2> <?php endforeach; ?>