This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$post_count = get_usernumposts( $authorid ); | |
echo number_format( $post_count ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Custom post type creation | |
function wpcandy_cpt() { | |
//Other post types created above | |
// Quarterly post type | |
register_post_type( 'wpcandy_issue', | |
array( |