New Landing How can we help? Cardinal No Description in RSS Feed

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Cardinal
  • #149027
    manofmany
    Member
    Post count: 91

    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’);

    #149043
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me wordpress admin login detail so i can check and try to resolve the issue.
    Thanks
    Mohammad

    #149067
    manofmany
    Member
    Post count: 91
    This reply has been marked as private.
    #149516
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    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

    #149646
    manofmany
    Member
    Post count: 91

    Hi,

    I’ve disabled the plugin.

    Cheers,
    Scott

    #149647
    manofmany
    Member
    Post count: 91
    #149649
    manofmany
    Member
    Post count: 91

    OR at this site here: http://www.validome.org/rss-atom/validate

    Select RSS 2 and view sourcecode > validate

    #149859
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    yes, 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
    -Rui

    #150294
    manofmany
    Member
    Post count: 91

    Hi 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,
    Scott

    #150701
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Thanks for deactivating the redirection plugin. Could figure out what is going on, will have to forward to the development team.

    Thanks
    -Rui

    #151079
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @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

    #151096
    manofmany
    Member
    Post count: 91

    Hi 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>
    #151102
    manofmany
    Member
    Post count: 91

    I also tried switching to the Parent theme but I still encountered the same issue.

    Cheers,
    Scott

    #151422
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Are 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

    #151427
    manofmany
    Member
    Post count: 91

    Hi,

    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) {
        // 
      }
    }
Viewing 15 posts - 1 through 15 (of 16 total)

You must be logged in to reply to this topic.