Harryg123
Forum Replies Created
-
I think the problem is something to do with the server it’s hosted on as I’ve tried on it a separate WP installation and it allowed other feeds but again not the intranet/rssfeed one. But it allows the feed on my localhost as well. Anyway in the end I just wrote my own PHP function to parse the RSS and display the 5 most recent ones. I posted the code below, in case it helps anyone else.
$rss = file_get_contents("https://intranet.yourgroupuk.com/rssfeed"); $xml = simplexml_load_string($rss); $count = 0; foreach($xml->channel->item as $item) { $title = $item->title; $date = $item->pubDate; $link = $item->link; echo "<a href='" . $link . "'>" . htmlentities($title) . "</a><br />"; echo "Posted on " . date("F j, Y",strtotime(htmlentities($date))) . "<br /><br />"; $count++; if($count == 5) break; }
On second thoughts I don’t think it was the login that was causing the rss feed to appear invalid because with the login still active on the site and while I’m logged out and cleared all cookies. From my localhost I can still set the feed source as “intranet.yourgroupuk.com/rssfeed” and it will retrieve all the feed items. I also removed the login from this page, so the problem must lie elsewhere
Thanks! That is why it isn’t working, I didn’t notice as I’m always logged in on my computer and I didn’t think about that. Also on my localhost there is no login and it works fine, so I know that it is the issue.
I’ve been looking at this for ages and the problem was right under my eyes the whole time! Guess it just took someone else to look at it for me to notice.
UPDATE: I have noticed that is also happening with some other feeds. I have some feeds that are working on localhost but not on server and vice versa, even though they both use exactly the same URL. On one of the installations it says invalid URL, but on the other it validates fine and imports the items.
Forum: Themes and Templates
In reply to: Custom theme breaks pluginsAfter much deliberation I finally figured out what the problem was, I wasn’t calling
wp_footer()
infooter.php
and according to to the Codex –/* Always have wp_footer() just before the closing </body>
* tag of your theme, or you will break many plugins, which
* generally use this hook to reference JavaScript files.
*/Forum: Fixing WordPress
In reply to: Some images not displaying since directory changeRight, I’ve sorted it now. I just re-uploaded all the images that weren’t displaying correctly and now it’s working.
Forum: Fixing WordPress
In reply to: Some images not displaying since directory changeNo, still no luck. The same images still aren’t displaying, will try to re-upload them and see if that works.