# Need help with "WordPress actions on empty loop elements"

**URL:** <https://forum.pinegrow.com/t/need-help-with-wordpress-actions-on-empty-loop-elements/8400>\
**Category:** WordPress\
**Created:** [September 27, 2023, 11:15am UTC](https://forum.pinegrow.com/t/need-help-with-wordpress-actions-on-empty-loop-elements/8400 "2023-09-27T11:15:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Post date:** [September 27, 2023, 11:15am UTC](https://forum.pinegrow.com/t/need-help-with-wordpress-actions-on-empty-loop-elements/8400/1 "2023-09-27T11:15:46Z")

</div>

Continuing the discussion from [FIXED - STRING " **WP\_START\_FOOTER**" in exported footer.php](https://forum.pinegrow.com/t/fixed-string-wp-start-footer-in-exported-footer-php/8367/4):

> [@FIXED - STRING "\_\_\_\_WP\_START\_FOOTER\_\_\_\_" in exported footer.php](https://forum.pinegrow.com/t/fixed-string-wp-start-footer-in-exported-footer-php/8367/4):
>
> Example of the workaround:
> 
> ```auto
> ...
> <div class="no-posts">
> <?php get_template_part( 'template-parts/no-results' ); ?>
> </div>
> 
> ```

Using this method the template part is always rendered, even if there are results.

 ![CleanShot 2023-09-27 at 13.14.06@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/a/a9efc4483181a5b17b622393e13890d1119b6c90.jpeg)

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [September 27, 2023, 5:38pm UTC](https://forum.pinegrow.com/t/need-help-with-wordpress-actions-on-empty-loop-elements/8400/2 "2023-09-27T17:38:56Z")

</div>

@MichelyWeb thanks for the report. I have the fix ready, will see tomorrow how to get this out asap.

---

<div class="post-metadata">

**Author:** ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)\
**Post date:** [September 28, 2023, 12:01pm UTC](https://forum.pinegrow.com/t/need-help-with-wordpress-actions-on-empty-loop-elements/8400/3 "2023-09-28T12:01:58Z")

</div>

@MichelyWeb the update is out now. It also has the new setting for loading block assets on demand and fix for ACF blocks.

> **[Release Pinegrow Web Editor 7.72 · Pinegrow/PinegrowReleases](https://github.com/Pinegrow/PinegrowReleases/releases/tag/pg7.72)**
>
> An official repository for all Pinegrow releases. Contribute to Pinegrow/PinegrowReleases development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)\
**Post date:** [September 28, 2023, 1:16pm UTC](https://forum.pinegrow.com/t/need-help-with-wordpress-actions-on-empty-loop-elements/8400/4 "2023-09-28T13:16:24Z")

</div>

@matjaz thank you very much!
