June 2, 2015 at 1:49 pm 45944
|towhid||Hi, I've just purchased your plugin and am now in the process of setting it up for my website. I've created a form built up entirely of custom fields, which will generate a post. The goal is that members will receive an account, log in, fill out the form, and a post with their "profile" is created. I have added a class to each custom field. This works fine in the form itself, but the classes are not generated for the eventual post. It's just a UL with lots of LI items, none of which are given a class. There are two things I would like to know: - How can I add classes to the content of each custom field in the eventual post? - I would like to wrap combinations of some of the custom field content within a div as well. For instance custom fields 2 and 3 are wrapped within one div, custom fields 9,10 and 11 are also wrapped within one div. I tried by adding HTML custom fields, but since each custom field is generated within a list item, this does not work. How can I accomplish this? Thanks for the help! Regards, Boris Hoekmeijer|
June 2, 2015 at 5:07 pm 45973
I am not clear your question. Can you please make the question elaborate more. It will be good if you send me screenshot and code.
This will help me to attain a solution.
June 2, 2015 at 6:11 pm 45991
1. Consultant form backend
As you can see, I added classes to all of the custom fields in the back-end of the form (img 1). The classes work fine in the form on the front end (img 2), as you can see, I’ve made a lay-out using CSS there.
For the post that is generated with the form: You can see the backend (post edit, img 3), and the front-end (img 4). As you can see, the information is all there. But since the custom fields are generated as list items with no classes attached to them, I cannot do any styling with CSS. You can see the code of the post below. I want classes added to the list items on the post, so I can style them. Without that, the custom fields are useless. Is this more clear?
June 4, 2015 at 1:18 pm 46095
Perhaps you can make an updated plugin version with the generated post list items containing dynamic class names, or tell me where in the code I should add that.
Please let me know.
June 4, 2015 at 3:05 pm 46101
You can add the class for frontend post form, but not submitted a post.
Please, open wp-user-frontend/wpuf-functions.php and find below the line, where you need to customization code.
To attain that feature you need to customize by yourself or you can hire a developer.
June 4, 2015 at 4:37 pm 46123
are you serious? What is the point of this plugin if you cannot style the posts it generates? Can you at least tell me where I could add the classes to the custom fields of the post? Why is this so difficult?
June 4, 2015 at 6:15 pm 46148
I found in wpuf-functions.php where to add the classes. Can you tell me how I can add a dynamic class with the custom field name to the list item on line 660? You do the same for the back-end form, so I assume it is not that difficult?
June 4, 2015 at 6:51 pm 46152
I just managed to make it work ok by adding a li class called
June 5, 2015 at 5:15 am 46183
June 5, 2015 at 4:53 pm 46202
You might have told me this page exists: http://docs.wedevs.com/showing-meta-fields-in-frontend/, I’ve got it solved now.
June 6, 2015 at 12:40 pm 46256
Sorry for my inconvenience. Actually we are not available on Friday. Because Friday here is our weekend. You know, I had maintained communication throughout the day on Thursday. But as Thursday was our last day of office so you had missed my support on Friday.
If I maintain communication throughout the day in Friday than I can say I could understand your question clearly( on the basis of uninterrupted communication) and you would never get an ordinary answer from me.
I am really happy to know that you have solved the problem on yourself.
If you need any other help for me I am here to help you.
Thank you 🙂