[Resolved] wp_get_recent_posts in element after_header_content wrong permalink

Home Forums Support [Resolved] wp_get_recent_posts in element after_header_content wrong permalink

Home Forums Support wp_get_recent_posts in element after_header_content wrong permalink

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #1527470
    Tom
    Lead Developer
    Lead Developer

    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.

    #1528588
    Niklas

    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.

Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.