-
Hi,
Been at this with Claude and chatgpt sometime, no joy.
Trying to pull custom field aff urls into a Q.L, this is what i did.
Added new custom field – affiliate_url , and value to affiliate_url = https://affurl.com or just https://affurl.com
I click on headline clock which says Try now, select a dynamic tag – post meta, source – current post, link to – post meta, meta key – affiliate_url and insert but not happening, page url in box. Thanks if u know the problem,
-
Hi there,
What is the return format you set for the field? Can you make sure it’s returning the URL?
-
custom field name – affiliate_url
custom field value – https://affurl -
Can you try setting the text block’s HTML tag to
<a>instead of<p>?
If it doesn’t work, can you remove the current text block and add a new text block to test? -
Wp native fields
-
Can you check my reply (I edited it, not sure if you saw it):
https://generate.support/topic/linking-q-l-try-now-headline-button-to-a-posts-custom-field-affiliate-url/#post-200227 -
Hi Ying,
I tried swapping p with a in html, no joy, problem mssg.
“If it doesn’t work, can you remove the current text block and add a new text block to test?”
Tried, no joy.
-
It looks like the link is already added.
Can you provide an admin login so I can check the backend? -
rob33
Hi, details below
-
The password is incorrect, can you check?
-
rob33
New pass below
-
George
Hi there,
Currently ACF seems to be deactivated from your plugin list. Are you trying a different solution?
-
rob33
Hi, Ying asked and I wasnt using ACF but downloaded it anyway to look at. She didnt advise to use it.When activated I cant see my wp custom fields so disabled it. I am currently building more WP custom fields.
-
George
Hi there,
Thanks.
I tried to get into the backend but it looks like you’re currently editing the post, so I couldn’t open it. Let me know once you’re out and I’ll take another look.
In the meantime, a couple of things would help me pin this down:
- A screenshot of the Text block’s Link settings on one of the “Try now” items — specifically the “Link to” option and the dynamic tag setup.
- Can you confirm the actual value stored in the
affiliate_urlfield on the post you’re testing? You mentionedhttps://affurl— I want to make sure that’s a full URL and not truncated. - Just to confirm — is the dynamic tag on the same “Try now” block that shows on the live page, or a different element?
-
rob33
Hi, yes editing now, I’ll come out for a bit.
A screenshot of the Text block’s Link settings on one of the “Try now” items — specifically the “Link to” option and the dynamic tag setup.
– attachedCan you confirm the actual value stored in the affiliate_url field on the post you’re testing? You mentioned https://affurl — I want to make sure that’s a full URL and not truncated.
– I am using full affiliate urlsJust to confirm — is the dynamic tag on the same “Try now” block that shows on the live page, or a different element?
– Yes it is. -
George
Hello,
The problem is how the dynamic tag was entered — right now the block content reads:
Try{{post_meta link:post_meta,affiliate_url}} nowThe tag is typed directly into the text as plain text, so it’s not resolving — which is why the link comes out empty on the live page.
Dynamic tags only work when inserted through the dynamic data control (the database icon in the block toolbar), not typed in by hand.
For the “Try now” button, you want:
- Text content: just the words
Try now(plain text, no tag). - Link: open the Link setting and insert the dynamic tag there —
{{post_meta link:post_meta,affiliate_url}}belongs in the link field, not mixed into the visible text.
- Text content: just the words
- You must be logged in to reply to this topic.