Forum Replies Created
-
AuthorPosts
-
Leora Dodrill
ParticipantSorry, that introduced more problems. I'll have to recode the theme. Thank you for your help!
Leora Dodrill
ParticipantSorry, I meant, can I leave that call to /inc/metabox/metabox-functions.php commented out until I redesign the theme? Or, should I continue trying to fix this?
Leora Dodrill
ParticipantHello,
Thank you for your answer.The theme was there when I took over the site and added functionality with Meta Box.
I commented out the call to count() in one theme file and changed iinit.php back to init.php and that worked.
However, if I uncomment the call to /inc/metabox/metabox-functions.php, in functions.php, I receive the same errors as reported above. I moved this to local dev to troubleshoot errors:
( ! ) Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in C:\Users\leora\Local Sites\the-website\app\public\wp-content\themes\website-theme\inc\metabox\init.php on line 746
( ! ) TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in C:\Users\leora\Local Sites\the-website\app\public\wp-content\themes\website-theme\inc\metabox\init.php on line 746Can I leave that uncommented until I redesign the theme? Or, should I continue trying to fix this?
Leora Dodrill
ParticipantHello,
I see that loops are scoped so need to declare set before the loop. I'm having trouble now because posts_per_page must be wrong?{% set args = { post_type: 'item_selection_group', posts_per_page: -1, orderby: 'date', order: 'ASC' }
%}
{% set post.item_selection_group = mb.get_posts( args ) %}Leora Dodrill
ParticipantHello,
I just can't get it to work in email. I do have it working in Views and now would like to use orderby: 'clone.select_d8hqbs14ib6.label', order: 'ASC' but this is missing something. Can you help, please?{% for clone in post.item_selection_group, orderby: 'clone.select_d8hqbs14ib6.label', order: 'ASC' }
<td class="cs-items">{{ clone.select_d8hqbs14ib6.label }}</td>
<td class="cs-items">{{ clone.number_e37aexcx7p }}</td>
<td class="cs-items">{{ clone.brand_and_item_description }}</td>
<td class="cs-items">{{ clone.size }}</td>
<td class="cs-items">{% for item in clone.checkbox_vuqlhl9pcq %}
{{ item.value }}
{% endfor %}</td>
<td class="cs-items">{{ clone.first_alternate }}<br>{{ clone.second_alternate }}<br>{{ clone.third_alternate }}</td>
<td class="cs-items">{{ mb.checkbox( clone.prefer_organic, 'Yes', 'No' ) }}</td>
<td class="cs-items">{{ mb.checkbox( clone.organic_only, 'Yes', 'No' ) }}</td>
</tr>
{% endfor %} -
AuthorPosts