one3rdnerd
Forum Replies Created
-
I solved it. I must have changed my field name.
The above works for anyone else who wants to do this.
Just change your field name from organisers_email to whatever you create in ACF.
I found what I think is the solution but so far haven’t been able to get it to grab the email address from an ACF options field with the below:
/** * Register the Smart Tag so it will be available to select in the form builder. * * @link https://wpforms.com/developers/how-to-create-a-custom-smart-tag/ * */ function wpf_dev_register_smarttag( $tags ) { // Key is the tag, item is the tag name. $tags['xorganisers_email'] = 'Organisers Email'; return $tags; } add_filter( 'wpforms_smart_tags', 'wpf_dev_register_smarttag' ); /** * Process the Smart Tag. * * https://wpforms.com/developers/how-to-create-a-custom-smart-tag/ * */ function wpf_dev_process_smarttag( $content, $tag ) { // Only run if it is our desired tag. if ( 'xorganisers_email' === $tag ) { $theemailx = get_field('organisers_email', 'option'); // Replace the tag with our link. $content = str_replace( '{xorganisers_email}', $theemailx, $content ); } return $content; } add_filter( 'wpforms_smart_tag_process', 'wpf_dev_process_smarttag', 10, 2 );The above option appears in WPForms as a smart tag but it’s not grabbing the email address from the field.
Any ideas what I could be doing wrong?
- This reply was modified 5 years, 4 months ago by one3rdnerd.
Forum: Plugins
In reply to: [WooCommerce] leave site? changes you made may not be saved.Same issue for me on a WordPress multisite on 5.6.1
Thanks. I will do that.
Ah thank you. Yes deactivating and reactivating the plugin removed it, but here’s a screenshot of what it looked like.
Forum: Plugins
In reply to: [Smart Online Order for Clover] Site Health IssuesHello,
What makes you think it was resolved? I haven’t had a response until now?
Thanks
Correct, they see it there and think it’s been hidden from them as it’s an issue but can’t be fixed. So it looks bad. But I have shown them that the site can be indexed by showing them Google, Google Search Console etc but it still comes up and leads to them second-guessing my abilities.
Having an option to remove it entirely would be great.
Thanks
Thank you for that. I will try adding it to the main sitemap and see how that works out.
Yes but if I have created a Ryte account and done a full scan without any indexation issues, it’s strange if it was relating to Ryte not being able to crawl the page as my Ryte report shows it can.
I tried toggling it off and on but that didn’t make a difference.
Yeah I just mean it stays wherever I have left it. Whether that’s hidden or not it stays as it was.
But this means my client can find it and ask about it again so hoping I can solve the issue with it failing to check properly.
Is there a way to flush it so it tries to check again?
Under site health there are 2 critical issues
1) The REST API encountered an error
The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.The REST API request failed due to an error.
Error: [] cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received2) Your site could not complete a loopback request
Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.The loopback request to your site failed, this means features relying on them are not currently working as expected.
Error encountered: (0) cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes receivedI used the troubleshooter and it was fixed so I turned plugins off one by one and found the culprit “Smart Online Order for Clover”
I have contacted their plugin devs on https://wordpress.org/support/topic/site-health-issues-3/ to see if they can reproduce the issue.
Turning this plugin off doesn’t remove the indexing error message under Yoast but then I don’t know where the check status button is to ask it to re-check.
I did sign up for Ryte and ran a report and indexability was perfect.
Thanks
Hi Michael,
Thanks for your reply.
The only changes I have made in the last few months are updating all of the plugins.
I can confirm everything is on the latest version.
I can’t seem to think of or see anything that could be triggering the message to show. I have set it to hidden but it is still there for my client to see if they want and they have done that and asked about it 2 or 3 times in the past 2 months.
This website is pretty much a carbon copy of the last 100 or so sites I built as they all use the same recipe of plugins/theme etc. So I can’t see any difference between this site and everything else.
Thanks
It’s not about disregarding it, it’s about my client being pedantic and bringing it up every few weeks, forgetting that it’s a false positive.
How can I prevent it from showing? or is my only option to deactivate Yoast and find an alternative plugin that’s less troublesome?
Forum: Plugins
In reply to: [Better Search Replace] Decrease Max Page, or Contact SupportA workaround I found was to downgrade the server PHP version, run search and replace and then upgrade PHP to 7.2 or 7.3 again.
Going back to 7.1 temporarily will solve the problem.
Forum: Plugins
In reply to: [Better Search Replace] Error when attempting search and replaceA workaround I found was to downgrade the server PHP version, run search and replace and then upgrade PHP to 7.2 or 7.3 again.
Going back to 7.1 temporarily will solve the problem.