Title: Automatically alphabetizing Student Memory posts
Last modified: June 29, 2020

---

# Automatically alphabetizing Student Memory posts

 *  Resolved [sharpsagen](https://wordpress.org/support/users/sharpsagen/)
 * (@sharpsagen)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/automatically-alphabetizing-student-memory-posts/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautomatically-alphabetizing-student-memory-posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/automatically-alphabetizing-student-memory-posts/#post-13052665)
 * > 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,
    - hire a coder to do it, or….
    - get your hands dirty and start coding! I recommend you read through this tutorial
      to understand [how to use hooks & filters in WordPress](https://docs.presscustomizr.com/article/26-wordpress-actions-filters-and-hooks-a-guide-for-non-developers).
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/reorder-post-within-categories_c18d38.
   svg)
 * [ReOrder Posts within Categories](https://wordpress.org/plugins/reorder-post-within-categories/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/reorder-post-within-categories/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/reorder-post-within-categories/)
 * [Active Topics](https://wordpress.org/support/plugin/reorder-post-within-categories/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reorder-post-within-categories/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reorder-post-within-categories/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/automatically-alphabetizing-student-memory-posts/#post-13052665)
 * Status: resolved