19

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)

[DAPLoginForm]

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.

%%AFFDETAILS%%

This will be replaced by the entire Affiliate section from the default home page at YourSite.com/dap/ . Better suited for a Page.

[DAPUserProfile]

This will be replaced by the user profile from the default home page at YourSite.com/dap/. Better suited for a Page.

[DAPMyContent]

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/. Better suited for a Page.

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

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

%%USER_NAME%%

This will display the DAP user’s “Username” on the page.

%%USER_ID%%

This will display the DAP user’s ID on the page (ID is a number).

%%FEEDLINK%%

Replaces with user’s personalized RSS feed URL.

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

%%DAPCUSTOMFIELD_<insert-custom-field-name>%%

You can display the value of the user’s own custom fields on your pages, using a merge tag like this:

%%DAPCUSTOMFIELD_tax_id%%

In the above example, tax_id is the custom field that you have created in DAP. So if the name of the custom field in DAP were “ssn”, then the above merge tag would become %%DAPCUSTOMFIELD_ssn%%

[DAPUpline]

Displays data of the user’s “upline” affiliate.

[DAPComingSoon]

Displays upcoming drip-feed scheduled content.

[DAPRefAffId]

Displays id of affiliate who referred visitor to site. If no affiliate set, displays DAP Admin’s id.

[DAPShowTransactions]

Shows list of all transactions/orders by logged-in user.

[DAPUserSubscriptions]

Shows list of all subscriptions by logged-in user.

 

Click Here to Leave a Comment Below 19 comments
Chuck - February 17, 2010

how can i get these to work in sidebar widgets?

Reply
Dora Tarver - February 18, 2010

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

Reply
Holistic Divorce Coach - February 18, 2010

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

Thanks

Reply
Ravi Jayagopal - February 19, 2010

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

Reply
Ravi Jayagopal - February 19, 2010

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

– Ravi Jayagopal

Reply
Ravi Jayagopal - February 19, 2010

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

– Ravi Jayagopal

Reply
John - February 20, 2010

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

thanks
john

Reply
Ravi Jayagopal - February 20, 2010

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

Reply
Josh - March 29, 2010

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?

Reply
Josh - April 14, 2010

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

Reply
Josh - April 14, 2010

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

Reply
Ravi Jayagopal - April 14, 2010

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

Reply
Ravi Jayagopal - April 14, 2010

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

Reply
Josh - April 14, 2010

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.

Reply
Merge Tags for Email — DAP Documentation - May 24, 2010

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

Reply
Shawn - July 19, 2010

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.

Reply
Chad Carlton - July 25, 2010

Is there a way to modify or change the system error messages that will be displayed where we put the %%MSG%% tags?

Thanks,
Chad

Reply
Kirk Ward - December 13, 2011

@Shawn, take a look at the “Post Page Associator” plugin. It can be used to put excerpts from different posts on the same page.

By using that plugin, you MIGHT be able to use different posts to display different product details on the same page. I think there is another one that includes content from different posts on the same page. It may work if this plugin doesn’t. My thinking is that the posts will pull the details for the product in their own post. Then the two won’t be confused on the same page.

No gurantees, but that is the direction I would start in. Keeping them separately code wise (post wise) but having the content shown on the same page container.

Reply
Ian - August 3, 2012

Is there a way to display product price in content protected by DAP shortcode?

I am using shortcode [DAP isLoggedIn=”N” errMsgTemplate=”” ]…product description and buy button…[/DAP] as sales copy for a product. I would like to include the price using a merge tag in the product description.

I have tried using merge tag %%PRODUCT_DETAILS_%% but that seems to conflict with shortcode which is displaying the content.

I only need to display price, not all product details. Is there a merge tag or other solution to do this?

THanks in advance.

Reply

Leave a Reply: