• My customer wants the option to NOT have the RSS widget heading linked. I’d like to give them another version of the RSS widget where the heading is not linked.

    The heading gets linked on line 789 of default-widgets.php. I don’t want to hack the core. I’d prefer to do this by creating and registering an RSS widget in the theme functions.php.

    I was able to make a new widget that looks like the RSS one by copying the core one and renaming, but I don’t know how to make it save the RSS URL and other params.

    any advice?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter red5

    (@red5)

    thank you.

    Thread Starter red5

    (@red5)

    i am literally ripping off the core WP_Widget_RSS and trying to rename it and remove the html formatting (the title link) that the customer doesn’t like. since it’s a shameless rip-off, i think it’s got all the components of the tutorial. it just won’t save the xml url i paste into the url field. it won’t save the other parmas either.

    Ripping off is fine. That’s what GPL is all about. ??

    I’ve done similar tricks with (say) the Archive widget before now using Justin’s tutorial and didn’t hit any real problems. What’s this xml url look like?

    Thread Starter red5

    (@red5)

    it’s here:
    https://www.rssmix.com/u/3796218/rss.xml

    it works in a core rss widget, just not my version. the only changes i made were to the html styling, class name, construct name

    Did you follow the steps in the tutorial?

    Thread Starter red5

    (@red5)

    Yes, I used the tutorial. It’s very good. Thank you for the link. My modified version of the core widget still doesn’t seem to be saving data entered into the fields.

    Just like the original, my widget does this on the update func:
    return wp_widget_rss_process( $new_instance, $testurl );

    I wonder if I’m not supposed to try using funcs from the core. I’ll do some more troubleshooting and reading.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add Custom RSS Widget’ is closed to new replies.