We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Display articles across multiple blogs by tag

Display articles across multiple blogs by tag

Jackson_Cunnin2
Shopify Partner
113 0 17

We have 2 legacy blogs, each with articles that get significant search traffic. We're looking to build a new consolidated blog, so that from the users perspective, there's only one parent blog with subcategories. Each subcategory might have articles from each of the 2 legacy blogs.

 

The way I thought we could go about this was to create a parent blog template which links to subcategories. A subcategory would be a URL that displays articles from *any* blog based on a given tag. Is there any way to display all articles from multiple blogs based on tag? Or will it cause issues on pagination etc?

 

Moving articles from one blog to another is out of the question unfortunately because it forces a URL change which could jeopardize our search traffic.

 

Replies 2 (2)

PaulNewton
Shopify Partner
8031 688 1649

@Jackson_Cunnin2 wrote:

Moving articles from one blog to another is out of the question unfortunately because it forces a URL change which could jeopardize our search traffic.


Imagine if migrating platforms, changing domain names, etc etc , that thinking would not work at all.

Urls change, redirects work; as do buttons leading visitors to the update articles.

 

Using liquid to weaving articles from a blog into another blogs articles will cause pagination issues and has to be adjusted with pagination offsets.

And will of course only work for customized template in the online sales channel; so things like external channels or apps will choke on that setup. 

 

Is there any way to display all articles from multiple blogs based on tag


 

Through advanced customization for any template working with tags to return specific resources.

See blog and article objects

https://shopify.dev/docs/api/liquid/objects/blogs

https://shopify.dev/docs/api/liquid/objects/articles 

Or with a custom search set to only return the target blogs articles with the tag.

Also see the section rendering api for frontend ajax

https://shopify.dev/api/section-rendering 

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


Aurnik
Shopify Partner
51 1 4

You actually could move your articles to another blog if you made use of canonical URLs, which would basically tell search engines that you have multiple copies of the same article and you should prioritize one in search.

Product Embed - embed products into blog posts - shopify.com/product-embed
Blog Sync - copy new & updated blog posts across stores - shopify.com/blog-sync