• I’m trying to use get_posts(“tag=x”) to get posts with a certain tag. I took this syntax from the Codex entry for the function, but it doesn’t work, it just shows all posts. Other arguments like “numberposts” work as expected.

    I looked at the get_posts() definition in includes/post.php and there seems to be no mention of a “tag” argument, at least in WordPress 2.5

    edit:
    figured out that query_posts() seems to do what I need, but the Codex entry for get_posts() is a bit misleading as far as I can tell for WordPress 2.5

The topic ‘get_posts() by tag, WordPress 2.5, error in Codex?’ is closed to new replies.