I am new to magento and what i have magento wordpress by figpig installed.After much research i found that wordpress functions won't work in magento. As my function was placed in theme folder, which would display thumbnails in rss as well as turn hyperlinks in post.
As i am new to magento, i want to convert the following function to make it work and where to use it? I already have it wordpress function.
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;
}
also if someone can point me in right direction to learn about magento development wise.
i want to modify wordpress rss to display thumbnails of posts and hyper links in the post
- Why are you trying to modify Magento, when you are trying to change the Wordpress RSS? What you are trying to do doesn't make sense. The purpose the Fishpig integration is to make the user experience between the two platforms seamless. You develop the two systems independently, them combine them together using the plugin. Are you trying to get Wordpress data inside of a Magento RSS feed, or vice versa? Again, post an exact example detailing what you want from Magento, and what you want from WP.