- Impact
- 41
I want to use this code...
<?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://www.mysite.com/blog/category-2/feed', 5); ?>
...inside of a PHP if/else statement so that it works like this:
IF /page-1
<?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://www.mysite.com/blog/category-1/feed', 5); ?>
ELSE IF /page-2
<?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://www.mysite.com/blog/category-2/feed', 5); ?>
ELSE IF /page-3
<?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://www.mysite.com/blog/category-3/feed', 5); ?>
ELSE
Do nothing.
Can somebody please help me figure this out?
Thank you.
<?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://www.mysite.com/blog/category-2/feed', 5); ?>
...inside of a PHP if/else statement so that it works like this:
IF /page-1
<?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://www.mysite.com/blog/category-1/feed', 5); ?>
ELSE IF /page-2
<?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://www.mysite.com/blog/category-2/feed', 5); ?>
ELSE IF /page-3
<?php include_once(ABSPATH . WPINC . '/rss.php');
wp_rss('http://www.mysite.com/blog/category-3/feed', 5); ?>
ELSE
Do nothing.
Can somebody please help me figure this out?
Thank you.