wp_list_bookmarks
-
Hi,
I am trying to insert a bookmark id into the ‘before’ part of each bookmark. My code is as follows:
<?php $bookmarksArgs = array( 'orderby' => 'rating', 'order' => 'ASC', 'category_name' => 'Main Nav', 'hide_invisible' => 1, 'show_updated' => 0, 'echo' => 1, 'categorize' => 0, 'title_li' => '', 'class' => 'linkcat', 'before' => '<li id=\"%id\">', 'after' => '</li>' ); ?> <?php wp_list_bookmarks( $bookmarksArgs ); ?>But the output just includes <li id=\”%id\”> and not <li id=”[bookmark id]”>.
Why is this? I’m new to wordpress and really keen to get going! Can’t wait to get my blog live once I’ve got the templates sorted out!
The topic ‘wp_list_bookmarks’ is closed to new replies.