# Write custom featured\_link to discourse topic?

**URL:** https://meta.discourse.org/t/write-custom-featured-link-to-discourse-topic/362613
**Category:** WordPress
**Tags:** wordpress, featured-link
**Created:** [April 19, 2025, 12:42pm UTC](https://meta.discourse.org/t/write-custom-featured-link-to-discourse-topic/362613 "2025-04-19T12:42:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [April 19, 2025, 12:42pm UTC](https://meta.discourse.org/t/write-custom-featured-link-to-discourse-topic/362613/1 "2025-04-19T12:42:40Z")

</div>

Hey guys

Is there any way to write a custom URL to the featured\_link of the topic with [WP Discourse](https://github.com/discourse/wp-discourse)?

My use case: WP CPT products which have an affiliate link. Instead of the post URL, I want to write the product affiliate URL (set via custom field) to the featured\_link of the discourse topic.

Cheers  
Jr

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [April 21, 2025, 8:52am UTC](https://meta.discourse.org/t/write-custom-featured-link-to-discourse-topic/362613/3 "2025-04-21T08:52:36Z")

</div>

Yes, that will be possible. I’ll add a wordpress filter that lets you modify the featured link the [WP Discourse](https://github.com/discourse/wp-discourse) plugin sends to Discourse in the next version of the plugin (`2.5.8`).

---

<div class="post-metadata">

### Author: ![jrgong](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@jrgong](https://meta.discourse.org/u/jrgong)
#### Post date: [May 15, 2025, 12:28pm UTC](https://meta.discourse.org/t/write-custom-featured-link-to-discourse-topic/362613/4 "2025-05-15T12:28:00Z")

</div>

Hey @angus

did you have a chance to take a look at this? I can take it for a test ride if you need feedback 🙂

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 16, 2025, 9:24am UTC](https://meta.discourse.org/t/write-custom-featured-link-to-discourse-topic/362613/5 "2025-05-16T09:24:11Z")

</div>

Hey, I’m planning to push the next version up for review next week.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [May 24, 2025, 7:57am UTC](https://meta.discourse.org/t/write-custom-featured-link-to-discourse-topic/362613/6 "2025-05-24T07:57:39Z")

</div>

Just a note that `2.5.8`, with this new filter, is currently up for review. When it’s released you’ll be able to use `wpdc_publish_featured_link` for this purpose.
