• Resolved artikel104

    (@artikel104)


    Hi there,

    First of all, you’ve done a great job with developing this plugin; thanks!

    I’m using the Feed to Post option and I’d like to display only the titles of the posts, the source of the feed and a direct link to the rss item (the same link as the ‘…read more’ would have) on a page. Of course I can display the title (because it’s the post title) but the direct link and the source part are in the post content… Are they stored anywhere else or do you know of a way to only get the ‘source’ and ‘read more url’ from the post content?

    Thanks in advance for your attention and support.
    Best regards,

    http://wordpress.org/extend/plugins/wp-rss-multi-importer/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Allen

    (@amweiss98)

    Sure, if you’re using the Feed to Post, everything is stored as a typical blog post (in the posts table). The read more and link are stored, with all the rest of the content, in the content field of the blog post.

    The only way you can get what you want, I think, is to alter the import_posts.php file and just store the the link with a read more in the contents field. You’d have to save the import_posts.php file if you change it because it will get overridden with my next update.

    Thread Starter artikel104

    (@artikel104)

    Wow, that’s a quick reply 🙂

    I see what you mean and checked the import_posts.php. I’m quite the beginner when it comes to php so for now it’s to hard for me to adjust this… I’ll keep studying and when i see a way to do it i’ll let you know (maybe you’d want to include this in future updates).

    I saw that one content field is already added (rssmi_source_link for the item url) so the idea for now is to make 3 additional content fields:
    rssmi_source_name * includes the feed name given in the plugin options
    rssmi_source_url * includes the feed url
    rssmi_source_date * includes the original post date

    I assume there will already be variables used in the plugin containing that data so I guess i’ll need to see how to add those in the wp_rss_multi_importer_post function 🙂

    Plugin Author Allen

    (@amweiss98)

    Ok. Contact me at

    http://www.allenweiss.com/contact

    And I’ll send you a file you can use.

    Thread Starter artikel104

    (@artikel104)

    Thanks!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feed to Post: get source and link to item from content’ is closed to new replies.