Skip to content

Instantly share code, notes, and snippets.

<?php
$post_count = get_usernumposts( $authorid );
echo number_format( $post_count );
?>
<h3>In this issue</h3>
<ul>
<?php $issue_terms = get_the_terms( $post->ID , 'post_tag' );
if ( $issue_terms != '' ) {
foreach ( $issue_terms as $issue_term ) {
$issue_slug = $issue_term->slug;
<?php
// Just for the Quarterly
add_action( 'wp_print_styles', 'quarterly_styles' );
add_action( 'wp_enqueue_scripts', 'quarterly_scripts' );
function quarterly_styles() {
if ( is_post_type_archive( 'wpcandy_issue' ) || is_singular( 'wpcandy_issue' ) ) {
wp_dequeue_style( 'master' );
<?php
// Custom post type creation
function wpcandy_cpt() {
//Other post types created above
// Quarterly post type
register_post_type( 'wpcandy_issue',
array(