Hi, are you trying to escape double quotes in a shortcode attribute? There aren't really any escape characters you can use like backslash or anything. What about the entity:
"
If that doesn't work, I'll need some more information about what you're trying to accomplish, maybe a full code example?
I'm not able to see the output on the front-end because it's a password-protected post. Can you provide the password, or remove the restriction temporarily?
Also in the View I don't see anything like the link you described. Is the link part of a custom field? If so, which field?
Hi, sorry, i've tried so many things to get this working the view has changed by now. but the code i had in there was this, and no, not part of a custom field. just a string with a double quote that i need to comment out:
The quot entity works fine here. I think the problem is the line breaks, and I would not use a Loop Template. Be sure the checkbox is checked for "Disable the wrapping DIV around the View". Then remove the line breaks in the View's loop output editor, and place the contents directly into the loop without using a template:
I'm not sure I understand. It sounds like you want to create one mailto link. The subject of the email should contain the looped contents from the View. Let us assume there are 3 posts in the results. Their titles are:
Post Title 1
Post Title 2
Post Title 3
I also included a custom field, because I cannot see the contents of your loop template so I thought you might need an example. The posts each have a custom field called "some-field". The values for those fields in each post, respectively are:
field value 1
field value 2
field value 3
The View code I shared will produce one mailto link with the following structure:
<a href="mailto:aaa@aaaa.com?subject=Employee Verification &body=Hi Please review the following . Thank you.%0D%0DPost Title 1, "Quote test", field value 1 Post Title 2, "Quote test", field value 2 Post Title 3, "Quote test", field value 3%0D%0DSincerely">Email</a>
Is that what you expect? If not, I need more information. What is the exact code structure you expect to produce with this View, given some known post values? Please give me specific details.
yes, I got to that point and it does create the link, but in the template works. so i thought the code characters (double quote, the question mark, and the '=' and the '' at the end) were breaking the loop code. the code colors change if i remove them so i thought that indicated something was wrong. i want the link to display, and then i want any content in the template to run. if i remove those characters then the items in the template display on the page. so i thought i should be escaping them.
yes, I got to that point and it does create the link, but in the template works
I don't understand this comment, sorry! I need to see a specific example to understand the problem better. Could you show me the EXACT code you want to produce, then show me the EXACT code that is being produced? Then I can compare and make a suggestion.
the code colors change if i remove them so i thought that indicated something was wrong.
Disregard the code colors in the editor for this View, you're nesting complex quotes and shortcodes so the editor colors are probably wrong 🙂
i want the link to display, and then i want any content in the template to run.
It sounds like you want to create the link, then display the looped posts again after the link. If so, you probably need two Views - one for the link and one for the display after the link.
tested and it turns out it's the '<' that needs to be commented - sorry about that. so now, if i replace '<' with '<' in 2 places i get the correct full string but not as a link - just as text in the browser. but the items in the template do display. I'll do it your way so i get the link, and work on a second view. thank you - ok to close this ticket.