Quote:
Originally Posted by BCyber
Alright cool. I'll see if I can figure that out. Haven't taught myself much php yet.
|
assuming you have a link category called amateurs, and a post category called amateurs
Code:
function show_links()
{
global $post;
$cat = get_the_category($post->ID);
$check = $cat[0]->cat_name;
$links = get_bookmarks('category_name=$check&orderby=rand');
foreach($links as $link) {
echo "<a href='$link->link_url'>$link->link_name</a>";
}
}
maybe somelike like this?
not sure i havent tested it.