Hi, I guess slightly off topic, but I need to construct a variable in Javascript, so that when clicked it opens up the relevant WP post. The variable needs to be the following familiar line:
'" title="<?php the_title_attribute(); ?>"><?php the_title(); ?>'
I've got the rest of the code in place, but am just struggling with this last bit.
Any help much appreciated!