/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php # Помечаем первый и поÑледний пункт в меню Wordpress ( use wp_list_categories() ) function add_markup_categories($output) { $output=substr_replace($output, " last-cat-item cat-item", strripos($output, "cat-item"), strlen("cat-item")); return $output; } add_filter('wp_list_categories', 'add_markup_categories'); ?>
Comments
