WordPress.org

Ready to get started?Download WordPress

Forums

Sort posts (2 posts)

  1. creativepurple
    Member
    Posted 7 years ago #

    it would be nice if someone can give an example of how sort posts (in the homepage).

    i'm trying to do this, but its really hard to find informations about this subject.

    the idea is to display the posts with the default loop (posts of all categories) and add 3 links to sort the list of posts:
    sort by name, sort by date, sort by custom field.

  2. mank1
    Member
    Posted 7 years ago #

    This isn't WP specific, but it'll give you the idea.
    http://www.phpfreaks.com/tutorials/147/0.php

Topic Closed

This topic has been closed to new replies.

About this Topic