Is it possible to hide fields on the front-end/or edit HTML without javascript?
-
Love your plugin.
I’m trying to do the following things, but without much luck:
1. I have created some custom user fields, but some of them only need to appear on the registration page, and I don’t want them to be editable on the profile page afterwards.
2. I also have a custom field that I don’t want to display on front-end, not even on registration. But the administrator must be able to edit it.I managed to get this to work with some jQuery, hiding the fields, but I have a third use-case tat’s a bit more complex, so I’m wondering if there isn’t a way to somehow write a kind of template for how the form elements will look. Not only CSS-wise. Here’s an example of what I want to do:
3. Registered users can sign up for workshops. I created a custom post type called workshop. On the workshop page (blocked for guests) there will be a button to subscribe to a workshop. Behind the scenes, there is a text-field for every user containing a comma separated string containing the titles of the workshops the user has subscribed to. I created this text-field by WP-Members. Now my question is: how do I get the value from the text-field, so I can create a button, and secondly how would I update the text-field after the user clicks my button (= submits my form)?
- The topic ‘Is it possible to hide fields on the front-end/or edit HTML without javascript?’ is closed to new replies.