How to group the names.


  • QA Engineer

    I need to add a lot of authors with the same name and then group them by name. Grouped by help

    add_filter('posts_groupby', 'author_groupby');
    

    Well, the function itself.author_groupby

    function author_groupby()
    {
        return 'post_title';
    }
    

    Couldn't tell us what and how to write to the functions, that the group would be on the name of the record, but the text came out of all the records.



  • Anyway, I think it's a lot easier to do, because I don't have a panic, I just wrote a violin on Jquery, which hides blocks I don't need.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2