Thread Starter
gyda
(@gyda)
Well I got help from outside, this $before is only for before the headings in the categories name, I guess. Or is something related, but it’s not doing anything anyway that before and after
Is there anyway to have different classes (for CSS) in the lists (<li>) of each link, inside each category?
Thread Starter
gyda
(@gyda)
This is really troublesome.
Well, looking in my links.php, in the end is something like this:
//Display the category name
echo ' <li id="linkcat-' . $cat['link_category'] . '"><h2>' . $cat['cat_name'] . "</h2></li>n";
// Call get_links() with all the appropriate params
get_links($cat['link_category'],
"<li>","</li>","n",
bool_from_yn($cat['show_images']),
$orderby,
bool_from_yn($cat['show_description']),
bool_from_yn($cat['show_rating']),
$cat['list_limit'],
bool_from_yn($cat['show_updated']));
// Close the last category
echo "";
}
}
}
?>
in the 6th line, where it’s
"<li>","</li>","n",
is actually where I wanted the $before.
I don’t know PHP very well, but I understand some logic, the first <li> should have some variable I think.. the one getting the $before, how can I do that?