Liquid error (sections/article-template line 64): comparison of String with 0 failed

Topic summary

A Shopify store owner encountered a Liquid template error appearing on blog posts: “comparison of String with 0 failed” at line 64 of the article-template section.

Error Details:

Troubleshooting Steps Requested:

  • Share the error page URL (provided)
  • Navigate to theme code editor
  • Locate article-template file and screenshot line 64 (screenshot shared)
  • Export complete file code for analysis

Current Status:

  • User provided the requested screenshot and URL
  • Awaiting further diagnostic assistance
  • Issue remains unresolved

The error likely stems from a type comparison issue in the Liquid template code where a string is being compared to a numeric value.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hi there.

After I posed a blog. It shows that

Liquid error (sections/article-template line 64): comparison of String with 0 failed

how can I fix it

Hi @mythgreece

Could you please share the error page link?

1/ And please go to your theme > edit code: https://prnt.sc/M4p-gua99Uf4

2/ Search for " article-template" file > find the line 64 and share with us the screenshot there as well.

Looking forward to hearing from you soon.

Hi, Daisy.

Here it is.

Hi @mythgreece

Could you please share the error page link as well?

If possible, please export all the code from that file to the document and share it here with me. Thank you so much!

https://www.mythgreece.com/blogs/news/history-of-eyewear

Here it is.

It seems all the blog pages have this situation

Hi, sorry to bother. Could you please help check this problem. Thank you