Replies: 0
Hi there,
The following script is creating broken links on my site. The opening and closing code (<% and %>) doesn’t look like php and is just printing out in the header as follows:
<script id="wpsl-info-window-template" type="text/template">
<div data-store-id="<%= id %>" class="wpsl-info-window">
<p>
<strong><a href="<%= permalink %>"><%= store %></a></strong>
<span><%= address %></span>
<% if ( address2 ) { %>
<span><%= address2 %></span>
<% } %>
<span><%= city %>, <%= zip %></span>
</p>
<% if ( phone ) { %>
<span><strong>Phone</strong>: <%= formatPhoneNumber( phone ) %></span>
<% } %>
<% if ( fax ) { %>
<span><strong>Fax</strong>: <%= fax %></span>
<% } %>
<% if ( email ) { %>
<span><strong>Email</strong>: <%= formatEmail( email ) %></span>
<% } %>
<%= createInfoWindowActions( id ) %>
</div>
</script>
I end up with 404s for example: /product-category/socks/<%=%20permalink%20%>.
Any idea what’s going on? If it’s relevant I’m redirecting all the store locator custom posts to product categories. I get a 404 like this on all product categories and the home page.
Thanks for your help.