Hey all. Thanks again for assistance the forum, to my question on bulk changing the featured image for all Posts with a given Tag. I had moved from Wordpress and needed to do that, plus something else (due to being ‘too clever by half’ with the WP exported JSON^).
My knowledge of JavaScript is not much above Hello World, but I got both things to work using your JS Admin library and node:
# Pseudocode
# 1
If primary_tag = Australia
Set feature_image to http://imagesite.whatever/numbat.jpg
#2
If (current) feature_image filename contains 'default.jpg'
Set feature_image to http://imagesite.whatever/newimage.jpg
I’d be happy to quickly document it, in case anyone else has similar requirements. Or might, in the future. If so, how/where? I know MD quite well. Thanks.
^ Just FYI: In the JSON , I hardcoded the URL - for basically all post’s feature_images - to a local image (eg default.jpg), before importing the JSON. It didn’t seem to work properly ; viz no ‘mini’ ones were created for the phone facet etc.