permalink links to wrong page.
-
Hello on this page in the side bar i have three posts the permalink should bring them to that post.
$args=array( 'post_type'=>'characters', 'post_per_page'=>5, 'order_by'=>'rand' ); $bookChars = new WP_Query($args); echo'<div id="bookChars" class="bookChars">'; while ($bookChars->have_posts()):$bookChars->the_post(); echo'<figure class="bookCharsImgs">'; the_post_thumbnail('smallRatio'); echo'</figure>'; //echo get_permalink($post->ID); echo "<a href='".the_permalink()."'>Link</a>"; echo'<h3 class="entry-title">'.get_the_title().'</h3>'; echo'<aside class="bookCharsAsides">'; the_excerpt(); echo'</aside>'; endwhile; echo'</div>'; wp_reset_query();
but the links brings back to the about page. not to the actual linked content.
https://agileart.us/arachnohazard/about/
How do i fix this so the the user is taken to the appropriate post?
Thank you
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘permalink links to wrong page.’ is closed to new replies.