Linking from within a custom attribute
-
I’ve been working on this for a while now and have hit the proverbial wall. I worked with it myself for a week or so before going to Grok and ChatGPT to try and help. I get conflicting answers.
The following is what I fed into AI –
“I am developing a website using WordPress and the ‘Events Manager’ plug in. I want to produce lists from the events entered. I’ve set up two special attribute fields. One is labeled ‘SMGRAPHIC’ and the other is ‘SMLINK’. I want the ‘SMGRAPHIC’ attribute to load a graphic stored on my website. When that graphic is pressed, I want it to access a website stored in ‘SMLINK’ and open that website in a new window.”On all AI tried I received basically the following to be placed in the SMGRAPHIC field:
<a href="#_ATT{SMLINK}" target="_blank" rel="noopener noreferrer">
<img src="https://your-site/example....." alt="Visit link"</a>During multiple times testing entering this request (with minor variations), I was told it should work. When tested, the graphic displays, but the link is always a re-route into the working website in a new window. It does NOT load the site stored in SMLINK.
I then saw another analysis that said nesting an attribute within an attribute would NOT work unless some php adjustments were made or something about working it through shortcode.It was at that point I decided to come to the experts. Am I spinning my wheels here?
Thanks!
The page I need help with: [log in to see the link]
The topic ‘Linking from within a custom attribute’ is closed to new replies.