• Resolved Theo

    (@theohuitema)


    Hi,

    When I fill out a link in the Credit URL field, it’s saved but the credit text is not a link but just text. I should point out that I altered the css a bit, so the credit shows up bottom right on the image.

    Am I doing something wrong? I’m on WP 5.6.2.

    Regards,

    Theo

    • This topic was modified 4 years ago by Theo.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author pepe

    (@pputzer)

    Hi @theohuitema, could you please provide a link to an example page?

    Thread Starter Theo

    (@theohuitema)

    Plugin Author pepe

    (@pputzer)

    Ah. This is for a featured image. Since many themes render featured images inside an <a> tag, the URL is linked by default as nested links would be invalid HTML. You can use the media_credit_post_thumbnail_include_links filter hook to enable linking for featured image credits.

    This snippet should do the trick:
    add_filter( 'media_credit_post_thumbnail_include_links', '__return_true', 10, 0 );

    Thread Starter Theo

    (@theohuitema)

    That works, Pepe!

    Thank you and have a nice evening.

    Regards,

    Theo

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Credit URL link doesn’t work’ is closed to new replies.