WordPress.org

Ready to get started?Download WordPress

Forums

What's the code to extract a list of links from in a post? (6 posts)

  1. Dgold
    Member
    Posted 8 years ago #

    How would I do this -- a plugin, a PHP code, or a script?

    Reverse-parse all the links in a post, and make a List of URL's appear at the end of the post. It's like a bilbliography of the links shown in the post. So at the end of the post it would append this:

    Link 1 - http://link1.com
    Link 2 - http://yoursite.com

    Someone please write me an ingenious PHP code that I can plop into my theme please (pretty please)! Once I get that, I'm gonna figure out how to put it into wp-print so that my Print Posts will have a text list of the URL's instead of just underlined words. Here's my example page I want to have this at the bottom:
    http://dgold.info/radio/wp-print.php?p=109

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

  3. Dgold
    Member
    Posted 8 years ago #

    Thanks Podz. That led me to about 20 different links. I found 2 other "Footnotes" plugins, but not quite what I am looking for, so i posted comments on those plugin makers blogs, basically saying this:

    Hello, I want a plugin LIKE THIS EXCEPT it would make automatic footnotes of all hyperlinks in a post where the footnote would be the actual URL with the http://www typed out.

    The reason?

    So that on my "Print" CSS view, if a person actually prints a post, there will be footnotes with READABLE links that can be typed into a browser, not Hyperlinks on underlined words where the address is hidden.

    Could you make this for me? Please email me if possible.

  4. estjohn
    Member
    Posted 8 years ago #

    By the time you wait on someon else to do it.. it might save you time by copying and pasting the link at the bottom of the posts that need it ;).. unless you want to hire someone lol

    no offense meant to anyone.. :)

  5. Dgold
    Member
    Posted 8 years ago #

    unless you want to hire someone lol

    For a reasonable price I would paypal...

  6. Dgold
    Member
    Posted 8 years ago #

    By the way, GaMerZ the plugin author of wp-print was able to put this functionality into wp-print 2.0 and it is working great for me, doing just what I wanted when I asked this post
    http://forums.lesterchan.net/index.php?showforum=11

Topic Closed

This topic has been closed to new replies.

About this Topic