fb-instant-articles
fb-instant-articles copied to clipboard
ACF field data not inserted with "instant_articles_content"
I've added the following to functions.php
add_filter('instant_articles_content','add_acf_field');
function add_acf_field($data) {
$data = get_field('top_content') . $data . get_field('bottom_content');
return $data;
}
But the content in the ACF field is not inserted on the first post/update, I need to update the post again to get the content to be scraped correctly.
Can this have something to do with IA scrapping the content before the field is saved? And if that is the case is it possible to delay the start of the scraping?
Version Info
- Plugin version: 4.1.1
- WordPress version: 4.9.8
- PHP version: 7.2.14
This issue has been marked stale because it has been open for 30 days with no activity. If there is no activity within 7 days, it will be closed.
This is an automation to keep issues manageable and actionable and is not a comment on the quality of this issue nor on the work done so far. Closed issues are still valuable to the project and are available to be searched.