ansonphong / postworld

Wordpress Theme Development Framework
GNU General Public License v2.0
7 stars 0 forks source link

tax_query in pw_register_feed() #56

Closed ansonphong closed 10 years ago

ansonphong commented 10 years ago

Hi Haidy, The pw_register_feed() function is working quite nicely - I like how it's working, very good.

Although, I'm running into an issue here whereby the tax_query field inside the feed_query parameter isn't having an impact on the feed_outline. No matter what I put in tax_query, it doesn't seem to change the feed_outline.

I tested the same queries with pw_query directly, and pw_query is working successfully with tax_query just fine, so the issue perhaps is between pw_register_feed and pw_query somewhere.

Can you verify that this is also happening with you?

ansonphong commented 10 years ago

Here is the query I am using - you can test it

$args = array (
            'feed_id' => 'features-category-life',
            'write_cache'  => true,
            'feed_query' => array(
                'post_count' => 200,
                'fields' => 'all',
                'post_type' => 'post',
                'orderby' => 'date',
                'offset' => 15,
                'post_format' => null,
                'post_class' => null,
                'posts_per_page' => 200,
                'tax_query' => array( // <<<< This isn't working
                    array(
                      'taxonomy' => 'category',
                      'field' => 'slug',
                      'terms' => 'life'
                    ),
                  ),
            )
        );
        pw_register_feed ($args);