Hi
I have an image that I'd like to link to a cred child post form, but the image itself uses a types field to determine the correct version of the image to show, like this:
<em><u>hidden link</u></em> field='rating-average' output='raw'][/types].png
My first attempt was to try this:
<a href="[cred_child_link_form form='40528' parent_id='-1']"><img src="<em><u>hidden link</u></em> field='rating-average' output='raw'][/types].png" alt="Add your review" align="right"></a>
This is functional, but the URL in my address bar seems to include some irrelevant code and the closing </a> tag, for some reason.
I did some research on the forum and discovered that I could do something like this:
[cred_child_link_form form='40528' parent_id='-1' text='<img src="<em><u>hidden link</u></em> field='rating-average' output='raw'][/types].png"> alt="Add your review" align="right"'>]
But this gives me an error on the front end that says "No Child form page specified", where the image should be.
Is it ok to try to nest codes like this, or should I try it a different way?
thanks
Thank you for contacting Toolset Support. I am happy to help you with this.
I'm not sure if that should work. However, let me run a few tests on my end and I will return with results as soon as possible.
Hello, Alan.
I have some feedback for you. With this particular shortcode, the text isn't going to parse HTML like this. It's an unexpected usage and there is nothing in the shortcode set to parse dynamically like this.
Therefore, that is correct, it cannot be nested this way.
If you do go this route you may have to get creative with custom functions. Or filter out the extra code output with the first attempt.