I wrote an article discussing some ways of using the plugin with WP users: Using Participants Database with WordPress Users
Thread Starter
gld
(@gld)
My friend, it’s not without reason that people consider you a genius. PERFECT! You saved me hours! Thank you for getting back to me SO fast and right on the money.
Thread Starter
gld
(@gld)
I’ve added your code to a new template.php and it works well. However how do I get it to take on the default site styling including the titles vs the fields?
The way to do this is to inspect the HTML on some other part of the site that has the layout you want. Then it’s a matter of editing your custom plugin template that outputs similar HTML.
If it’s a table-less design you’re looking for, I suggest you look at the “bootstrap” template to see another way of laying out the form.
Thread Starter
gld
(@gld)
Sorry, I think I;m still missing something. When I place the code [pdb_record] into a page, it inherits the styles of the current theme and formats it correctly. [pdb_record] includes headings (Participant Info, Personal Info etc) in addition to text.
When I build the ‘[pdb_record]’ with its parameters using php in the template, this seems to occur in such a way as it ignores the styles when it builds. If I add a ‘class=’ with style parameter with the [pdb_record] line, it applies this style to the whole [pdb_record] block including headings and text. In other words, I don’t seem to be able to ‘break in’ to [pdb_record] to format each of its lines.
You may need to do this in a custom template so you can add classes to individual elements if you want. The plugin attempts to let the theme style it’s output, but that doesn’t always work. Either way, you will need to create some custom CSS rules to get things looking the way you want.
Thread Starter
gld
(@gld)
No issue with doing that but my question is more that the plugin is accessed from the template page (just like from a WordPress page) via a single one-liner. Yet within the plugin’s returned results, multiple different styles need to be applied. That’s the bit I’m not clear about. I somehow need to not use the plugin tag but need to call various components of the plugin as I need to apply each different style to different components that the plug-in is returning. Does that make sense?
Thread Starter
gld
(@gld)
If I can have the plugin strip out the headings, and just return the results, that would be the biggest help to that end.
The “template” I’m talking about is the one that structures the output of the shortcode, so it does exactly what you want.
Read this article. it explains it in full: How to Create Custom Templates
Thread Starter
gld
(@gld)
xnau. Ah got it. It all makes sense now. Thank you for your patience. This is exactly what I was looking for.