Link trouble with template
-
I have such template:
<li <?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } else{ echo ' class="with-img"'; } ?>> <a href="123"> <h3 class="dotdotdot"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> </h3> </a> </li>
but it generate me such output:
<li class="no-img"> <a href="123"> </a><h3 class="dotdotdot" style="word-wrap: break-word;"><a href="123"> </a><a href="https://****" title="***">***</a> </h3> </li>
how can i set whole li element as link?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Link trouble with template’ is closed to new replies.