WordPress not returning the right value from slug?

Lets take into consideration the next sample url:

?action=edit&taxonomy=some-categories&tag_ID=183&post_type=some

When I execute this:

Read More
$args=array(
        'name' => 'free',
        'post_type' => 'post',
        'post_status' => 'publish',
        'numberposts' => 1
);
$post = get_posts($args);

I get a empty array even tho the name od this slug contains 2 posts.

Also I tried executing this for debugging matters:

query_posts( "cat=183&order=ASC" );

But Still returns an empty array()

Any Ideas?

Related posts

Leave a Reply