How do I display a list of all syndicated sites

Contents

[ hide ]

    Question thanks to Katte, on March 19, 2017.

    One way to do this is to edit your Theme Template files. To loop through a list of all syndicated links, use FeedWordPress::syndicated_links(). Here’s an unsophisticated version of some code that should display the name of all syndicated sites in a ul list tag:

    print "<ul>
    foreach (FeedWordPress::syndicated_links() as $link) :
        $sub = new SyndicatedLink($link);
        print "<li>" . $sub->name() . "</li>\n";
    endforeach;
    print "</ul>\n";
    
    This page is a Wiki! Log in or register an account to edit.

    Leave a Reply

    Your email address will not be published. Required fields are marked *