Filtering index.php content by tag?
I’m setting up a sort of CMS for a friend who needs an advertising portfolio:
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?
- The topic ‘Filtering index.php content by tag?’ is closed to new replies.