ThemeShaper Forums » Thematic


Thematic options: Feed RSS

(1 post)
  • Started 11 years ago by greenandi
  • This topic is not resolved
  1. hei guys

    im trying to add more options to the theme-options. now im working on the RSS feed. it is one of good option that we can put other feed services link without have to go to function.php.

    on admin-panel-options.php, I add the text box

    'name' => __('Feed URL', 'thematicchild'),
    'desc' => __('Paste your Feed URL here (including ‘http://’). Leave blank to use the defult Thematic feed.', 'thematicchild') ,
    'id' => $my_shortname . '_feedburner',
    'std' => '',
    'type' => 'text'

    what are different between 'thematicchild' and 'childtheme'. when do i should use them and what do they do?

    on admin-panel-functions.php

    * Feed URL

    function childtheme_rssfeeds($content) {
    global $my_shortname;
    $feedburner = get_option($my_shortname . '_feedburner');
    if (!empty($feedburner)) {
    $content .= "\t";
    $content .= '<link rel="alternate" type="application/rss+xml" href="' . $feedburner. '" title="' . get_bloginfo('name') . " " . __('Posts RSS feed', 'thematic') . '" />' ;
    $content .= "\n\n";

    return $content;

    add_filter('thematic_rss', 'childtheme_rssfeeds');

    what i want to achieved is when the text box is blank, the theme automatically use the default Thematic feed or WordPress feed.
    when i leave the text box blank there is no feed. but when i put my feed URL, two feeds show up in the markup, the default Thematic feed and my feed url that i set in.


    more about thematic-options

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.