Support » Plugins and Hacks » [Plugin: WordPress Download Monitor] Syntax for default_order

  • I have the following in a page:

    [download_page pop_count=0 format=1 default_order=’date’]

    which works fine except it seems to be ignoring the default_order=’date’ command. I have tried all alternative formats to no avail.

    What have I got wrong. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • I figured it out finally, but not by using the shortcode.. 🙁

    In the plugin editor go to :
    wp-admin/plugin-editor.php?file=download-monitor/page-addon/download-monitor-page-addon.php

    Edit the default_order to be ‘DATE’, and the front_order to be ‘DESC’

    Here’s mine:

    function wp_dlmp_shortcode_download_page( $atts ) {
    
    	extract(shortcode_atts(array(
    		'base_heading_level' => '3',
    		'pop_count' => '6',
    		'pop_cat_count' => '7',
    		'show_uncategorized' => '1',
    		'per_page' => '20',
    		'format' => '',
    		'exclude' => '',
    		'exclude_cat' => '',
    		'show_tags' => '0',
    		'default_order' => 'DATE',
    		'front_order' => 'DESC'
    	), $atts));
    Jeroen

    (@jeroenonstenk)

    Wow! I’ve been searching for some hours for this solution. And finally its so simple to have download_page descending instead of ascending. Thnx happyches!

    I’ve added some ‘tags’ in this post, so others are able to find this solution easier…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress Download Monitor] Syntax for default_order’ is closed to new replies.