xscv2314
Forum Replies Created
-
Forum: Plugins
In reply to: [Instant Articles for WP] Prevent article from being included in the feedkey is the name of the field (eg actor_name, image_field etc). Then you can add a ‘value’ and ‘compare’ entry to the array so that you can check the content of the custom field you want to use. See here.
Also you can check the answer link above for a better explanation.
Forum: Plugins
In reply to: [Instant Articles for WP] Prevent article from being included in the feedWell I finally found an answer
function instant_articles_query_modified($query) { if($query->is_main_query() && isset(INSTANT_ARTICLES_SLUG) && $query->is_feed(INSTANT_ARTICLES_SLUG)) { $query->set('meta_query', array( array( 'key' => 'your_required_meta' ) )); } add_action('pre_get_posts', 'instant_articles_query_modified', 10, 2);Forum: Plugins
In reply to: [Instant Articles for WP] Include custom fields in feedOh forgot, problem solved!
Forum: Plugins
In reply to: [Instant Articles for WP] Include custom fields in feedThanks a lot diegoquinteiro! I have to admit I was wrong, I updated the plugin and the above code worked perfectly.
But, is there a way to add a child to the head of the children array?
I tried to use the ‘instant_articles_before_transform_post’ action but it didn’t worked.
I’m just trying to place the video on top of the content if that is possible.
I tried to change the children array but it is set as private.Forum: Plugins
In reply to: [Instant Articles for WP] Include custom fields in feedHi, thanks for the response, but I’m a bit confused. Isn’t this example from a different plugin than the one I’m referring to?