• Resolved chhe

    (@chonocom)


    Im trying to get the feed source name in the loop using php. I can get the source id by using “wprss_feed_id”, but I cannot seem to find the identifier for the source name?

    *I have bought all the add-ons, such as feed to post i.e.

    • This topic was modified 5 years, 3 months ago by chhe.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter chhe

    (@chonocom)

    To answer my own question, what I ended up doing was to use the feed/post item in the loops meta field “wprss_feed_id” to retrieve the ID of the feed source, and then set a variable (wprss_feed_source_id) for the feed source ID, I then can use to fetch further data and ie.e custom field data from the Feed Source.

    Example (has to be in the loop after: while (have_posts()) : the_post(); i.e.
    <?php $wprss_feed_source_id = get_post_meta(get_the_ID(), ‘wprss_feed_id’, true); ?>

    Plugin Author Mark Zahra

    (@markzahra)

    Hey @chonocom, I’m sorry we didn’t get back to you earlier. We had a busier-than-usual couple of weeks lately. For future reference, when using any of our premium add-ons, please reach out using the contact form on our website since this forum is reserved for questions related to the free plugin only. We reply to all form submissions within a day.

    While we’re here, this filter might be helpful for you too: https://kb.wprssaggregator.com/article/297-f2p-filter-modify-imported-posts-before-they-are-saved

    Thread Starter chhe

    (@chonocom)

    @markzahra – super, thank you 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Show source name in template/loop’ is closed to new replies.