Frank5189
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: how to add RSS items to a page, not side bar ?toddhalfpenny,
Thank you very much, It worked!
This plugin works much better for a beginner like me :-).
Can i ask you another question:
* I have added a search for to search a website (they agreed for me to use and provided the API key for me). But when i preview the page and put a key word to search, it returned a xml file.
How can I change my code below to display the result in html rather than xml?
Many thanks again!
—————–<form action=”http://www.tripdatabase.com/search/xml” method=”get”><input type=”hidden” name=”key” value=”xxxxx” />
<input type=”text” name=”criteria” value=”” size=”20″ />
<input type=”submit” value=”Tripdatabase” /></form>————–
Forum: Plugins
In reply to: [Shortcode Exec PHP] a beginner's question – php does not workthank you for such speedy reply.
Here is the code without the php tags: it still gives me the same error.
More help please, thank you.
—
include_once(ABSPATH.’wp-content/plugins/rss.php’); // path to include script
$feed = fetch_rss(‘http://feeds.bbci.co.uk/news/rss.xml’); // specify feed url
$items = array_slice($feed->items, 0, 7); // specify first and last itemif (!empty($items)) :
foreach ($items as $item) :<h2>
echo $item[‘title’]; </h2>
<p> echo $item[‘description’]; </p>endforeach;
endif;
—Forum: Fixing WordPress
In reply to: how to add RSS items to a page, not side bar ?Hi toddhalfpenny,
Many thanks for your quick reply. Apologies for the delayed response as i was away for a few days.
As I am a absolutely beginner. i have to ask more questions:
* I have installed the plugin and activated it, how can i use it on a normal wordpress page? For example, if i want to display the bbc rss on my page: http://feeds.bbci.co.uk/news/rss.xml. What code is needed on the page ‘html’ view?
Thanks very much again
Frank