-
AuthorPosts
-
January 27th, 2014 at 18:03 #20733
Ben
I have a questions on the tempera theme. When you updated the theme you changed the functions.php file. I need to be able to custom sort my posts via each catergory. I had put that into the “functions.php” file but now that doesn’t work. I’m no developer so need it kind of simplified. Please help, thanks.
racingrivalsresource.com
I was using this
function foo_modify_query_order( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( ‘orderby’, ‘title’ );
$query->set( ‘order’, ‘ASC’ );
}
}to sort by time which sorted by time. Thanks.
January 28th, 2014 at 17:32 #20804Kay
Cryout Creations mastermindPlease use child themes http://codex.wordpress.org/Child_Themes and put your custom code into your child theme’s functions.php This way when the theme updates you won’t lose any customizations made. This is valid for all WordPress themes.
Before posting consider reading our short theme debugging instructions.
Please read the FAQs: Mantra • Nirvana • Parabola • Tempera
Tutorials: custom menus • translating theme • installing theme • category page with intro • disabling comments Wordpress: child themes • categories/posts
Before making any modifications to your theme we strongly recommend using Child Themes. -
AuthorPosts
The topic ‘custom sort, how to insert code.’ is closed to new replies.