Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display specific profile fields

  • @snails07

    Participant

    I am setting up a business type directory using BP. When a user signs up, they are required to choose which category their business falls under by using a drop-down select box.

    So say that I have 5 categories, I want these 5 categories displayed as links on the directory homepage so that when a user clicks on a category, they are taken to a page that displays only the members of that category.

    I’m very new to BP but have been using and modifying WP for a while so I am comfortable going in to change the code. Just don’t know what I need to change.

    Cheers

Viewing 7 replies - 1 through 7 (of 7 total)
  • @snails07

    Participant

    I’m just thinking that the categories that I set will be stored in a database so to display these categories I will have to reference the database or something?

    @chouf1

    Participant

    open bp-themes/bp-default/members/members-loop.php

    instructions for what you need are line 42

    @snails07

    Participant

    That works to display the Category field beneath each members profile on the members page, but what I am wanting to do is to set up a separate page that just contains links to the categories. And once these categories are clicked, then the user is taken to the page that will display all of the members in the chosen category.

    I’m guessing it would be something like

    <?php bp_get_the_profile_field_name( ‘field=Category’ ); ?>

    Any ideas?

    @snails07

    Participant

    Anybody?

    @mrjarbenne

    Participant

    You could use the Custom Profile Filters for Buddypress plugin. I know it’s not exactly what you are looking for, but it would enable you let your users identify themselves in one of your 5 categories, then that word they have selected will become a link that will take them to a page will all of the other users who also selected that category.

    Perhaps this plugin will give you the building blocks you need to create the solution you need.

    https://wordpress.org/extend/plugins/custom-profile-filters-for-buddypress/

    @gregfielding

    Participant

    @snails07

    I’ve been looking for something like this too…from what I can tell in these forums, nothing exists that will work. The plugin is this one https://wordpress.org/extend/plugins/bp-member-filter/

    But, it doesn’t work with current MU or BP versions.

    In theory, this could enable search menus for members by any profile fields…location, profession, hobbies, etc.

    @snails07

    Participant

    Yeah just tried it out and doesn’t work.

    I’m just going to go with hardcoding a link like <a href="http://domain.com/members/?s=General">General</a> which will return the results. Not ideal but it will have to do me for now I’m thinking.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display specific profile fields’ is closed to new replies.
Skip to toolbar