WordPress.org

Forums

WP RSS Multi Importer
[resolved] Problem fetching images (5 posts)

  1. trape
    Member
    Posted 2 years ago #

    Hi,

    I have problem fetching images...

    I use this RSS:

    http://feeds.weblogssl.com/applesfera

    Exactly, I'm trying to get firts one feed to post ('http://www.applesfera.com/accesorios/smartlav-de-r0de-un-microfono-de-solapa-para-el-iphone')

    When I go to edit my post, I see this:
    http://www.subirimagenes.com/imagen-capturadepantalla-8297308.html

    In HTML, the code looks goods...
    http://www.subirimagenes.com/imagen-capturadepantalla-8297309.html

    This is my configuration:
    http://s2.subirimagenes.com/imagen/previo/thump_8297312captura-de-pantalla.png

    Anyone can help me? Why the image is broken?

    Thanks in advance!,

    Daniel

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

  2. Astroyka
    Member
    Posted 2 years ago #

    Looking at the feed the images are entity encoded so the regex is skipping them. I've got feeds like this too and had to run the "mydesc" through html_entity_decode() prior to it being passed to showexcerpt().

    HTH

    EDIT: Its probably worth you creating a copy of the template you are using to make this change.

  3. trape
    Member
    Posted 2 years ago #

    How can run 'mydesc'?. I'm newbie so I don't know what you're saying... =(

    What do you mean when you say 'you creating a copy of the template...' ?

    Thanks Astroyka!

  4. Astroyka
    Member
    Posted 2 years ago #

    You can select different templates to display your feeds from the "Shortcode Settings" tab in the admin tool. For example the "DEFAULT" templates option relates to a PHP file in:

    wp-content/plugins/wp-rss-multi-importer/templates/default.php

    If you make a copy of this and give it a new name such as "mytemplate.php" this will show up in the "Shortcode Settings" tab in the drop down list.

    The "mydesc" is an array element from the parsed RSS feed containing the relevant text/image/markup for each item in the feed. When I say run, I mean pass the contents of this array element to the entity decoder:

    $items["mydesc"] = html_entity_decode($items["mydesc"]);

    Its probably something the dev of the plugin should explain :)

    HTH

    Edit: You will need to understand how to code/change PHP to fix this.

  5. Steven Remington
    Member
    Posted 2 years ago #

    So this is not as simple as just adding that line of code to the default.php file?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP RSS Multi Importer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic