Method name should be do_trail_items() instead of do_items().
Simplify the conditional logic when doing archive items.
Added filters on 'the_content' to make it impossible for the framework shortcodes to be used in the post content.