Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › No Description in RSS Feed
New Landing › How can we help? › Cardinal › No Description in RSS Feed
- This topic has 15 replies, 5 voices, and was last updated 9 years by Kyle – SUPPORT.
-
Posted in: Cardinal
-
February 11, 2015 at 11:16 am #149027
Hi,
The <description\> is not showing up for my RSS feed and I’m 90% sure it has something to do with the theme as it was working fine previously before switching.
Here is the feed: http://manofmany.com/feed or http://feeds.feedburner.com/ManOfMany
Here is the syntax where you can see the description is not showing: http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Ffeeds.feedburner.com%2Fmanofmany
In looking into the issue myself it seems clear that the RSS feed is unable to grab the_content (regardless of whether summary or full content is selected to display in Reading settings)
I have seen to add the following code to the child functions file from another question but this did not correct the issue:
function add_feed_content($content) {
$content = get_the_content();
return $content;
}
add_filter(‘the_excerpt_rss’, ‘add_feed_content’);
add_filter(‘the_content’, ‘add_feed_content’);I’ve also seen in the theme there are settings to generate the feed when the SPB is active such as:
/* FEATURED IMAGE IN RSS FEED
================================================== */
if ( ! function_exists( ‘sf_featured_image_rss’ ) ) {
function sf_featured_image_rss( $content ) {
global $post;
if ( is_feed() ) {
if ( has_post_thumbnail( $post->ID ) ) {
$output = get_the_post_thumbnail( $post->ID, ‘large’, array( ‘style’ => ‘float:right; margin:0 0 10px 10px;’ ) );
$content = $output . $content;
}
}return $content;
}add_filter( ‘the_content’, ‘sf_featured_image_rss’ );
}/* FEED CONTENT WHEN PB ACTIVE
================================================== */
if ( ! function_exists( ‘sf_custom_feed_content’ ) ) {
function sf_custom_feed_content( $content ) {
global $post;
$pb_status = get_post_meta($post->ID, ‘_spb_js_status’, true);if ($pb_status) {
$custom_excerpt = get_post_meta( $post->ID, ‘sf_custom_excerpt’, true );
return $custom_excerpt;
} else {
return $content;
}
}
add_filter( ‘the_content_feed’, ‘sf_custom_feed_content’ );
add_filter( ‘the_excerpt_rss’, ‘sf_custom_feed_content’ );
}Could you kindly please let me know what function to include to correct this so that the feed displays properly?
Previously in my old theme I had a function/feed customised as follows:
/************* Get the image *****************/
function insertThumbnailRSS($content) {
global $post;
if ( has_post_thumbnail( $post->ID ) ){
$content = ‘<p>‘ . get_the_post_thumbnail( $post->ID, ‘thumb-image’, array( ‘style’ =>’float:left; margin:0 15px 15px 0; padding:0; border:1px solid #000000; width: 300px; height: auto;’) ) . ‘</p>’ . $content . ‘<p><br>Visit Man of Many for the full post.</p>’;
}
return $content;
}
add_filter(‘the_excerpt_rss’, ‘insertThumbnailRSS’);
add_filter(‘the_content_feed’, ‘insertThumbnailRSS’);February 11, 2015 at 12:11 pm #149043Hi,
Please provide me wordpress admin login detail so i can check and try to resolve the issue.
Thanks
MohammadFebruary 11, 2015 at 1:27 pm #149067This reply has been marked as private.February 12, 2015 at 2:50 pm #149516Hi,
Can you deactivate the plugins that are redirecting the rss link? So I can see the entire content of the xml file of the feed.
http://manofmany.com/?feed=rss
thanks
-Rui
February 12, 2015 at 8:34 pm #149646Hi,
I’ve disabled the plugin.
Cheers,
ScottFebruary 12, 2015 at 8:34 pm #149647You can see the entire content of the xml feed here:
http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Ffeeds.feedburner.com%2FmanofmanyFebruary 12, 2015 at 8:36 pm #149649OR at this site here: http://www.validome.org/rss-atom/validate
Select RSS 2 and view sourcecode > validate
February 13, 2015 at 1:12 pm #149859yes, but I will like to see it directly in the browser without the interference from any plugin.
It’s important to check the original file produced by WordPress.thanks
-RuiFebruary 15, 2015 at 9:29 pm #150294Hi Rui,
I’ve disabled all plugins and the redirect to feedburner.
It should show up with the original XML Feed now at http://manofmany.com/feed
There is still the same issue. I’ve seen in the forum that others had a similar issue. It seems the RSS feed is unable to grab the_content (regardless of whether summary or full content is selected to display in Reading settings)
Kind regards,
ScottFebruary 16, 2015 at 11:02 pm #150701Thanks for deactivating the redirection plugin. Could figure out what is going on, will have to forward to the development team.
Thanks
-RuiFebruary 18, 2015 at 12:11 am #151079Hi @manofmany
As you can see from one of the theme demos, the feed works perfectly – http://cardinal.swiftideas.com/corporate-demo/feed/
Odd that it’s not working on your site – I can only assume this is something to do with a plugin, or some other code. Can you test on the default WordPress theme quickly, to try and narrow it down?
– Ed
February 18, 2015 at 12:46 am #151096Hi Ed,
I just changed over tot he 2015 theme and it worked perfectly. I’ve copied in the description for you below.
Could it be something to do with the functions.php in the child theme?
I’ve read others with a similar issue in the forums. For some reason it is not picking up the_content.
I’ve seen something similar in another answer to add the following code which did not work:
function add_feed_content($content) {
$content = get_the_content();
return $content;
}
add_filter(‘the_excerpt_rss’, ‘add_feed_content’);
add_filter(‘the_content’, ‘add_feed_content’);<item> <title> 7 Whisky Distilleries to Visit on Your Next Tassie Trip </title> <link> http://manofmany.com/lifestyle/7-whisky-distilleries-visit-next-tassie-trip/ </link> <comments> http://manofmany.com/lifestyle/7-whisky-distilleries-visit-next-tassie-trip/#comments </comments> <pubDate>Tue, 17 Feb 2015 01:42:05 +0000</pubDate> <dc:creator> <![CDATA[ Bertie Cason ]]> </dc:creator> <category> <![CDATA[ Lifestyle ]]> </category> <category> <![CDATA[ alcohol ]]> </category> <category> <![CDATA[ distillery ]]> </category> <category> <![CDATA[ tasmania ]]> </category> <category> <![CDATA[ travel ]]> </category> <category> <![CDATA[ whisky ]]> </category> <guid isPermaLink="false">http://manofmany.com/?p=26449</guid> <description> <![CDATA[ Fancy a weekend cruising around whisky distilleries? Well you don’t have to fly to Scotland to visit world class distilleries any longer, just hop on a flight to Hobart and check out our local lads in Tassie making big waves on the global scene. Below is a list of top Tasmanian whisky destinations recommended by … <a href="http://manofmany.com/lifestyle/7-whisky-distilleries-visit-next-tassie-trip/" class="more-link">Continue reading <span class="screen-reader-text">7 Whisky Distilleries to Visit on Your Next Tassie Trip</span></a> ]]> </description> <wfw:commentRss> http://manofmany.com/lifestyle/7-whisky-distilleries-visit-next-tassie-trip/feed/ </wfw:commentRss> <slash:comments>0</slash:comments> </item>
February 18, 2015 at 1:47 am #151102I also tried switching to the Parent theme but I still encountered the same issue.
Cheers,
ScottFebruary 18, 2015 at 11:53 pm #151422Are you using the latest version of the parent theme?
This is the only RSS modification we have in the parent theme as of the latest version:
/* FEATURED IMAGE IN RSS FEED ================================================== */ if ( ! function_exists( 'sf_featured_image_rss' ) ) { function sf_featured_image_rss( $content ) { global $post; if ( is_feed() ) { if ( has_post_thumbnail( $post->ID ) ) { $output = get_the_post_thumbnail( $post->ID, 'large', array( 'style' => 'float:right; margin:0 0 10px 10px;' ) ); $content = $output . $content; } } return $content; } add_filter( 'the_content', 'sf_featured_image_rss' ); } /* FEED CONTENT WHEN PB ACTIVE ================================================== */ if ( ! function_exists( 'sf_custom_feed_content' ) ) { function sf_custom_feed_content( $content ) { global $post; $pb_status = get_post_meta($post->ID, '_spb_js_status', true); if ($pb_status) { $custom_excerpt = get_post_meta( $post->ID, 'sf_custom_excerpt', true ); return $custom_excerpt; } else { return $content; } } add_filter( 'the_content_feed', 'sf_custom_feed_content' ); add_filter( 'the_excerpt_rss', 'sf_custom_feed_content' ); }
– Ed
February 19, 2015 at 1:09 am #151427Hi,
I added the following code to the Child Theme and got it to work. It must have been something in those particular functions that weren’t working.
I’ll have a further play around with it tonight to get it working the way we want. http://manofmany.com/feed
Cheers,
Scott// Parent if (!function_exists('sf_custom_feed_content')) { function sf_custom_feed_content ($content) { // } } // Parent if (!function_exists(' sf_featured_image_rss')) { function sf_featured_image_rss ($content) { // } }
-
Posted in: Cardinal
You must be logged in to reply to this topic.