#wordpress 2026-04-16

2026-04-16 UTC
[fnhipster], April, [morgan], [KevinMarks], laul, duanin2, gRegorLove_, [me1850], [aciccarello] and jeremy joined the channel
#
[Kupietz]
Has anyone got a shortcut for syndicating WP posts to Bridgy Fed without having to manually add the `<a class="u-bridgy-fed" href="https://fed.brid.gy/" hidden="from-humans"></a>` to every post? Right now I have the webmentions plugin, and I wrote a shortcode to give me that <a> so I don't have to remember it, but the webmentions plugin doesn't send mentions to links included via shortcode, only ones included explicitly in
#
[Kupietz]
the unprocessed content body. So now every time I post, I'm like, _"What was that URL I need to include in the post again"?_
[snarfed] joined the channel
#
[snarfed]
I do this:
#
[snarfed]
```function bridgy_fed_as2_link( ) {
#
[snarfed]
if ( is_single() && get_post_type() == 'post' ) {
#
[snarfed]
<link rel="alternate" type="application/activity+json" href="https://fed.brid.gy/r/<?php the_permalink(); ?>" />
#
[snarfed]
add_action( 'wp_head', 'bridgy_fed_as2_link' );```
[Sophia_wood] joined the channel
#
[Kupietz]
[snarfed] Adding the link as part of the output via PHP will work when including it via a shortcode doesn't? Are you using this with the webmentions plugin?
#
[Kupietz]
The problem I'm having is not have the page set up so BF can see it after receiving the webmention, it's sending the webmention.
#
[Kupietz]
sp. having
duanin2 joined the channel
#
[snarfed]
oh, I use the syndication links plugin to send the wm to BF
#
[Kupietz]
[snarfed]++ thanks. Wasn't aware of that, will have a look.
#
Loqi
[snarfed] has 1 karma in this channel over the last year (49 in all channels)