Site logo

Archived topic

wp_get_recent_posts in element after_header_content wrong permalink

16 replies · Started by Niklas on November 9, 2020

Viewing posts 16–17 of 17

The default read more link attaching itself to the excerpt will use the current post (of the page) as its $post reference. It doesn't know that it's inside a different loop on the page.

Good to know. But from my point of view this is illogical, Wordpress shows the excerpt of the post of the custom loop and the link of the page where the loop is output.

Thanks for the answer.

This archived topic is closed to new replies.