How to create a table inside a post based on data entries
-
Hi,
I have created a form using an excellent plugin (Quform) and we need to customize a bit how the data appear inside the post.
I have been able to create an automatic post from data entries collected on a form on the front end.
So basically users submit a job mission, we review it and post it in our site.
Here’s the code used that we included on function.php as example:[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
The iphorm_x_x is the general form id and each value code id is designed by ‘iphorm_1_1’, ‘iphorm_1_2’ etc.
So for example the field job description corresponds to ‘iphorm_1_2’, skills ‘iphorm_1_3’ etc.I need help just with the style as we want to present the post generated in a form of table.
If we use the code above, all work fine, however the result is not clean. Content is displayed in a block with the title field and value.
I want something that looks a bit like this:
https://i45.tinypic.com/23thvvc.pngIdeally a way to add some div and style it. I know perfectly how to use CSS but I’m stuck with php.
THanks in advance for your precious help!
- The topic ‘How to create a table inside a post based on data entries’ is closed to new replies.