After making use of the filter to control the shortcode output, I thought about an enhancement to allow people specify the list type.
Currently it produces an unordered list. How about an ordered (numbered) list? How about no list at all (use divs)?
I write some code to do this and pasted a patch to http://pastebin.com/jwT8EzNu
The commented out $output line should be removed. I replaced it with a sprintf as I felt it was easier to read.
I added a post counter and included this as an id e.g. post-2. I didn’t use a class because it could conflict with the class in the body tag.
- The topic ‘[Plugin: Display Posts Shortcode] Add option to use ordered list or no list’ is closed to new replies.