Forums

[resolved] Posting a specific URL from a link or blogroll (4 posts)

  1. I3
    Member
    Posted 2 years ago #

    Since WP deprecated the wp_get_link, I cannot figure out how to get a link by its name.

    I've tried using the search function get_bookmarks. With this you can't do a simple retrieval by link name. There is a search parameter that is nearly undocumented and can't get to work at all.

    I want to retrieve a link URL by the name of "DELTA".

    Did I overlook something? Anyone have any ideas?

  2. Mark / t31os
    Moderator
    Posted 2 years ago #

  3. I3
    Member
    Posted 2 years ago #

    Again, very little documentation.

    Have do you used it before because I cant figure it out.

  4. Mark / t31os
    Moderator
    Posted 2 years ago #

    Sorry to be confusing...

    get_link is what you're after....

    Should do the same as what you used originally...

    I can test any functions you have problems with though... so post back if you get stuck.... :)
    Example:
    <?php echo get_link(1); ?>

    Get the link with the ID of 1.....

    Think that codex page needs some serious love... you're not wrong about it not being very helpful.... the actual file the function exists in is more informative... :)

Topic Closed

This topic has been closed to new replies.

About this Topic