jerodbarlow
Forum Replies Created
-
Yes as I implemented an exit pop-up, which includes the form and is customizable on a page-by-page basis (with the ACF fields containing default values), so in this example it’s pulling in the current post’s ACF value.
However, you can specify a specific post to pull from by adding that to this line:
$acfdata = get_field(‘ACF_FIELD_NAME_GOES_HERE’);
E.g. $acfdata = get_field(‘ACF_FIELD_NAME_GOES_HERE’, POST-ID-GOES-HERE);
More Info on this here: https://www.advancedcustomfields.com/resources/get_field/You could also potentially just create an ACF field and apply it to every page with a default value for that URL, which could be more flexible.
Actually, I just figured out a solution that worked pretty well for me.
1. Added a field to ACF where my client can paste in the final confirmation URL.
2. Added the following to my functions.php file:function de_gforms_confirmation_dynamic_redirect( $confirmation, $form, $entry, $ajax ) {
if ( $form[‘id’] == ‘ID OF FORM GOES HERE’ ) {
$acfdata = get_field(‘ACF_FIELD_NAME_GOES_HERE’);
$confirmation = array( ‘redirect’ => $acfdata );
}return $confirmation;
}add_filter( ‘gform_confirmation’, ‘de_gforms_confirmation_dynamic_redirect’, 10, 4 );
Would love to know if you found a solution for this as I need the exact same functionality.
- This reply was modified 7 years, 11 months ago by jerodbarlow. Reason: subscribing
Thanks Rashmi!
This worked perfectly. Thank you so much for the quick response!
For the record, I understand why this wouldn’t have been in past releases and can imagine why most don’t need the feature. My client was asking for this feature, because they want to use the total row to double-check their order fulfillment.
Jerod
Hey guys,
Were you able to solve this? I’d love this feature as well!
Forum: Fixing WordPress
In reply to: wp-feed.phpHi Sam,
I can’t remember/find the exact code that we removed, but it was found in our functions.php file in the theme, and I’m pretty sure the inflicting code was output and visible on the front-end in the source code of our site.
Hope that helps!
Jerod
Forum: Fixing WordPress
In reply to: wp-feed.phpHi James and Rik0399,
We’ve recently discovered this is adware on a site we operate but are having a hard time finding the code responsible. What we do know is that this little bug basically creates the wp-feed.php file and blacklists any IP address that is tied to a logged-in user. So if you log into WordPress on your site, you will no longer see the spam ads.
However, IP addresses that have never logged into the site will definitely receive the ads and will sometimes be redirected off the site altogether.
Just thought I’d post in case you guys are able to find the root code responsible. We’re working through our files now hoping to solve the problem.
Jerod
Forum: Plugins
In reply to: [ShipWorks Connector for Woocommerce] Sending tracking ID to WoocommerceHi,
I have the same need. I installed the shipment-tracking plugin and still am not seeing the tracking information other than in the order comments. Is there some other configuration needed to make this automatic?
Thanks in advance!