WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Call to undefined function: ujc_siderss() (8 posts)

  1. freelantz
    Member
    Posted 7 years ago #

    I've installed the FirstRSS & SideRSS plugin and I'm having trouble getting any support.

    I've followed the install and usage instructions for the SideRSS plugin (for the sibebar) but I'm getting this:

    Call to undefined function: ujc_siderss()

    The plugin is activated and the function is in a file called sideRSS.php in my plugins/ujc_firstrss/

    What do I need to do to be able to call this function from my sidebar????

    I'd like to use this plugin because it appears very simple and functional (I've seen it in action on other blogs), but if I can't get it working I'd like suggestions for another good sidebar rss aggregator. Solution to above problem is preferable.

    Thanks!

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    WordPress has built in functions for displaying basic RSS sidebars.

    This will display 10 items from a feed in an list of links, for example:

    <?php
    include_once(ABSPATH . WPINC . '/rss.php');
    wp_rss('http://example.com/feed/',10);
    ?>

    If you want more complex behavior you can code it yourself easily enough. Read this for more info:
    http://codex.wordpress.org/Function_Reference/fetch_rss

  3. freelantz
    Member
    Posted 7 years ago #

    "...you can code it yourself easily enough"

    That's easy for you to say ;-)

    I tried your suggestion to pull in a technorati feed and it did indeed display the feed, but the format was incredible bad - a mess really.

    Any suggestions on my original error? This should be easy enough to figure out, should it not... my sidebar just can't "see" the function.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    I have no idea about those plugins. I've never used them, because I've never needed to. WordPress has all the built in RSS functionality you really ever need.

    but the format was incredible bad - a mess really

    That really doesn't tell me anything useful. Define "incredible bad". Even better, what HTML does it produce? It's infinitely customizable, but you do have to know HTML in the first place.

    A simple unordered list is what the wp_rss function produces. If that looks "incredible bad", then I'd say you have a major CSS problem, because that's pretty standard for putting a list of links in a sidebar, and I can't believe a plugin would produce anything else by default.

  5. freelantz
    Member
    Posted 7 years ago #

    All I want is the Post Title... not the author, blog title, date, Technorati icon, etc. I can manage the HTML, that's not the problem. I guess what I need to do is modify the wp_rss function, correct?

  6. freelantz
    Member
    Posted 7 years ago #

    Got it. I had to give myself a five minute crash course in RSS elements and then I removed the description item from the output of wp_rss, included one of my css classes, etc. I'm good to go.

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Modifying wp_rss would not be the correct way to go. Copy it into your own code and modify it there instead. Better yet, look at the fetch_rss function and use that instead to make whatever you want to make:
    http://codex.wordpress.org/Function_Reference/fetch_rss

    Modifying core code is always a bad idea. What happens when you upgrade?

  8. freelantz
    Member
    Posted 7 years ago #

    Thanks. I copied it into my own functions.php file. Working great.

Topic Closed

This topic has been closed to new replies.

About this Topic