BP My Home
[resolved] Show / Organize My Favorites by Category (2 posts)

  1. flintmark
    Posted 2 years ago #

    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.


  2. imath
    Plugin Author

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BP My Home
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.