This topic contains 2 reply and 2 voices, and was last updated by Tareq Hasan 5 years, 9 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
February 11, 2014 at 6:06 pm 15326
Tareq Hasan Hi, I am using your plugin for so users can submit their own fundraisers with the wpmu fundraiser plugin. Works very well. I want to allow the users to add manual pledges also so I need to create a new form where they can select the previous published post and then add data to custom fields. I am thinking I need to use an action hook for this post selector. SO they can choose their previous post to update. The code I can find so far is:


<?php foreach($funders as $funder) : ?>
<option <?php selected($post->post_parent,$funder->ID); ?> value="<?php echo $funder->ID ?>"><?php echo $funder->post_title; ?></option>
<?php endforeach; ?>
Any ideas? Thanks
February 13, 2014 at 9:01 pm 15419
ForestNation ForestNation

Ok, so there are two issues.

1. The post parent selector that I think I need to use the action hook for.

2. The meta values for the manual pledges are stored un one metakey as an array:
– Metakey name is “wdf_transaction” it stores array with following details:
gross
type
currency_code
first_name
last_name
payer_email
gateway_public
gateway
status
gateway_msg

Those meta values are attached to custom post type called “donation” that have post_parent configured as ID of fundraising that donation was for.

I have tried using an html field like this:
<input type="text" name="wdf[transaction][name]">

Doesn’t work either.

Any advice would be really appreciated.

thanks

February 14, 2014 at 2:01 am 15429
Tareq Hasan Tareq Hasan

For the first one, you’ll need to use action hook field.

For the 2nd one, perhaps this http://docs.wedevs.com/wpuf_add_post_after_insert/

Viewing 2 Posts - 1 through 2 (of 2 total)