Cannot access more than 50 metaobject entries in theme

Cannot access more than 50 metaobject entries in theme

BarbCarlo
Shopify Partner
2 0 5

I'm using a custom metaobject to display location pins on a google map. There are 140+ entries, but doing the following, I am only getting the first 50 returned.

 

var specialLocations = [];
{% for location in shop.metaobjects.find_special_locations.values %}
	specialLocations[{{ forloop.index0 }}] = {
		"name" :  "{{location.name}}",
		"address" :  "{{location.address}}",
		"city" :  "{{location.city}}",
		"state" :  "{{location.state}}",
		"postal_code" :  "{{location.postal_code}}",
		"country" :  "{{location.country}}"
	}
{% endfor %}
Copy

 

I have not been able to find any documentation about this. Is there some kind of pagination or limits on how many metaobjects one could access in a theme?

Replies 3 (3)

Sophiahant123
New Member
8 0 0

You may not be able to access more than 50 metaobject entries in your theme. This could be because your theme is using an outdated codebase or because it is not optimised for performance. To improve your theme's performance, consider upgrading to a newer version or using a different theme. If you are still having trouble accessing more than 50 metaobject entries, please contact our support team for help.

ironpro
Shopify Partner
24 0 5

I don't think the issue depends on the theme.
Here I am also experiencing same issue while pulling metaobject entries to the store front.
There added 70+ but it shows only 54 entries.
I tested on several free and premium themes but it showed same issue.

Developer
JamesLarry
Shopify Partner
1 0 0

Thanks a lot.

If I would to add more 50+ metaobject, how can I do?

jamesL