Alphabetical order -> Speakers

Best WordPress theme for festivals or other events with responsive, clean and unique design.
GK User
Thu Jun 18, 2015 3:22 pm
Hi there,

is anywhere the option to order the Speakers alphabetically? Or do I only have the option to control this by setting different dates?

Many thanks!

Cheers Marcel
User avatar
Fresh Boarder

GK User
Thu Jun 18, 2015 10:04 pm
Hi,

Try to edit Fest/category-speakers.php file and change this line:
Code: Select all
$args = array( 'post_type' => $tmp['name'], 'posts_per_page' => 100 );

to:
Code: Select all
$args = array( 'post_type' => $tmp['name'], 'posts_per_page' => 100 , 'orderby' => 'title', 'order' => 'ASC');
User avatar
Moderator

GK User
Fri Jun 19, 2015 6:36 pm
Thanks for the quick reply, but it doesn't change anything. Even if I set the posts_per_page to 3, all speakers are displayed.
Any other Ideas?
User avatar
Fresh Boarder

GK User
Mon Jun 22, 2015 7:41 am
Could you please provide me your website FTP and back-end access via PM (click the “Private Message” text underneath my avatar) so that I may analyze it?
User avatar
Moderator

GK User
Mon Jun 29, 2015 1:07 pm
You didn't have speakers category (with speakers slug), you have bands category, so the category-speakers.php is not loaded.
I've duplicated this file and change the file name to category-bands.php, now should be ok.
User avatar
Moderator

GK User
Fri Jul 03, 2015 10:06 pm
Yeah! Works fine now! Thanks!
User avatar
Fresh Boarder


cron