the_permalink on index causes // in link
-
I can’t find an answer to this after searching the codex and these posts. I’m baffled.
On my index page my post titles have links essentially like this:
<a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
However, when it generates it on the page it looks like this:
<a href="https://domain.com//post-title">Post Title</a>
note the double forward slashes after the domain. This only happens for the post titles on the index.php page – nowhere else (that I have noticed).
What’s the deal?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘the_permalink on index causes // in link’ is closed to new replies.