show subcategories with picture and description


/ Published in: PHP
Save to your folder(s)

second level of categories (when offset=-1 doesn't work, like for "get_category_link()"), pictures must be called exactly like category slug and placed to "catimg" folder. also i used "substr" for cut decription (314 symbols but you can change it). UPDATE: substr() replaced for mb_substr cause of unicode unknown symbols in cyrilic. UPDATE2: replaced mb_substr for function (http://snipplr.com/view/67430/cut-string-without-partial-words-unicode-version-with-mbsubstr/), now we have only full words, no partial.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.