Display Custom Fields ABOVE Post Body
Author | Posts |
---|---|
November 27, 2014 at 4:02 am 31268 | |
Hello I have built a form that includes custom fields such as "Textarea" "Dropdown" and "Image Upload". My problem is that when a user submits a post using this form, the custom field metadata is displayed BELOW the post body at the bottom of the page. This does not suit my needs. See example: http://artscouncil.mb.ca/?p=25224 I would like to display custom field data above the post body and after the title. I have looked through the php, but I cannot seem to make sense of where the meta data is being laid into the post. I have figured out how to get text based meta data (textarea and dropdowns, etc.) to display where I want it in the content.php file, but not images, nor can I remove the wpuf data from under the post. Can you please help? | |
November 27, 2014 at 11:20 am 31280 | |
Hello Matthew, I have assigned this issue to our developer team. Hope I will be back to you with a right solution. Thank You 🙂 | |
November 28, 2014 at 11:15 am 31322 | |
Hello Matthew, No need to edit the content.php file. You will see ‘CSS Class Name filed’. This filed is for write your own css and you can manage whatever you want. Thank You. 🙂 | |
December 1, 2014 at 11:09 pm 31520 | |
You cannot use CSS alone to change where custom fields are displayed in a post. I had to assigne each custom field a META KEY, then go into the content.php and input custom code to get that field to display where I want it in the post. For example, I have a custom field that asks the user for a phone number. I assiged that field a meta-key of “phone_number” and then inserted this PHP code into content.php above the code that generates the post-body but below the code that generates the post-title:
This displays the phone number below the title, but the custom field is still visbible in its original position below the post-body. To remove it, I have to use custom CSS to the custom-field. This is a really REALLY complicated work around. Why are custom fields displayed at the bottom of the post? Why are they not displayed in the order that they appear in the form? Can you recommend a better way for me to do this? Thank you. | |
December 12, 2014 at 11:57 am 32189 | |
I’m very interested in a solution to this problem. I want to do exactly the same thing. I actually would want to put them in a table with the meta label and the meta value in 2 columns to format it to match my theme. Thanks | |
December 13, 2014 at 1:13 pm 32239 | |
Hello Hassane, I have forward this issue to our developer team. They are trying to figure out a way. Hope I will back to you a right solutions. Thank You 🙂 | |
December 14, 2014 at 3:57 pm 32293 | |
Hello Hassane, Please open Hope you understand. Thank You 🙂 | |
December 15, 2014 at 5:32 am 32309 | |
I was able to get it done.
Thanks, | |
January 18, 2015 at 5:14 pm 34447 | |
Hi, Hassane’s workaround doesn’t work for my form, it just ends up hiding images uploaded via the form. I’ve taken a look at wpuf_show_custom_fields but must admit the code is beyond my limited coding abilities! Is there no simple way to display a form in the order in which you create it in the edit stage? Thanks, Tom. |