Skip to content
Advertisement

Tag: list

Display only 10 List Items using PHP?

I have built a subcategory widget, which pulls all subcategories from a parent cat ID and displays them as list items. I only want to display 10 list items and beyond that, display a “view all” link …

Convert list into an array using php. How?

I have a function called listelements(), which outputs text like <li>text1</li><li>text2</li>. I have more than 500 elements. Now I want to convert it into an array. Can anyone help me? Thanks. Note: I’m using php Update: The thing i want to achieve is alphabetical navigation. As of now my function displays links in list order. Instead of that i want

Advertisement