I have this code here which is meant to display the title tag in quotes besides the code.
$item_output .= '<a'. " title=" . " $item->attr_title " . $attributes .'>';
Can someone please guide on how to get the title in quotes. Currently it is displayed as follows:
<a title=the tag href="http://url.com">
However, it should display as follows:
<a title="the tag" href="http://url.com">
Please help.
I have tried to remove the Quotes as in tried the following but it doesn't work.
$item_output .= '<a'. " title=" . " '$item->attr_title '" . $attributes .'>';
$item_output .= '<a'. " title=" . "' . esc_attr( $item->attr_title ) . '" . $attributes .'>';
$item_output .= '<a'. " title=" . " . esc_attr( $item->attr_title ) . " . $attributes .'>';