Skip to main content

Greg McVerry

Trying to Create Wordpress Filters

1 min read

I have been playing a bit with indigineous as an experiment.


Corrently it is set to publish to my wordpress site. Trying to create a filter so only the post-kind "article" shpws up on my main blog theme on the wordpress site.


Been trying different variations of this in functions.php


function myfeed_request($qv) {
    if (isset($qv['feed']) && !isset($qv['post_kind']))
        $qv['post_kind'] = array('article', );
    return $qv;
add_filter('request', 'myfeed_request');

It doesn't work I will keep trying.