WordPress.org

Ready to get started?Download WordPress

Forums

HungryFEED
hardcode rss result into post? (5 posts)

  1. bearvv
    Member
    Posted 2 years ago #

    Since I don't want to query the rss every time the page load. I just want the shortcode run once only, then input the rss data directly into post.

    http://wordpress.org/extend/plugins/hungryfeed/

  2. mikeotgaar
    Member
    Posted 2 years ago #

    A bit of HTML hardcoding needed here - not too difficult
    Just copy the HTML source code from the page viewed in browser, and paste it in HTML editor (you may need Ultimate TinyMCE or another plugin to prevent stripping)

    Look for - but don't copy the Java etc
    div.hungryfeed_item_date {}
    ...... (Theres a number of similar lines

    </style>
    <script type="text/javascript">
    // Custom Javascript here...
    </script>


    IGNORE EVERYTHING BEFORE HERE - START COPYING FROM HERE

    <h3 class="hungryfeed_feed_title">Comments for SME Technology</h3>
    <p class="hungryfeed_feed_description">Feed Item title</p>
    .....

    Look for the final div closing tag </div> The will be several depending on number of items in feed

    You can style the content using HTML and CSS (deleting the shortcode may remove the styling as well) or just using the WYSIWYG editor

    Hope this explanation is understandable if you are not familiar with HTML

  3. mikeotgaar
    Member
    Posted 2 years ago #

    (system posted my reply twice - deleted the content)

  4. bearvv
    Member
    Posted 2 years ago #

    mikeotgaar, Thanks a lot.

    It works if you don't got many posts. I need to deal with a lot of posts, so I might need to ask a programmer to change the script a bit. Thanks anyway.

  5. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    @bearvv By default HungryFEED does cache the feed - it will only re-fetch from the RSS source every hour (or whatever time limit you configure in the HungryFEED settings page). So that will limit the number of requests to the RSS feed.

    That doesn't solve the fact that the page still must be re-rendered each time. If you need to cache that as well the WP Super Cache plugin (which I recommend for any site) will cache the page rendering as well. HungryFEED and WP Super Cache work fine together. There are other caching plugins but that is just the one I personally use and have experience with.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags