Scenario: I am creating collapsible panels in the sidebar and displaying ALL categories as DIVs and all Posts links in those category DIVs. Simple enough. I got all categories by get_categories('orderby=name&order=ASC')
and now looping through every category to get ALL posts in each category.
Problem: The code get_posts('nopaging=1&category='.$category->cat_ID)
gives me all posts but WITH content
and other things too. All, I want is the permalink of the post. That's it. I believe using get_posts
will thus create big overhead as there are around 1000 posts in over 20 categories.
Solution: A function or piece of code that can just get me all the posts in a category with permalink and without other stuff, especially content as it's the largest overhead.