WordPress.org

Support

Support » How-To and Troubleshooting » Filtering index.php content by tag?

Filtering index.php content by tag?

  • I’m setting up a sort of CMS for a friend who needs an advertising portfolio:

    http://alexflint.net

    Understandably, WP defaults chronological ordering, but this is not ideal for my friend, who wants to display his best work first.

    I came up with the solution of creating a ‘bestof’ tag (using jerome’s keywords) so we can hopefully display only the posts with that tag at the top.

    I initially tried replacing query_posts(); with query_posts(‘tag=bestof’);

    This works to filter my content, but it causes the “Recent Posts” portion of the sidebar to malfunction.

    I have gotten this far but I’m pretty inexperienced with the WP code. Can anyone point me in the right direction?

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Filtering index.php content by tag?’ is closed to new replies.
Skip to toolbar