Support » Plugin: WP-Members: Membership Framework » [Plugin: WP-Members] Add birthday and set class on body on blocked pages?

  • rwlinda


    Hi there,

    Even though I’ve browsed through all pages in this support section and read the Quick Guide and Complete Guide, 3 questions remain.

    1. I’d like to have users add a birthday, so for example, I can create a page with upcoming birthdays. How do I set this up when creating a new custom field?

    2. The sidebar on the blocked pages are still visible. Is there a way to add a class to the body of the blocked pages, so I can use css to make sure the sidebar isn´t being displayed?

    3. I’d like to create a page with a list of members (there should be 3 categories, which I haven’t set yet, but I believe are possible with this plugin?). On this page I’d like to display an avatar, name and category the person’s in.

    Sorry about the large amount of questions, but hopefully someone can help out or point me into the right direction. Thanks.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler


    Hi Linda – with the volume of requests I get, I just don’t have the time to get into specifics of this magnitude anymore – that’s what I set up the support site for.

    There would be a few possible approaches with varying degrees of complexity to adding a birthday field. You could add a single field, but you would need to be adept at writing some validation code using the plugin’s filter/action hooks to validate that you are getting data in the form you want it (such as dd/mm/yyyy). Alternatively, you could use drop downs for month, day, year but you’d still want to use the form filter hook to filter the form layout and get them to display next to each other.

    On the question of the sidebar, the plugin blocks the contents of the WP variable $content (which is the content of the post/page). The sidebar is something else altogether. The process of blocking items from view would be similar to how I have described it for displaying menus based on login status in this post: (this is a free post on that gives you some idea of the tutorials and code samples available). It would be a little more advanced in that you would probably want to show some widgets if the user is not logged in (such as the widget to login). You can also use the logged in/out shortcodes in sidebar widgets, but that doesn’t block all the widgets all together, that’s more for working within a text widget.

    On the last question, while there is the ability to display user data using the “field” parameter of the [wp-members] shortcode (described in the user guide here:, that doesn’t function as to display a list of users. This is some functionality that is actually on the project list for a future release and as currently planned, will come in the form of a shortcode. (At present, that is in the 2.9 feature release – the 2.8 version in development is an overhaul of the admin panel.)



    Hi Chad,
    Thanks for getting back to me! I can imagine you get overloaded with questions and do appreciate your reply.
    Can’t wait for the shortcode to display members tho 😉

    Again, thanks and good luck with expanding the features of this plugin.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-Members] Add birthday and set class on body on blocked pages?’ is closed to new replies.