Jump to content


Where to put code to display feed


This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 russell

russell

    Advanced Member

  • Members
  • Others: Builder
  • PipPipPip
  • 55 posts

Posted 02 October 2010 - 06:29 PM

I am using a plugin that allows me to enter a short code to call up specified RSS feeds into post or pages but the instructions are if I want to put the short code anywhere else on the site I have to put this in the location

<?php sp_getFeedContent("feedname");?>

I want to end up using it in a tabber widget but I guess I would just use a text box inside the tabber and insert the short code. Just not sure where to put the code so the short code will work in a text widget?

Any help would be appreciated.

Russ

www.thecoastalguy.com / under costruction

#2 Sridhar Katakam

Sridhar Katakam

    Advanced Member

  • Members
  • Others: BackupBuddy
  • 22,262 posts

Posted 02 October 2010 - 07:35 PM

Russ,

That's not short code, that's PHP code. Short code is enclosed in [ and ].

To display PHP code in widgets, http://wordpress.org/extend/plugins/php-widgetify/ plugin can be used.

#3 russell

russell

    Advanced Member

  • Members
  • Others: Builder
  • PipPipPip
  • 55 posts

Posted 02 October 2010 - 09:34 PM

Yes your right.

Got it now thanks.

Found a plugin like you suggested and it works fine

Thanks for the quick reply.

Thanks, Russ