I am trying to create code to display certain default WordPress widgets on my e-commerce site.
I have 6 content boxes which display WordPress widgets:
• Latest Posts
• Archive (last 12 months)
• Blog Post Categories
• Blog Calendar
• Blog Tag Cloud
I was originally using other functions to do this: wp_get_archives, wp_list_categories, etc. and the code I was using worked just fine.. However when I was looking for a way to also include the Blog Calendar and the Tag Cloud widgets, I stumbled across the "the_widget" function. So I thought it wouldn't be a bad idea to use this same function for all of my external widgets. (am I wrong here???)
I have actually read the Reference page for this function.. Unfortunately the reference page is incomplete and there are not enough examples on this page or elsewhere on the web to help me figure out how to structure my code. Specifically I don't know what arguments to use to do the following:
~ Limit the number of archive links to only the last 12 months
~ Not display the widget title
~ Limit the recent posts to just the last five posts
~ Limit the number of tags in the tag cloud
I cannot find ANYTHING anywhere on the web that would help me figure this out.. Hoping someone here knows the magic answers..