Here are the merge-tags that you can use in your WP posts, and what they mean. (Click here for merge tags for Autoresponder & Broadcast Emails)
%%LOGIN_FORM%%
This is better suited for a WP “page”. This text will be replaced by a login form using which your members can log in to your membership site.
%%SALES_PAGE_URL%%
This text in your blog post/page content, will be replaced by the “Sales Page URL” field from the Products page.
%%AFFDETAILS%%
This will be replaced by the entire Affiliate section from the default home page at YourSite.com/dap/
%%USERPROFILE%%
This will be replaced by the user profile from the default home page at YourSite.com/dap/
%%USERLINKS%%
This will be replaced by the user links section (the list of what products and what links user currently has access to) from the default home page at YourSite.com/dap/
%%FIRST_NAME%%
This will be replaced by the first-name of the user.
%%EMAIL%%
This will be replaced by the email id of the user.
%%MEMBER_HOME_PAGE%%
This will be replaced by whatever is in “Config > Advanced > URL of your User-Profile page”
%%AFF_LINK%%
This will be replaced by the raw affiliate link of the member. If you want it to show up as a link in your blog post, use it like this:
<a href=”%%AFF_LINK%%”>%%AFF_LINK%%</a>
%%MSG%%
1) Create a WP “page” with the slug “error”, and it can be accessed at http://YourSite.com/error/
2) In the body of the page, put the text %%MSG%% – followed by whatever copy you want.
3) Enter the URL from Step #1 on your “Products” page, in the field “Error Page URL”
4) Logout of DAP, and log back in for the changes to take effect.
Impact: When someone tries to visit a link that has expired, or a link that they don’t have access to, they will be redirected to the above URL, and the system error message will be shown where you put in the merge code %%MSG%%.
%%PRODUCT_DETAILS_<insert-product-id>%%
Replaces merge tag with Product-specific details (including links available to the member as part of that Product) on a specific WordPress page/post.
17 comments ↓
how can i get these to work in sidebar widgets?
Mya I change “%%SITE_URL_DAP%%” to read
“%%SITE_URL_DAP%%/coaching”? Users login on the coaching page, not the site URL.
Thank you,
Dora
Hi, How can I add these shortcodes to a sidebar?
Thanks
You can’t use the shortcodes on the sidebar – yet. But that’s a great idea, and I have noted it down for a future release.
- Ravi Jayagopal
Chuck, see above. Can’t do it yet.
- Ravi Jayagopal
Sure, you can add additional text before or after the merge codes.
- Ravi Jayagopal
where can I find the merge tags so that I can edit the content ie : %%UNSUB_LINK%%
thanks
john
John,
I don’t understand what you wish to edit. If you put %%UNSUB_LINK%% in your emails (see templates screen), then it will be replaced by the unsubscribe link. If you remove it, it won’t be.
So is it the “Templates” screen you’re looking for (see Email Footer)?
- Ravi Jayagopal
Ravi, I have a plugin that will run PHP code for me.
What’s the proper syntax to execute these marge tags in PHP code?
When I try to use multiple merge tags in a WP post, the first tag renders correctly but the second one does not. For instance,
%%FIRST_NAME%% %%LAST_NAME%%
Yields:
Josh %%LAST_NAME%%
Actually, it looks like the problem is that %%FULL_NAME%% isn’t working. It WILL render multiple merge tags.
Josh,
There is no such tag as %%FULL_NAME%% in DAP. You should use %%FIRST_NAME%% %%LAST_NAME%% if you want the full name.
- Ravi Jayagopal
Josh,
Take a look at the DAP-WP-LiveLinks.php file. That has the code for converting merge tags in normal, non-WP php code.
Unfortunately, we are unable to support custom PHP coding at this time. You will have to figure that out from the above file.
- Ravi Jayagopal
My apologies Ravi. It was actually %%LAST_NAME%% that I was referring to. FULL_NAME was just something I tried.
So, %%FIRST_NAME%% works fine, but %%LAST_NAME%% isn’t working.
[...] Here are the merge-tags that you can use in outgoing autoresponder and broadcast emails sent through DAP. (Click here for merge tags you can use in your WordPress blog posts/pages) [...]
It would be great to have the ability to have two different products display on one page using the merge tag %%PRODUCT_DETAILS_%% especially now with the use of product chaining. I’ve been able to get one to display but not two on the same page.
Is there a way to modify or change the system error messages that will be displayed where we put the %%MSG%% tags?
Thanks,
Chad
Leave a Comment