Conversation
supportHey guys, I’m interested in adding some extra data in the json feed, but the snippet example does not work: function wp_custom_json_feed_fields( $feed_item, $post ){ $feed_item[‘author’][‘archive_link’] = get_author_posts_url( $post->post_author ); return $feed_item; } add_filter( ‘json_feed_item’, ‘wp_custom_json_feed_fields’, 10, 2); I’ve added the above at the end of my theme’s functions.php file, and there are no changes. EDIT: changing the quotes from ‘ to ‘ or ” seems to have fixed it! This topic was modified 5 years, 6 months ago by cmarius . This topic was modified 5 years, 6 months ago by cmarius . This topic was modified 5 years, 6 months ago by cmarius . This topic was modified 5 years, 6 months ago by cmarius . This topic was modified 5 years, 6 months ago by cmarius . This topic was modified 5 years, 6 months ago by cmarius .
No comments were stored for this source.