WordPress.org

Ready to get started?Download WordPress

Forums

rss subscribe to one page or post (9 posts)

  1. stevecooley
    Member
    Posted 9 years ago #

    I just figured out that I can embed statistics dashboards into WP posts using PHPExec and EZStatic. This is great because I can point my internal clients to pages on my blog. When they want to see stats updates for their data, they can just go to a url on my work blog.

    Now what would be super-l33t would be the ability to subscribe to single posts or pages so that when I pull the feed in my aggregator, the pie charts are all updated. The problem is that yes, I can do this, but eventually my posts will fall off the end of the feed.

    Anyone got any ideas for a "rss subscribe to this post" kind of function? Or how about "rss subscribe to this category" ? then I can make a separate category for the programs I do stats for, and let my clients subscribe to their program category in their aggregator.

  2. stevecooley
    Member
    Posted 9 years ago #

    Bahaha.. below: "RSS feed for this thread" .. Yeah! like that!

  3. stevecooley
    Member
    Posted 9 years ago #

    after comments link in my theme:

    <a href="/blog/rss_per_article.php?url=<?php urlencode(the_permalink()); ?>" rel="bookmark">subscribe to this article</a> -

    and then here's my duct-tape-and-popsicle-stick solution, rss_per_article.php:


    <?php

    // configuration start

    $url = $_GET["url"];
    $title="rename me in net news wire";

    // configuration stop

    // <<<heredoc_is_useful

    echo <<<xml
    <?xml version="1.0" encoding="utf-8"?>
    <!-- generator="scrape-a-page/1.0" -->
    <rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    >

    <channel>
    <title>$title</title>
    <link>$url</link>
    <description>$title</description>
    <copyright>No Copyright</copyright>
    <pubDate>Tue, 15 Feb 2005 20:52:38 +0000</pubDate>
    <generator>scrape-a-page</generator>

    <item>
    <title>$title</title>
    <link>$url</link>
    <comments>$url</comments>
    <pubDate>Tue, 15 Feb 2005 19:15:27 +0000</pubDate>
    me

    <category>scraping pages is fun</category> <guid>$url</guid>
    <description>$title</description>
    <content:encoded><![CDATA[
    xml;

    // heredoc_is_useful;
    // seriously.

    // scraaaape!
    include($url);

    echo <<<xml2

    ]]></content:encoded>
    <wfw:commentRSS>$url</wfw:commentRSS>
    </item>

    </channel>
    </rss>
    xml2;
    ?>

  4. angsuman
    Member
    Posted 9 years ago #

  5. stevecooley
    Member
    Posted 9 years ago #

    well, you're very lucky, because that doesn't work for me. :)

  6. angsuman
    Member
    Posted 9 years ago #

    What? That's basic feature of WordPress 1.5!
    If that doesn't work try adding ?feed=rss at the end of your url.

  7. stevecooley
    Member
    Posted 9 years ago #

    works at home, I'll have to check it at work too.. thanks

  8. stevecooley
    Member
    Posted 9 years ago #

    Hey, you know what, this doesn't do what I want. It works, yes, but it doesn't include the main post in the feed. I want it to include the content of the post in the feed, not just the comments.

  9. stevecooley
    Member
    Posted 9 years ago #

    Basically, I'm trying to extend the wiki like functionality that using pages offers, and rely on NetNewsWire to show me when pages are changed by my trusted co-authors.

    The big problem with using pages is the unknown way it interacts with the rss feed... does it? Nope, it doesn't show up in the feed. This is a really great way to let me let my viewers know when my site changes. I just go about being the content creator, and let my viewers subscribe to the pages they want to stay notified of changes.

    Ok, relatedly, the most obvious way to make changes to pages would be with MarsEdit. Unfortunately, the xmlrpc front door doesn't bother with pages. This is too bad... MarsEdit would make a supreme editing tool for pages. That would let me maintain my website without having to do it over the web.

    can we have an xmlrpc script that just spits out pages? I guess that's something I could investigate if I weren't slammed with work currently. :(

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.