Links in the Template Parts are not Working
-
Hi folk,
I am developing a custom WordPress theme with WordPress where I am using get_template_part function inside my wp_query, in my template part file I am using the following code –
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
But on the front-end the link is not working, nothing happens on clicking the link.
When I use the same code in my wp_query without template part, the link works fine.
Is it a bug of get_template_part or am I missing something?
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Links in the Template Parts are not Working’ is closed to new replies.