/**
* Adds the ad meta in the loop after the ad title.
* @since 3.1
*
* @return void
*/
function cp_ad_loop_meta() {
global $post, $cp_options;
if ( is_singular( APP_POST_TYPE ) ) {
return;
}
?>
<p class="post-meta">
<span class="folder"><?php if ( $post->post_type == 'post' ) the_category( ', ' ); else echo get_the_term_list( $post->ID, APP_TAX_CAT, '', ', ', '' ); ?></span> | <span class="owner"><?php if ( $cp_options->ad_gravatar_thumb ) appthemes_get_profile_pic( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_email' ), 16 ); ?><?php the_author_posts_link(); ?></span> | <span class="clock"><span><?php echo appthemes_date_posted( $post->post_date ); ?></span></span>
</p>
<?php
}
add_action( 'appthemes_after_post_title', 'cp_ad_loop_meta' );
There are currently 1 users browsing this thread. (0 members and 1 guests)