WordPress.org

Ready to get started?Download WordPress

Forums

EM Beer Manager
Widget Order by Title (2 posts)

  1. 509tyler
    Member
    Posted 5 months ago #

    Wondering if there is a quick fix for ordering the Widget output by Title instead of date. Or to add this choice to the widget options. If I can fix this I will post code back here so you can integrate into updated version. Great plugin.

    https://wordpress.org/plugins/em-beer-manager/

  2. 509tyler
    Member
    Posted 5 months ago #

    Actually you can just modify lines 170-172 of /components/widget-beer-list.php like this:

    $args = array (
    		'post_type' => 'embm_beer', 'orderby'=> 'title', 'order' => 'ASC'
    	);

    It would still be great to have this as a Widget Option

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.