Quantcast
Channel: Active questions tagged feed+links - WordPress Development Stack Exchange
Viewing all articles
Browse latest Browse all 6

How do I get link URLs from the Wordpress links backend into an array?

$
0
0

I'm currently running a blogroll on a site I'm working on by defining a variable with an array that has all the rss feed urls I want to pull from. Like this for example:

<?php // Get RSS Feed(s)
include_once(ABSPATH . WPINC . '/feed.php');
$rsslist = array(   'http://jordanshipman.lt11.com/rss',
            'http://feeds.feedburner.com/climbingnarc',
            'http://jonglassberg.lt11.com/rss'
                );
$rss = fetch_feed($rsslist);
if (!is_wp_error( $rss ) ) : 
$maxitems = $rss->get_item_quantity(25); 
$rss_items = $rss->get_items(0, $maxitems); 
endif;
?>

What I would like to figure out is rather than entering in each feed url in the code as above I want to pull the rss links from the wordpress links backend. Using something like the wp_get_bookmarks() function. Any help would be greatly appreciated! Thanks much!


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>