Filter id/class into wp_list_bookmarks?
I’ve been looking around for a way to include a ID or Class to the link generated by the wp_list_bookmarks.
I thought I could use the “notes” area to store the name of the ID (or Class).
I was the trying to filter this into the wp_list_bookmarks via my functions.php, but my PHP skills are too few, so I ended up with hacking the core file bookmark-template.php by adding this snippet around line 90.
$id = $bookmark->link_notes;
if ( ” != $id )
$id = ‘ id=”‘ . $id . ‘”‘;
and putting the $id in the output a few lines down.
Sure it works, but can anyone point out if it is possible to do this via the functions.php instead of this non-bulletproof method?
- The topic ‘Filter id/class into wp_list_bookmarks?’ is closed to new replies.