WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_bookmarks( ) with only one link Category (3 posts)

  1. hey2you
    Member
    Posted 6 years ago #

    Hello all,

    can someone kindly tell me whats the syntax for wp_list_bookmarks( ) to include just one link Category??

    I have read http://codex.wordpress.org/Template_Tags/wp_list_bookmarks
    but I do really figure out how to do so, please help, thanks!!

  2. scribblerguy
    Member
    Posted 6 years ago #

    Please take a look at How to Pass Tag Parameters - Query-String Style Parameters

    Inside the parentheses for a function, the format is 'parameter_name=value' - single quotes around everything, no spaces. Multiple parameters can be joined by using the ampersand(&).

    Thus...

    <?php wp_list_bookmarks( 'category_name=some-name' ); ?>

    <?php wp_list_bookmarks( 'category=7' ); ?>

  3. hey2you
    Member
    Posted 6 years ago #

    Thanks for the helping!!

    <?php wp_list_bookmarks( 'category=7' ); ?> <-- works!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags