• Resolved sharpsagen

    (@sharpsagen)


    I want to add this code: add_filter(‘reorder_posts_within_category_initial_orderby’, ‘chronological_or_alphabetical_order’, 10, 3);
    function chronological_or_alphabetical_order($is_alpha, $post_type, $term_id){
    //$is_alpha is a boolean flag set to false by default.
    //$post_type for the current posts being ranked.
    //$term_id of the taxonomy term for which the posts are being ranked.
    return true;
    }

    but don’t know how to do it. Do I open the plugin and add it? But where. I’m not a coder.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    I want to add this code:

    that code will force the initial order to be ranked using the post titles rather than the post date.

    but don’t know how to do it. Do I open the plugin and add it? But where. I’m not a coder.

    Unfortunately there is no shortcut for non-coders to integrate this kind of custom functionality into their website. You will need to,

    As for the short answer, you need to add the code to your functions.php file.

Viewing 1 replies (of 1 total)
  • The topic ‘Automatically alphabetizing Student Memory posts’ is closed to new replies.