WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. flintmark
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/bp-my-home/

  2. imath
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.