I am trying to send a notification (either upon submission or when the post is moved from pending to published) that contains a link back to the site.
Here are the fields that will send:
any custom field from the post type
- post ID (both [wpv-post-id] or %%POST_ID%%
- post title (both types of fields)
- %%DATE_TIME%%
- Manually typing in a random URL like hidden link
But once I include a URL for our own site, it either fails to send or the field is left blank
Left blank but email still sends:
[wpv-post-edit-link]
[wpv-post-url]
Email fails to send:
%%POST_LINK%%
%%POST_ADMIN_LINK%%
manually typing in our URL (with or without the hidden link)
Hello. Thank you for contacting the Toolset support.
Well - I've just checked with my test installation and I've added the %%POST_LINK%% and %%POST_ADMIN_LINK%% to email body notification and when I submit the CRED form I can see both links are available in my email.
Please check following screenshot:
=> hidden link
What is your CRED email notification configuration?
The notification is set to email when submitting this form, to both a WordPress user and to a specific email address. The email is set to come from info@ourdomain.org Name: Our Domain. (Although I can confirm I get the same results by leaving those fields blank for default.)
The body of the email is as follows:
Details:
[types field='q-sumitter-name'][/types][wpv-conditional if="( $(wpcf-q-behalf-of) ne '' )"], on behalf of [types field='q-behalf-of'][/types],[/wpv-conditional] just submitted the following question: [types field='q-question'][/types]
[wpv-post-edit-link text="Click Here"]
All but the post-edit-link work.
(Same set up, if I use %%POST_LINK%% no email gets sent.)
Well - this is strange as I do not able to reproduce the issue and I shared my email screenshot but my post body was not using [wpv-conditional] shortcode.
What if you try to use simple email body - just add fields and check if that works.
I get the same results without a conditional. I suspect it has to do with the hosting of this particular account (since I can include other URLs, just not my own.) I'm helping out with this site, it's not under my regular hosting - it is a 'managed install' by GoDaddy - so I'll check in with them and see if maybe the error logs can help.