Merge Tags For WordPress Posts & Pages

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 ↓

#1 Chuck on 02.17.10 at 7:35 pm

how can i get these to work in sidebar widgets?

#2 Dora Tarver on 02.18.10 at 3:33 pm

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

#3 Holistic Divorce Coach on 02.18.10 at 4:55 pm

Hi, How can I add these shortcodes to a sidebar?

Thanks

#4 Ravi Jayagopal on 02.19.10 at 1:03 am

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

#5 Ravi Jayagopal on 02.19.10 at 1:03 am

Chuck, see above. Can’t do it yet.

- Ravi Jayagopal

#6 Ravi Jayagopal on 02.19.10 at 1:04 am

Sure, you can add additional text before or after the merge codes.

- Ravi Jayagopal

#7 John on 02.20.10 at 8:56 am

where can I find the merge tags so that I can edit the content ie : %%UNSUB_LINK%%

thanks
john

#8 Ravi Jayagopal on 02.20.10 at 2:40 pm

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

#9 Josh on 03.29.10 at 9:19 pm

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?

#10 Josh on 04.14.10 at 12:42 pm

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%%

#11 Josh on 04.14.10 at 12:45 pm

Actually, it looks like the problem is that %%FULL_NAME%% isn’t working. It WILL render multiple merge tags.

#12 Ravi Jayagopal on 04.14.10 at 12:55 pm

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

#13 Ravi Jayagopal on 04.14.10 at 12:57 pm

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

#14 Josh on 04.14.10 at 1:17 pm

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.

#15 Merge Tags for Email — DAP Documentation on 05.24.10 at 7:02 pm

[...] 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) [...]

#16 Shawn on 07.19.10 at 5:19 pm

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.

#17 Chad Carlton on 07.25.10 at 11:11 pm

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