WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WordPress Download Monitor] Syntax for default_order (3 posts)

  1. stuartc63
    Member
    Posted 2 years ago #

    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

  2. happyches
    Member
    Posted 2 years ago #

    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));
  3. Jeroen
    Member
    Posted 2 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic