Can someone please check what I’ve done, since I’m not that good at PHP yet.
<?php echo $_product->get_categories( ', ', ' <span class="posted_in">' . __( 'Posted in ', 'jigoshop' ) . '', '.</span>'); ?>
This line fetches the category and prints Posted in (name of category)
However I want to drop the Posted in (name of category) and make it just have a simple html link.
So I made it
<?php echo <span class="posted_in"><a href="http://www.google.com">Click Me </a></span>; ?>
Is what I did correct? (I want to preserve the link inside of the <span> tags)
If you’re using echo, make sure to give it a string (in quotes).
This doesn’t even need PHP.
Is just fine.