WordPress.org

Ready to get started?Download WordPress

Forums

WP RSS Multi Importer
Automatically use [gallery] in the body of the feed to post. (7 posts)

  1. paul.contreras
    Member
    Posted 11 months ago #

    Hi, I would like to start off saying this plugin is one of its kind and absolutely wonderful. I just have a quick question. I am doing a photoblog site and all of the RSS feeds are pulling in correctly.

    However, the body of the post shows "<div class="ftpimagefix" style="float: none;"><img alt="" src="#site-rss" width="500" /></div>".

    How can I change the above to automatically have [gallery columns="1" size="full"]

    I tried messing around in the feed to post settings but wasn't having any luck figuring it out.

    Thank you very much in advance.
    -Paul

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

  2. Allen
    Member
    Plugin Author

    Posted 11 months ago #

    First, it looks like the RSS feed has some strange image in it. What the the RSS feed. It would require customizing the code to substitute the image for some other shortcode and wouldn't likely work programmatically inserted as is done using the feed to post.

  3. paul.contreras
    Member
    Posted 11 months ago #

    Hi, Thank you for the quick response. I clicked on the option to eliminate all hyperlinks so the default that I am getting now is: (example)

    <div class="ftpimagefix" style="float:none;"><img width="500" src="http://i.imgur.com/OmLeY97.jpg"></div>

    I am currently setting all posts to pending, manually removing that code and changing it to [gallery columns="1" size="full"] and then publishing because I have specific functions and css that are used with the gallery.

    Is this easily changeable?

    -Paul

  4. Allen
    Member
    Plugin Author

    Posted 11 months ago #

    To do this you would need to go into the excerpt_functions.php file, and look for the link that creates what showed above), then change that to put your shortcode function in...the problem is that simply putting the function branckets [gallery, etc, ] in will not likely work - you may need to try something like a php line, like

    do_shortcode('[gallery columns="1" size="full"]');

    if you get this working, you'll need to save this file since it will be overwritten in the next update.

  5. paul.contreras
    Member
    Posted 11 months ago #

    Perfect. I found the line code that outputs the div from above and was able to out put the gallery shortcode that i premade. Everything is working as planned and working beautifully. Thank you very much..

  6. Allen
    Member
    Plugin Author

    Posted 11 months ago #

    Great to hear...please do me a favor and rate the plugin...thanks

  7. paul.contreras
    Member
    Posted 11 months ago #

    I rated it 5 Stars. Excellent support. Thank you.

Reply

You must log in to post.

About this Plugin

About this Topic