INTERTEXTrEVOLUTION

Make.Hack.Play.Learn

← Post archive

Trying to Create Wordpress Filters

I have been playing a bit with indigineous as an #indieweb 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.

By Greg McVerry · Permalink · Original Known URL