New Landing How can we help? Atelier RSS feed and SPB

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Atelier
  • #260819
    cfairi
    Member
    Post count: 129

    Hi guys, when I create blog posts through SPB, the emails received by people who subscribe to my RSS feed display all the code in the text. How can I fix this?

    Attachments:
    You must be logged in to view attached files.
    #260913
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this custom php code at functions.php file.

    <?php  
    function sf_custom_feed_ad_banner($content) {  
        if(is_feed()) {  
           // $output = "<p><a href="ADD_LINK_TO_AFFILIATE"><img src="images/banner.jpg" /></a></p>";
    if ( false === strpos( $content, '[' ) ) {
           $output =$content;
           return $output;
        }
     
        if (empty($shortcode_tags) || !is_array($shortcode_tags))
            return $output = $content ; 
        }  
        return $output ;  
    }  
    add_filter('the_content','sf_custom_feed_ad_banner');
    ?>
    #261604
    cfairi
    Member
    Post count: 129
    This reply has been marked as private.
    #261716
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am afraid that its not possible as you want.
    Thanks
    Mohammad

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register