Show RSS feed wherever you want

We already saw a mode of show an RSS feed on your WordPress site but now there is a new method – for WordPress 2.8 and higher – it does not use the Magpie or Snoopy class , but SimplePie and FeedCache, to retrieve an RSS feed.

You just have to copy this code and put it where you want to show the RSS feed chosen on line 3:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22 [19659005] 23

24

25

26

function my_multi_col ( $ content ) {]

$ columns = explode ( '

' $ content ) ;

$ i = 0 ;

foreach ( $ columns as $ column ) {

[19659135] if ( ] () $ i % 2 ) == 0 ) {

$ return . = '

' . " n" ;

if ( $ i > 1 ) []

$ return . = "

" ; [19659000] } else {

$ return . = '

' . " n

" ;

}

$ return = $ column ;

$ return . = ] '

' ;

$ i ++ ;

]

if ( isset ( $ columns [ 1 ] ) ) {

$ content = wpautop ( $ return ) ; ]

} else {

$ content = wpautop ( $ content ) ; [19659005] }

echo $ content ;

}

add_filter ( 'the_content' 'my_multi_col' ) ;

WordPress wins the 2009 CMS Award

WordPress has been chosen as the best CMS at the CMS Awards . He has also been in an honorable second position in the PHP CMS Award in which he has won Drupal, being the first time he is among the top five.

What you read is an original content of WordPress Help – Resources, themes, plugins and tutorials in Spanish and published Fernando Tellado first here: WordPress wins the 2009 CMS Award