WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: BuddyPress Links] Categories Filtering Not Working (5 posts)

  1. lameian
    Member
    Posted 4 years ago #

    the categories filtering is not working. i put all the links under 'OTHER'... however when i click 'technology'... all the links display too.... supposed theres no links under it.

    ref: http://do-did-done.com/home/links/

    please help, thanks

    http://wordpress.org/extend/plugins/buddypress-links/

  2. dperfect
    Member
    Posted 4 years ago #

    I may have found what appears to be a bug in the category filtering. For me, any category with an ID of more than one digit was not filtering (but showing all the links instead).

    To fix this issue, all you need to do is find the following line in bp-links-dtheme.php (under the 'bp_links_dtheme_selected_category' function, [line 233]):

    if ( isset( $_COOKIE['bp-links-extras'] ) && preg_match('/^category-\d$/', $_COOKIE['bp-links-extras'] ) ) {

    and change it to read:

    if ( isset( $_COOKIE['bp-links-extras'] ) && preg_match('/^category-\d+$/', $_COOKIE['bp-links-extras'] ) ) {

    That's right, just add a plus sign after 'category-\d'. This fixes the regular expression to match IDs with more than one digit.

  3. MrMaz
    Member
    Posted 3 years ago #

    Thank you. This fix will be in version 0.5.1

  4. dgraydesign
    Member
    Posted 3 years ago #

    Thanks for posting this fix!

  5. nunomad
    Member
    Posted 3 years ago #

    I tried this fix and nothing happened. Still doesn't work for us.

Topic Closed

This topic has been closed to new replies.

About this Topic