• hi to all,
    i want to maintain the society member’s directory on wordpress based website. i checked many plugin, but i am not satisfy with their functionality.

    i want to make in manually. a little sketch in my mind is like this, but something is missing as conclusion.

    1. make a table in database,
    2. create custom page with fields.
    BUT
    i dont know how to display each member record in directory form on one page.

    can someone help me in this regards ?
    if something is missing in my explanation, do let me know, i will update you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    Why not use the built in User functionality? You do not need to grant them an special capabilities. You can add more fields to the new user form and store the data in usermeta. This way, the display of member records is done for you with the Users admin panel. You can add more columns to display custom data if need be. You can filter by member role so the view is only for members and not normal WP users.

    If you do choose to do your own table and input form, you can still use the same table structure used to display much of the WP data. This involves extending the WP_List_Table class. Examine how this was done for WP users in the wp-admin/includes/class-wp-users-list-table.php file.

    Or you could simply go it alone and generate your own HTML table after querying your DB table for member records. Loop through each record and output the needed HTML and content for each table cell in turn.

    Thread Starter muhajirkhan

    (@muhajirkhan)

    nay, i want to put the member data myself, its not related to registerd user.
    its a different Directory style , where only registered users of website can view the Directory.

    can you give me any url about this. i am newbie on WordPress.

    Moderator bcworkz

    (@bcworkz)

    Unfortunately, there’s little on using WP_List_Table in the Codex. Try reviewing this page about the posts table. Even though it is for posts, a very similar process is used for users and what you want to do for members. Explore the various links as well. Also try searching the ‘net at large using some of the filter and action tag names you find, I believe there are better written articles out there, but I don’t have direct links for you.

    Being new to WP, you need to know how to hook into filters and actions, it is the primary method of extending WP functionality. If you haven’t already, review the Plugin API. The custom column stuff is a good example of using hooks.

    This is all background information though, as you are not adding custom columns, you are creating a whole new custom list table. For this, the source code of WP_Users_List_Table class is your best resource, as you are doing the same thing, except the data source is different, as well as the columns in the table.

    OTOH, since this data really is unrelated to WP, you could simply generate your own table from scratch. Still, reviewing how the WP_List_Table class builds a generic table might be instructive.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘want to create member directory’ is closed to new replies.