Render shortcodes before paginating content

This way even if a shortcode spans multiple pages it will still display correctly.