WPIntell

Source evidence

Custom Fields example code not working

JSON Feed (jsonfeed.org) · support · 2020-11-12T12:32:00+00:00

neutralsentiment
mediumseverity
0.42relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 33 rows with source links

12.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
cmarius resolved
Hey 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 .

Comments

0 shown

No comments were stored for this source.