RSS feed details and fields

This topic contains 7 replies, has 3 voices, and was last updated by  Stiofan O’Connor 8 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #70116

    drashida
    Expired Member
    Post count: 129

    Hello,

    I would like my rss feeds to have more detailed data. For example, my events feed only generates the title and description. I would like date, time, location, price.

    I think we can sort it out if we can figure out why the filter isn’t working and what do use instead of “the_content” in the code (http://paste.ofcode.org/4vmSUUZig7hA4A66YCtFVz).

    Thank you.

    #111113

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    RSS are meant to only have title and description. To change that you’ll have to add the other custom fields to the rss.

    Customizing the RSS feed shouldn’t be much different than customizing the listings pages.

    If you add this to the file createing the feed:

    global $post; print_r($post);

    You will see all elements of the post object.

    Example:

    echo $post->geodir_email;

    Will echo the listing email address.

    Obviously this is considered a customization.

    Hope this helps,

    Thanks

    #111820

    drashida
    Expired Member
    Post count: 129

    Hello,

    Thank you for the response. We are trying to do this by hooking the feed creation rather than changing any files that would be written over when the plugin is updated. Would you be able to provide the hook so that we could accomplish this, please.

    #111941

    drashida
    Expired Member
    Post count: 129

    Hi. We would rather not modify the plugin files as doing so would obviously be overwritten by any plugin update. Is there not a hook or filter we can use to modify the output of the description?

    As per http://paste.ofcode.org/4vmSUUZig7hA4A66YCtFVz This adds a filter to “the_content” when its displayed in an rss and the post type is gd_event. This works on normal posts and in other custom post types.

    This should also work if geo directory was using the content to display the rss feed, which it appears to not be doing. What field is geodirectory using to display the content and how can we add a filter to add the content we want?

    #111975

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I’ve flagged this for the developers. They’ll reply asap.

    Thanks for your patience,

    #111982

    drashida
    Expired Member
    Post count: 129

    Thanks a lot.

    #112770

    drashida
    Expired Member
    Post count: 129

    Hi Paolo,

    Any word from the developers?

    Thanks again for assisting us in this.

    Dara

    #112858

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello Dara,

    Please have a look at this page: https://codex.wordpress.org/Customizing_Feeds

    There are also some useful links at the bottom of that page.

    Hopefully that is enough to get you where you want to be 🙂

    Thanks,

    Stiofan

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount