Quantcast
Channel: Replace author with custom field in feed - WordPress Development Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by Bainternet for Replace author with custom field in feed

try this: add_filter( 'the_author', 'feed_author' ); function feed_author($name) { if( is_feed() && !is_admin()) { global $post; $author = get_the_terms($post->ID,'article_author'); if (...

View Article



Replace author with custom field in feed

I'm doing some customization on a theme that was previously written by someone else. Rather than use multiple user accounts to assign articles, they created a taxonomy for the custom author name(s) so...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images