Open scripting opened 7 months ago
How is the blogroll updated? (I'm assuming it's not polling all feeds every minute.)
@manuel -- no it's not polling all the feeds every minute.
When a feed is updated, the blogroll receives a websocket message from FeedLand, with the latest info from the feed.
You can see it in action:
@scripting Nice. Added this to my site now, pointing to the auto-generated OPML from my /reader
Hi, I just added a function to add a blogroll to my WordPress site It seems to have worked. I am just using a Feedland.com category.
I just did a bit of searching about how to add a link to the head in WordPress and came up with this. I've no idea if this is a good or best way to do it. I also do not know how to test if it has worked other than to look at the source which looks ok to me?
FWIW I added this to my child theme's functions.php
function hook_nocache() {
?>
<link rel="blogroll" type="text/xml" href="https://feedland.com/opml?screenname=johnjohnston&catname=blogroll">
<?php
}
add_action('wp_head', 'hook_nocache');
Update, I can see this now on https://browse.blogroll.social/ so that answers my question about if it works ;-)
@troutcolor -- glad to see you're trying this out. :smile:
I've asked some of the experts at Automattic to check in here to see if they can help, but in the meantime, the fact that it showed up in browser.blogroll.social means that you have gotten the <link>
element in the HTML page working, because that's what my app looks for.
I was also taking a look and the code @troutcolor provided is indeed the correct way of adding this to WordPress!
thanks @fmfernandes --
@troutcolor -- fernando works at Automattic.
I just started this page, with info about how to point to blogrolls from HTML and RSS.
https://opml.org/blogroll.opml
There may be other notes on this page as the art progresses.
Thanks to @manton for collaborating on this in March 2024.