Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Have a WordPress update feed on a static HTML page?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #25524
    jandreoni
    Member

    Hello, all–

    My current client is looking for the following: Her actual site is in static HTML with a link to her WP blog that is on her domain. But, she also wants, on the static HTML homepage of her site, to have a little "Feed" of the most recent update to her blog (including upcoming shows, etc.) that would only feed if she uses a certain tag in WP when creating her post.

    Does this make sense, and is this possible? Probably using PHP or something, I assume.

    And just for the record, she doesn’t want the whole site built in WP, just the blog and the ability to feed recent posts from the blog to the home page.

    Thanks for any help!

    –Jason

    #61052
    jandreoni
    Member

    Thanks for the reply, Apostrophe. Right now, though, her current site is built (has been for about 6 months now) and I was hoping to avoid doing a complete conversion over to WP. This was just something she was asking about. I’ll take a look at the Simplepie site.

    Anyone else have any ideas? Some PHP perhaps?

    #61065
    jandreoni
    Member

    Thanks, ikthius. I PM’d you to pick your brain!

    #61278
    mattvot
    Member

    The easiest way is SimplePie.

    Use this url as the rss feed for your site

    http://site.com/tag/THE-TAG-HERE/feed/

    #60806

    Some really good ideas posted so far in this thread, so I thought I’d add another one to the mix:

    You can actually do this by adding only some Javascript to your existing HTML (through the magic of jQuery). There is even a jQuery plugin to make this process easier – http://plugins.jquery.com/project/jFeed

    Example (courtesy of GitHub):

    Code:




    jFeed – jQuery feed parser plugin – example



    jFeed – jQuery feed parser plugin – example


    #66480

    I’m doing something similar on a site that I’m working on. I’m including two loops, though. I tested it and it works fine. One of the loops just shows one post and the other loop shows two. Is there any code I can add to exclude the latest post on my second loop? I’m not very familiar with PHP but I was thinking there could be something I could add to this snippet:

    Code:
    #66491

    I found out how to do this:

    Code:
    query_posts(‘showposts=5&offset=1’); // Second loop, we get 5 posts excluding the most recent.
    if (have_posts()) :
    while (have_posts()) : the_post(); ?>
    // WordPress loop
    endwhile;
    endif; ?>

    via http://www.wprecipes.com/avinash-asked-how-to-use-two-different-wordpress-loops

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Back End’ is closed to new topics and replies.