Pods Form in Ultimate Member
-
Hello,
I have a website where I use custom posts to generate entries for units, microscopes and workshops. Now I want specific members of different units to be able to alter their entries. Therefore I use the Ultimate Member plugin.
There I put up a new tab which shows the form of a unit. I use the Pods form for this purpose inside the ob_start(), ob_end_clean():`ob_start();
$miap_unit = pods(‘miap-unit’, get_the_ID());
$fields = array( ‘unit-description’, ‘unit-news-title’, ‘unit-news’);
echo $miap_unit->form($fields);
$output .= ob_get_contents();
ob_end_clean();Each user can only alter one unit. However I get an error when I click the ‘Save Changes’ Button. This has something to do with the ob_start() function. When I put the same code before this function it works but then form ist above the tabs and not next to it. Any idea to fix that problem?
For the microsopces is is different. Here each user can alter several microscopes. Thus it should be possbile to select the microscope from a drop down box and then get the form with the details of the microscope.
Best regards,
ArneThe page I need help with: [log in to see the link]
- The topic ‘Pods Form in Ultimate Member’ is closed to new replies.