Trying to add an acf field (URL) in the post archive to use for button

hi there,

i made a post archive layout from a template. the example post i created is there and all works as exepted.
now i did add 2 fields in acf pro: button_url and button_text for the post.
i filled out the 2 fields in the post.
now i deleted the original button, deleted the url from post column so my button should work.


i did get the text from button_text but the url does not work?

any idea? it seems this is a bug? because the when i hover the pointer does change. i also tried to fill the url on the button element directly but the button is not working.

and there is one more: if i write something bold in the post and use the element [the_excerpt] to show that, the text is not bold. is this a bug?

credentials are attached

cheers

Hey @deranaloge,

The ACF URL type is not yet supported so for URLs, you should use the Text field type for now.

Hope that helps.

hi christian,
that helps a lot! :slight_smile:
thank you! cheers

btw: are there more not supported things? is there a list where i can find these?

hi,
one more question: why can i not add the acf string to the button element url? you added a # in the button element and the url in the post olumn link. why i have to do this on the whole column? i dont want the whole column clickable. i just want the button clickable.

thanks in advance
cheers

Hello @deranaloge,

If that is the case, you can use the {{dc:acf:field field="pdf_test"}} as the link in your button element. The defaults to the homepage if there NO entry for that post.

By the way, I went ahead and has edited your layout. Kindly check it now.

hi runuel,
okay but it worked not for me. there is a new thing callled: TAG. i got it now: i have to change the tag from <a> to <div>. that was the missing part for me!
thanks
cheers

Hi @deranaloge,

I have visited your site but unable to find the page that you mentioned in the screenshot of your first post. With reference to the screenshot given by you, there is an option to select the tag, please find the marked section in the screenshot.

Hope it helps.
Thanks

got it thanks :slight_smile:
cheers

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.