Revision: 24570
Updated Code
at March 4, 2010 03:26 by zartgesotten
Updated Code
<?php $links = $wpdb->get_results("SELECT * FROM $wpdb->links ORDER BY link_name ASC"); echo "<table border='0' class='linktable'>"; foreach ($links as $link) { $linkurl=$link->link_url; $linkdesc=$link->link_description; $linkname=$link->link_name; $linkimage=$link->link_image; $linknotes=$link->link_notes; echo "<tr><td><a href='$linkurl' target='_blank'><img src='$linkimage' alt='$linkurl' border='0' class='linkimg'></a></td>"; echo "<td valign='top' class='link-desc'><h5>$linkname</h5>"; echo "<div class='link-description'>$linkdesc </div></td></tr>"; } echo "</table>"; ?>
Revision: 24569
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 4, 2010 03:25 by zartgesotten
Initial Code
<?php $links = $wpdb->get_results("SELECT * FROM $wpdb->links ORDER BY link_name ASC"); echo "<table border='0' class='linktable'>"; foreach ($links as $link) { $linkurl=$link->link_url; $linkdesc=$link->link_description; $linkname=$link->link_name; $linkimage=$link->link_image; $linknotes=$link->link_notes; echo "<tr><td><a href='$linkurl' target='_blank'><img src='$linkimage' alt='$linkurl' border='0' class='linkimg'></a></td>"; echo "<td valign='top' class='link-desc'><h5>$linkname</h5>"; echo "<div class='link-description'>$linkdesc </div></td></tr>"; } echo "</table>"; ?>
Initial URL
Initial Description
I didn't like the way my bookmarks came out with wp_list_bookmarks or any other built-in function, so I figured out a way to have total control about the way your wordpress bookmarks are displayed. In this example I wanted a table with the Bookmark-image in the left column and title and description in the right column.
Initial Title
Wordpress bookmarks custom
Initial Tags
wordpress, links
Initial Language
PHP