• The whole excerpt link will end at the beginning of the link in the excerpt. After that point, the following content isn’t wrapped in the whole excerpt link.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi @jiachenzeng

    Yeah, HTML does not allow links inside of links.

    So the only approach would be that we make it so if there is a link in the excerpt we do not link it, just handle that specific excerpt as if the “link whole excerpt” option was disabled.

    Would that be ok?

    Thread Starter JiaChen ZENG

    (@jiachenzeng)

    Probably no. I think it’d be more natural to just ignore the link in the excerpt, and make the whole excerpt as a link to the post as usual. Is it hard to remove the a tags in the excerpt?

    • This reply was modified 3 years, 5 months ago by JiaChen ZENG.
    Plugin Author WPKube

    (@wpkube)

    On the settings page (WP admin > Settings > Excerpt) at the bottom you’ll see “Strip Tags” option, set that to “Remove all tags except the following” and then in the list below you can select which HTML tags to keep and all the rest will be removed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Link Whole Excerpt doesn’t work properly when there is a link in excerpt’ is closed to new replies.