WordPress.org

Support

Support » Plugins and Hacks » Widget – change list display from latest to newest. Is it possible?

Widget – change list display from latest to newest. Is it possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Seconding this question. Tried changing things in class.wp-publication-archive.php to no avail.

    SEems like there’s something very easy that I’m missing. I’d appreciate any help!

    I wanted this as well and have just hacked the wp-publication-archive/lib/class.publication-widget.php file.

    Changed the code from

    if ( isset( $instance['orderby'] ) ) {
    			$query_args['orderby'] = $instance['orderby'];
    		}

    to

    /*	if ( isset( $instance['orderby'] ) ) {
    			$query_args['orderby'] = $instance['orderby'];
    		}*/
    $query_args['orderby'] = 'post_date';
    $query_args['order'] = 'DESC';

    Obviously only a temporary hack, maybe a better coder could integrate it into the plugin to get it working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Widget – change list display from latest to newest. Is it possible?’ is closed to new replies.