Tagged: link format
-
AuthorPosts
-
September 28, 2015 at 11:03 pm #510442
Hi I want to know if it’s possible to make the titles of the link formats to link to the external link instead of the link post.
The following page was used with Avia Layout Builder: Magazine (content element). I chose only Link Format posts to display.
The result is the following: http://comprarmag.com/ofertas-de-distribuidores/
I would like the actual external links to be clicked on and not direct the user to the internal posts.
Thanks in advance
September 29, 2015 at 4:03 pm #510814Hi justinfinocchiaro!
The magazine element does not have an external link option. Since you do not want to link to the posts at all it would be best to just manually create that list using the special heading element, textblock, and the separator / whitespace element for the line.
Cheers!
ElliottSeptember 29, 2015 at 5:29 pm #510873Thanks for the reply Elliott.
As this page updates with the latest posts, is there a script that I can use to generate my desired result.
Your suggestion I believe will me make the page static instead of dynamic, correct?
Any guidance will do and I think I can take it from there….i think…
Thanks in advance!
September 29, 2015 at 5:37 pm #510883Hey!
You can find the link on line 529 in the /enfold/config-templatebuilder/avia-shortcodes/magazine.php file.
$title = "<a href='{$link}' {$titleAttr}>".get_the_title($entry->ID)."</a>";
Perhaps you can add a custom field to each post with the external URL and then grab it with get_post_meta, https://developer.wordpress.org/reference/functions/get_post_meta/.
Best regards,
ElliottMarch 31, 2020 at 2:28 pm #1199334I added this code and I am able to get the external link to display in the magazine element but it is adding this code at the end of the link — %C2%A0 — and it is breaking the link:
Link I add: https://www.nytimes.com/2020/03/18/health/coronavirus-fever-thermometers.html
Link when clicking the post title in magazine: https://www.nytimes.com/2020/03/18/health/coronavirus-fever-thermometers.html%C2%A0Is there a way for the magazine element to just pull the link and not any other content? I want to be able to add text in the body of the post after I insert the link.
April 6, 2020 at 3:36 pm #1201253Hi williamslyd,
I did not see it on the page anywhere. Please give us the link to the page with the issue.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.