Invalid argument in/builder-page.php on line 172
I get the following message when I try to insert a Posts Grid in Layout Builder for Lightfast. I only installed it yesterday.
Warning: Invalid argument supplied for foreach() in /websites/un/uni-scribe.com/wp-content/themes/lightfast/builder-page.php on line 172
It sounds like it’s trying to reference something that doesn’t exist. Are the parameters in your shortcode correct? Do the category ID’s exist?
I’ve installed Lightfast as it came out of the box and haven’t touched the shortcakes. The category is uncategorised - I’ll try creating a category and see if that makes a difference.
It fixed it when I created and assigned a category.
haha “shortcakes” Autocorrect? The shortcode parameter expects a category ID (a number) and the category(s) should not be empty. Let me know what you find out.