Add terms to downloads shortcode

function sd_edd_downloads_shortcode_display_terms() { $post_id = get_the_ID(); // use “download_category” for categories and “download_tag” for tags the_terms( $post_id, ‘download_category’, ‘Categories: ‘, ‘, ‘, ” ); } add_action( ‘edd_download_after’, ‘sd_edd_downloads_shortcode_display_terms’ );Continue reading

Download count shortcode

// Optional attributs supported : id, offset function edd_download_count_shortcode( $atts ) { if( function_exists( ‘edd_get_download_sales_stats’ ) ) { $post_id = get_the_ID(); $a = shortcode_atts( array( ‘offset’ => 0, ‘id’ => $post_id, ), $atts ); $download_count = edd_get_download_sales_stats( $a[‘id’] ) +…Continue reading