Changes doesn't show up on blog

I am using wordpress in my magento using Fishpig wordpress extension, i have created a functions in functions.php of my theme (though its full integrated, meaning magento theme is applied to blog) but the following function doesn't seem to have any effort. my function is

add_filter( 'the_excerpt_rss', 'insert_thumbnail_into_feed' );
add_filter( 'the_content_feed', 'insert_thumbnail_into_feed' );
function insert_thumbnail_into_feed() {
      global $post;
      if ( has_post_thumbnail( $post-ID ) ){
        // replace thumbnail with yours
        $content = 'p' .get_the_post_thumbnail( $post-ID, 'thumbnail' ) .'/p';
      }

      // get post content and replace feed content with
      // you can also limit/filter the content to exclude shortcodes and html code etc.
      $content .= 'p' .get_the_content() .'/p';

      return $content;
    }

is it because feed by default loads the rss and rss doesn't run the mentioned code? Edit: i am using this Fishpig extension

Topic magento functions Wordpress

Category Web


You need to change the template files in Magento that are created by the Fishpig extension and that override the WP theme: Fishpig guide to customising the design and theme of WordPress

When WordPress is integrated into Magento with Magento WordPress Integration, the WordPress blog is displayed using your Magento theme and not your WordPress theme. This means that any changes to your WordPress theme (either installing a new theme or modifying your existing WordPress theme) will have no affect on the frontend of your blog. To make changes to the blog, you need to make the changes in your Magento templates.


I believe Fishpig doesn't use your theme's functions.php file when in the "Fully Integrated" mode, it has a built-in theme that it forces WordPress to use.

You will have to either modify the Fishpig source code and/or ask Fishpig support how you can do this without affecting future upgrades.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.