WordPress.org

Ready to get started?Download WordPress

Forums

  1. tools4toni
    Member
    Posted 6 months ago #

    I want this feature! I am not experienced with the parameters - I understand what I see but I can't pull any of that out of my head, because it's not there. Is there a basic/generic shortcode that I can start off with?

    Thank you

    https://wordpress.org/plugins/shortcurl/

  2. Eli
    Member
    Plugin Author

    Posted 6 months ago #

    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

  3. tools4toni
    Member
    Posted 3 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.