Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author akyusa01

    (@akyusa01)

    You could try to edit the template-cr3ativspeaker.php and change this:

    $wp_query->query('post_type=cr3ativspeaker&posts_per_page=999999');

    to this:

    $wp_query->query('post_type=cr3ativspeaker&posts_per_page=999999&orderby=title&order=ASC');

    Thread Starter Hudson Phillips

    (@harbormark)

    This would affect the sidebar widget?

    Plugin Author akyusa01

    (@akyusa01)

    No – this would only affect the template, the sidebar drag/drop widget is a separate loop.

    Thread Starter Hudson Phillips

    (@harbormark)

    Understood. My question was about the widget.

    Plugin Author akyusa01

    (@akyusa01)

    Sorry, to change the widget, you would basically have to hack the plugin. Which you can certainly do, but then if we update the plugin, you will loose any changes you make to the widget.

    If you still want to change the loop on the widget, then you would need to edit the speaker-widget.php located in the includes directory.

    The loop for that looks something like this (towards the bottom of the file):

    global $post;
    
    		$args = array(
    		'post_type' => 'cr3ativspeaker',
                    'order' => $orderby,
                    'posts_per_page' => $itemstodisplay
    		 );
    
                    query_posts($args);

    You could just add the orderby to it to make it look like this:

    global $post;
    
    		$args = array(
    		'post_type' => 'cr3ativspeaker',
                    'order' => $orderby,
                    'posts_per_page' => $itemstodisplay,
                    'orderby' => 'title'
    		);
    
                    query_posts($args);
    Thread Starter Hudson Phillips

    (@harbormark)

    Okay thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Speaker Loop’ is closed to new replies.