Title: gyda's Replies | WordPress.org

---

# gyda

  [  ](https://wordpress.org/support/users/gyda/)

 *   [Profile](https://wordpress.org/support/users/gyda/)
 *   [Topics Started](https://wordpress.org/support/users/gyda/topics/)
 *   [Replies Created](https://wordpress.org/support/users/gyda/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/gyda/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/gyda/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/gyda/engagements/)
 *   [Favorites](https://wordpress.org/support/users/gyda/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Link categories the “before” formatting](https://wordpress.org/support/topic/link-categories-the-before-formatting/)
 *  Thread Starter [gyda](https://wordpress.org/support/users/gyda/)
 * (@gyda)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/link-categories-the-before-formatting/#post-496890)
 * 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?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Link categories the “before” formatting](https://wordpress.org/support/topic/link-categories-the-before-formatting/)
 *  Thread Starter [gyda](https://wordpress.org/support/users/gyda/)
 * (@gyda)
 * [19 years, 7 months ago](https://wordpress.org/support/topic/link-categories-the-before-formatting/#post-496880)
 * 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?

Viewing 2 replies - 1 through 2 (of 2 total)