Support » Plugin: BP My Home » Show / Organize My Favorites by Category

  • Resolved flintmark


    Is there any way to get the favorites / bookmarks to be organize by category? Something like:
    Category 1
    – favorite a
    – favorite b
    Category 2
    – favorite c
    – favorite d
    I know it is is some kind of function to get the category from the post, but I just can’t seem to figure it out. Any help is greatly appreciated.

Viewing 1 replies (of 1 total)
  • i guess.. but it will be wow !

    the function to modify is bpmh_bkmk_widget_my_bkmks() in the main file of the widget. It gets the user meta bpmh_bkmks_list which contains an associative array.

    So you’ll need to loop, check if url is one of your blog, then get the Post id from slug of url, then check for category, then build an associative array then sort it by category, then loop then display…

    Hope it helped.

Viewing 1 replies (of 1 total)
  • The topic ‘Show / Organize My Favorites by Category’ is closed to new replies.