WP Discourse uses post URLs instead of permalink URL

Hello,

When we publish a new post, it shows up on the topic with the post URL instead of the permalink URL. For example:

https://sitename-example.com/?p=62673

While it should be:

https://sitename-example.com/name-of-my-post

Any idea how to fix this? We use a custom permalink structure on the site:

/%category%/%postname%

This used to work, I think the behavior changes in the last few months. Perhaps because of an update?

Thanks!

Where are you seeing the URL in this form displayed? Does it come after the “Originally published at” text on the Discourse topic?

If so, I haven’t been able to find a way to reproduce the problem. That URL should have the structure that you have configured on your WordPress Permalink Settings page. If you are getting the wrong URL structure there, can you check to see if you have customized the WP Discourse publish_format_html template?

1 Like