custom sort, how to insert code.

  • Author
    Posts
  • #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.

    #20804
    Kay
    Cryout Creations mastermind

    Please 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: MantraNirvanaParabolaTempera
    Tutorials: custom menustranslating themeinstalling themecategory page with introdisabling comments Wordpress: child themescategories/posts
    Before making any modifications to your theme we strongly recommend using Child Themes.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘custom sort, how to insert code.’ is closed to new replies.