Any way to create a metafield that is a blog article picker?

protohominid
Shopify Partner
3 0 0

There is a metafield of type "page" that lets you pick a one page or a list of pages. Is there any way to do this same thing, but picking blog articles instead?

Replies 3 (3)
SBD_
Shopify Staff
Shopify Staff
1602 227 334

Hey @protohominid 

 

Not a blog picker per se, but one workaround is to use type "URL" - although this is more work for the merchant.

Scott | Developer Advocate @ Shopify 

protohominid
Shopify Partner
3 0 0

Yeah, that wouldn't work for what I need. I need to be able to get the article object in the theme's code so I can output the article's title and featured image along with the url. Any chance Shopify will add this metafield type in the future?

SBD_
Shopify Staff
Shopify Staff
1602 227 334

Passing along your feedback for consideration 🙂

Scott | Developer Advocate @ Shopify