Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_linkobjects [ WordPress Function ]

get_linkobjects ( $category = 0, $orderby = 'name', $limit = 0 )
Parameters:
  • (int) $category The category to use. If no category supplied uses all
  • (string) $orderby the order to output the links. E.g. 'id', 'name', 'url', 'description', or 'rating'. Or maybe owner. If you start the name with an underscore the order will be reversed. You can also specify 'rand' as the order which will return links in a random order.
  • (int) $limit Limit to X entries. If not specified, all entries are shown.
See:
Returns:
  • (unknown)
Defined at:



Gets an array of link objects associated with category n.

Usage:

 $links = get_linkobjects(1);
    if ($links) {
        foreach ($links as $link) {
            echo '
  • '.$link->link_name.'
    '.$link->link_description.'
  • '; } }

    Fields are:

    1. link_id
    2. link_url
    3. link_name
    4. link_image
    5. link_target
    6. link_category
    7. link_description
    8. link_visible
    9. link_owner
    10. link_rating
    11. link_updated
    12. link_rel
    13. link_notes

    Source

    
    <?php
    function get_linkobjects($category 0$orderby 'name'$limit 0) {
        
    _deprecated_function__FUNCTION__'2.1''get_bookmarks()' );

        
    $links get_bookmarks( array( 'category' => $category'orderby' => $orderby'limit' => $limit ) ) ;

        
    $links_array = array();
        foreach (
    $links as $link)
            
    $links_array[] = $link;

        return 
    $links_array;
    }
    ?>

    Examples [ wp-snippets.com ]

    Top Google zoekresultaten

    Meer ...

    Gebruikersdiscussies [ wordpress.org ]

    0 User Note(s)

    Nog geen één. Wees de eerste!

    Nieuw toevoegen ...



    HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics