[Resolved] Simple how-to?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eli


    The example in my FAQs is a good one to start with:

    [remote_get url="http://wordpress.org/extend/plugins/shortcurl/stats/" start='<div class="block-content"' stop='!-- block-content--' length="-1" replace="='/extend" with="='http://wordpress.org/extend" replace2="%2Fextend%2F" with2="http%3A%2F%2Fwordpress.org%2Fextend%2F"]

    This example fetches the content from the stats page for this plugin, from the div with a class of “block-content” to the HTML comment “block-content”, and replaces relative links with absolute ones.

    Try substituting this URL for the one you want to get and look for HTML markers in you fetched content to use as start and stop points.

    If you are not sure exactly what you are getting because the HTML clashes with the page you are including it on then try wrapping the whole shortcode in a textarea so you can see what you are retrieving.

    Let me know how it goes.

    Aloha, Eli

    Thank you very much!! I am going to try it now. I will update you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Simple how-to?’ is closed to new replies.
Skip to toolbar