| User | Post |
|
5:57 am 5 Jan 2008
| paperweight
Member
| | | |
|
| posts 4 |
|
|
Great plugin and I have it working fine except for one area: I want to syndicate the latest forum posts onto my blog’s front page. It seems the only way to do this is to use the RSS feed from my forum and showcase it on my blog, is this right? Are there any other ways to syndicate it to my blog?
If I syndicate using RSS, my RSS seems not to work. It validates perfectly at w3.org, but my blog seems not to recognize it when I use this syndication code:
<?php
require_once(ABSPATH . WPINC . ‘/rss-functions.php’);
$rss = fetch_rss(’http://www.myblog.com/forum/?xfeed=all’);
for($i=0;$i<5;$i++) {
$item=$rss->items[$i];
echo ‘<p><a href="’.$item['link'].’" title="’.$item['title'].’">’.$item
['title'].’</a></p>’;
}
?>
That code above works perfectly fine for any other RSS feed from my blog or from external sources/websites/blogs, but it seems not to work for /forum/?xfeed=all. Any ideas what is wrong or how to fix?
Tks!
|
|
|
6:12 am 5 Jan 2008
| paperweight
Member
| | | |
|
| posts 4 |
|
|
Hmmm… a quick update:
I used the RSS feed from this forum at yellowswordfish.com and it works fine. The construction of the feed’s URL is identical except of course for the domain name. So it seems to be a problem with only my site/server, but I’m unclear what the problem is. When I view my feed in a browser, it appears fine and it validates fine as RSS… weird.
Anyone have any ideas?
|
|
|
11:03 am 5 Jan 2008
| -Radio-
Moderator
| | Florida - USA | |
|
| posts 558 |
|
|
Am I correct is guessing that you do not have the forum and your blog on the same wordpress install?
if the forum is on the same wordpress install as your blog there is a SFP Sidebar widget… there are also multiple PHP functions detailed in the documentation that you can use in your template or PHP aware widgets and posts.
If your wordpress install for SFP and your wordpress install for the rest of your site are on two different servers or otherwise seperated, then yes, using the RSS feed from SFP would be the best way to display recent posts.
I have noticed that wordpress’ original RSS widget does a really crappy job at reading RSS… there are several replacements out there… you can also clean your RSS feed to customize or work differently with different feed readers… by piping it through FeedBurner/ Google/ Yahoo Pipes, etc…. just a thought
|
|
|
11:18 am 5 Jan 2008
| paperweight
Member
| | | |
|
| posts 4 |
|
|
-Radio- said:
Am I correct is guessing that you do not have the forum and your blog on the same wordpress install?
Hi, thanks for your feedback! yes, my blog and forum are on the same server, same blog, VPS, etcetera. The forum is a plugin within my blog…
I am finding that other sites, including Google reader, are having problems reading my feed. Again, I can see it fine and it validates fine, but WP can;t see it either.
I’m not using widgets on my blog, so i’ll lok at the other php items. I already checked the User Manual but can;t find exactly what you mean… can you please let me know which php functions.
Tks!
|
|
|
|
|
the Template Tags section of the user guide.
|
|
|
4:09 pm 5 Jan 2008
| paperweight
Member
| | | |
|
| posts 4 |
|
|
Ah, you are absolutely right–I missed that for some reason. Ok, it is now running well.
However it would be great in the future to have slightly more options in formatting each output. For example, currently I can only turn on/off the <li> but I’d rather use <p></p> per my own blogs formatting and css.
tks!
|
|