Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i am using this nice plugin (wordpress download monitor), nice feature. i have a one problem, there is category download section, actually i want to display thumbnail instead of "post title" please have a look at screenshot

here is the code of this section ..

 $page .= do_shortcode('[downloads query="exclude='.implode(',',$exclude_array).'&limit='.$pop_cat_count.'&orderby='.$front_order.'&order=desc&category='.$cat->id.'" wrap="" format="'.htmlspecialchars(str_replace('{url}',wp_dlmp_append_url('did=').'{id}',$format)).'"]');
                $page .= '</ol>'; 

there is a featured download section above this section, i want to display category section same above section

here is the featured section code

 $page .= '<li class="'.$alttext.'"><a href="'.wp_dlmp_append_url('did='.$d->id).'" title="'.$version.' '.__('Downloaded',"wp-download_monitor").' '.$d->hits.' '.__('times',"wp-download_monitor").'" ><span><img src="'.$thumbnail_url.'" class="download-thumbnail" alt="'.strip_tags($d->title).'" /></span></a><div class="toolsd"><span class="rapid"><a href="' . get_permalink($post->ID) . '" class="linkcara"><span>' .strip_tags($d->title). '</span></a></span><span class="arrow"></span></div></li>';

for more info about plugin click here.

share|improve this question

1 Answer 1

You need to look at the format documentation and define the format that you want to use. Once you've defined the format it's a simple matter of using it either via shortcode or within PHP.

If you're using a do_shortcode call then you need to use
do_shortcode('[downloads format="format_name" ...);.

With ... being the remainder of your code.

You can find more answers at Mike's site, he has a clear set of documentation.

And yes, it is a great plugin.

share|improve this answer
    
@Thnks Stephen!! for reply.. but i couldn't find this thing –  Nisha_at_Behance Nov 16 '12 at 15:00
    
You need to look at the format documentation and define the format that you want to use. Once you've defined the format it's a simple matter of using it either via shortcode or within PHP. –  Stephen Nov 16 '12 at 15:03
    
i create custom format ($thumbcate) in wp-admin/admin.php?page=dlm_config&action=formats... i create this <a href="{url}">{thumbnail}</a> but thumbnail not showing... –  Nisha_at_Behance Nov 17 '12 at 7:44
    
If you're using a do_shortcode call then you need to use do_shortcode('[downloads format="format_name" ...); With ... being the remainder of your code. –  Stephen Nov 17 '12 at 13:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.