WordPress.org

Support

Support » How-To and Troubleshooting » Show last 10 posts in a category, in alphabetical order

Show last 10 posts in a category, in alphabetical order

  • obsessedwithfilm

    @obsessedwithfilm

    Hello,

    How can I show the latest 10 posts in alphabetical order. This is being used outside of the main loop as a sidebar list… but all I can seem to get working is to show 10 posts in alphabetical order from the whole category… rather than the LATEST 10 posts (i.e. the last 10 posted).

    <?php query_posts(‘cat=3&showposts=10&orderby=title&order=ASC’); ?>

    This doesn’t work for obvious reasons so how can it be done?

  • The topic ‘Show last 10 posts in a category, in alphabetical order’ is closed to new replies.
Skip to toolbar