RSS modification

Home Forums Calendar Products Events Calendar PRO RSS modification

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #944050
    alonso
    Participant

    http://pastie.org/9240347

    I have inserted into the function and it works great.
    but I do not have the data in front of the content after the content.

    how does anyone have an idea

    #944165
    Josh
    Participant

    Hey Alonso,

    Thanks for reaching out to us!

    I’m not sure I’m following the concern with snippet that you’ve provided. Can you provide a screenshot of the feed or the content showing more detail on the issue that you’re seeing?

    I’m sorry I’m not able to address your concern at the moment but hopefully the issue will become clear with a little more detail.

    Thanks!

    #944190
    alonso
    Participant

    yes that’s no problem with the snippet looks like my Feed now like this.

    http://quadtreffen.info/termine/feed/

    http://fs1.directupload.net/images/150223/9vnoa82h.png

    where I would like to have this info I have highlighted in the screenshot

    and here the Code in my functions

    <?php 
    /* Working on adding Tribe Events info to RSS content */
    function tribemeta_in_feed($content) {  
        if(is_feed()) {  
            $post_id = get_the_ID();  
            $output .= '<p><strong>Beginn:</strong> ' . tribe_get_start_date()   . '</p>';
            $output .= '<p><strong>Ende:</strong> ' . tribe_get_end_date()   . '</p>';   
            $output .= '<p><strong>Wo:</strong> ' . tribe_get_venue() . '</p>';  
            $output .= '<p><strong>Adresse:</strong> ' . sp_get_full_address () . '</p>';    
            $content = $content.$output;  
        }  
        return $content;  
    }  
    add_filter('the_content','tribemeta_in_feed');
    
    ?>

    Hope I have explained better now

    thank you

    #944223
    alonso
    Participant

    I find it

    I have to change this

    $content = $content.$output;

    to

    $content = $output.$content;

    #945042
    Josh
    Participant

    Hey alonso,

    Awesome! I’m glad you were able to get the order worked out.

    I’ll go ahead and close this thread. If you have any further questions, please don’t hesitate to open a new one.

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘RSS modification’ is closed to new replies.