Why won't this echo in PHP
-
Hi,
Im trying to add this on echo but seems not work, I’m sure I’m doing this wrong…
<?php if ( in_category( 'wordpress-theme' )) { echo '<a href="https://example.com/<?php the_title(); ?>" class="test"></a>'; } ?>
im not getting the output of <?php the_title(); ?>
thanks
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Why won't this echo in PHP’ is closed to new replies.