How to show top selling items on EDD

By In Others — October 12, 2016

Use this query for showing top selling items.


<?php  $popular_items = new WP_Query (array(
	'post_type' => 'download',
	'orderby'   => 'meta_value_num',
	'meta_query'     => array(
		'relation' => 'AND',
			'key'     => '_edd_download_sales',
			'compare' => '>',
			'value'   => 0,
			'order'   => 'DESC',
	'posts_per_page' => 3
)); ?>

How to limit letter of WordPress post title

By In Code, Resource — October 14, 2015

How to limit letter of WordPress post title? Just replace this code

<?php the_title(); ?>

 with the following code.

<?php if (strlen($post->post_title) > 35) {
echo substr(the_title($before = '', $after = '', FALSE), 0, 35) . '...'; } else {
} ?>

This code is very helpful to limit WordPress post title.

How to show total Downloads in Easy Digital Downloads (EDD)

By In Code, Resource — October 13, 2015

Follow the below instruction to show total Downloads in Easy Digital Downloads (EDD).

Go to functions.php and paste this code:

function edd_count_total_file_downloads() {
    global $edd_logs;
    return $edd_logs->get_log_count( null, 'file_download' );

Then to bring it all together, you can get the total number of customers, products, and file downloads with the following PHP:

if ( class_exists( 'Easy_Digital_Downloads' ) ) {
	<span class="edd-customer-count">
		<?php echo edd_count_total_customers(); ?> Customers
	<span class="edd-download-count">
		<?php $downloads_count = wp_count_posts( 'download' ); echo $downloads_count->publish; ?> Products
	<span class="edd-file-download-count"><?php echo edd_count_total_file_downloads(); ?> Downloads</span>

Thank you for reading this.

20+ Best Free WordPress Blog Themes 2015

By In Free Themes — September 08, 2015

Best Free WordPress Blog Themes may help you awesome to build stunning WordPress blog website within short time just by few minutes installing. There are many Best Free WordPress Blog Themes, But I’ve collected most impressive free WordPress blog themes list. So choose one of best WordPress free theme from my list. Continue Reading

Shaped – Personal Responsive WordPress Blog Theme

By In Theme — June 18, 2015

Shaped is a Personal Responsive WordPress Blog Theme and will certainly take your fashion blog to the higher level. We spent many times in researching to form the best layout and how a fashion blog should look like and we believe this WordPress blog theme will be the right choice for your blog.  Continue Reading

Aitasi – Responsive WordPress Coming Soon Theme

By In Theme — June 17, 2015

Aitasi is a wordpress coming soon theme and stylish and well-designed theme apt for creating an Under Construction Page for your website. This simple and functional theme is built based on the latest Bootstrap technology. This theme is especially made for building landing pages, under construction, coming soon or small businesses sites. The theme is fully responsive, so you are Continue Reading

40+ Best Free (CC0) Image sources to use for any purpose.

By In Resources — June 17, 2015

Image is a very important element of our work. Sometimes, without images our projects remain unaccomplished. To magnify the beauty of the work we need high quality a image and if we get the image for free will not it be really nice to execute the project with less cost? If we want to use free images on commercial project without breaking copyright act, We have Continue Reading