[theme-reviewers] Theme Reference Page Help

Chip Bennett chip at chipbennett.net
Sat Aug 27 16:00:58 UTC 2011


If you're pulling in an RSS feed, I would recommend using
wp_widget_rss_output().

For example, here's how I pull in the WPORG support forum RSS feed for
Oenology:

<?php
wp_widget_rss_output( array(
'url' => 'http://wordpress.org/support/rss/tags/oenology',
'title' => 'Latest Oenology Support Topics',
'items' => 5,
'show_summary' => 0,
'show_author' => 0,
'show_date' => 1
) );
?>


Simple, and safe.

Chip

On Sat, Aug 27, 2011 at 10:58 AM, Qamar Ashraf <life.object at gmail.com>wrote:

> Thanks to all contributors to guide me in right direction.
> I am going to re-write my logic to load dynamic data via *wp_remote_get*.
>
> On Sat, Aug 27, 2011 at 8:45 PM, Simon Prosser <pross at pross.org.uk> wrote:
>
>> file_get_contents is disabled on most shared servers.
>>
>> On 27 August 2011 16:25, Qamar Ashraf <life.object at gmail.com> wrote:
>> > Thanks Michael,
>> > I will digg the wp_remote_get() API.
>> >
>> > On Sat, Aug 27, 2011 at 8:22 PM, Michael Fields <michael at mfields.org>
>> wrote:
>> >>
>> >> You might want to look into wp_remote_get()
>> >>
>> >> http://codex.wordpress.org/Function_API/wp_remote_get
>> >>
>> >> It's the only way I write remote requests for WordPress extensions.
>> >>
>> >> On Aug 27, 2011, at 8:16 AM, Qamar Ashraf wrote:
>> >>
>> >> > Hello,
>> >> > I have integrated a "Theme Reference" page to provide some useful
>> >> > information about my framework. I am going to load remote data by
>> reading
>> >> > RSS Feed. Here is the code logic,
>> >> >
>> >> > function get_chip_life_feed( $feed_url ) {
>> >> >     $content = file_get_contents( $feed_url );
>> >> >     $feed = new SimpleXmlElement( $content );
>> >> >       return $feed;
>> >> > }
>> >> > $feed = get_chip_life_feed(
>> >> > 'http://www.tutorialchip.com/feed/chip-life-tutorials/' );
>> >> >
>> >> > I have got following Warning after submitting the theme,
>> >> >
>> >> > WARNING: file_get_contents was found in the file tutorials.php
>> possible
>> >> > file operations.
>> >> >
>> >> > Is it now allowed to load data via RSS ?
>> >> > So how can i load dynamic data without this ?
>> >> >
>> >> > Help is really appreciated.
>> >> >
>> >> > --
>> >> > Regards
>> >> > Qamar Ashraf
>> >> > Project Manager
>> >> > www.tutorialchip.com
>> >> > www.freestockphotosclub.com
>> >> > www.twunfollowapp.com
>> >> > @lifeobject1
>> >> >
>> >> > _______________________________________________
>> >> > theme-reviewers mailing list
>> >> > theme-reviewers at lists.wordpress.org
>> >> > http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>> >>
>> >> _______________________________________________
>> >> theme-reviewers mailing list
>> >> theme-reviewers at lists.wordpress.org
>> >> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>> >
>> >
>> >
>> > --
>> > Regards
>> > Qamar Ashraf
>> > Project Manager
>> > www.tutorialchip.com
>> > www.freestockphotosclub.com
>> > www.twunfollowapp.com
>> > @lifeobject1
>> >
>> > _______________________________________________
>> > theme-reviewers mailing list
>> > theme-reviewers at lists.wordpress.org
>> > http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>> >
>> >
>>
>>
>>
>> --
>> My Blog: http://www.pross.org.uk/
>> Plugins : http://www.pross.org.uk/plugins/
>> Themes: http://wordpress.org/extend/themes/profile/pross
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>
>
>
> --
> Regards
> Qamar Ashraf
> Project Manager
> www.tutorialchip.com
> www.freestockphotosclub.com
> www.twunfollowapp.com
> @lifeobject1
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110827/da37329c/attachment.htm>


More information about the theme-reviewers mailing list