Title: &#8220;Include Posts&#8221; Throws error when selecting entries
Last modified: July 11, 2024

---

# “Include Posts” Throws error when selecting entries

 *  Resolved [Matthias Bathke](https://wordpress.org/support/users/matthiasbathke/)
 * (@matthiasbathke)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/)
 * When attempting to select titles other than the default one, an error occurs,
   preventing the selection of different posts.
 * react-dom.min.js?ver=18.2.0:10 Uncaught TypeError: Cannot read properties of 
   undefined (reading ‘title’)
   at variations.js?ver=31095a155ced190e6fa5:1:11879at
   variations.js?ver=31095a155ced190e6fa5:1:11930at Array.map ()at onChange (variations.
   js?ver=31095a155ced190e6fa5:1:11789)at ae (components.min.js?ver=c4b2ef1c62202e4e2d1e:
   48:469116)at se (components.min.js?ver=c4b2ef1c62202e4e2d1e:48:469143)at onSelect(
   components.min.js?ver=c4b2ef1c62202e4e2d1e:48:472835)at components.min.js?ver
   =c4b2ef1c62202e4e2d1e:48:363057at Object.Xa (react-dom.min.js?ver=18.2.0:10:105741)
   at B (react-dom.min.js?ver=18.2.0:10:10501)
    -  This topic was modified 1 year, 11 months ago by [Matthias Bathke](https://wordpress.org/support/users/matthiasbathke/).
    -  This topic was modified 1 year, 11 months ago by [Matthias Bathke](https://wordpress.org/support/users/matthiasbathke/).
    -  This topic was modified 1 year, 11 months ago by [Matthias Bathke](https://wordpress.org/support/users/matthiasbathke/).

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/#post-17894007)
 * Hello and thanks for using AQL.
 * I cannot reproduce this on my end. Can you provide a bit more information please?
    1. Is this happening while editing a template or on a piece of content?
    2. Can you explain further what you mean by “When attempting to select titles other
       than the default one”. I’m not sure I understand the context .
    3. Is it possible to share a screencast of what you are seeing with me?
 * Thanks
    -  This reply was modified 1 year, 10 months ago by [Ryan Welcher](https://wordpress.org/support/users/welcher/).
 *  Thread Starter [Matthias Bathke](https://wordpress.org/support/users/matthiasbathke/)
 * (@matthiasbathke)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/#post-17909680)
 * Hi Ryan,
 * thank you for your response, concerning your questions:
    1. This occurs in Site Editor and on a piece of content (e.g. new post in post 
       editor)
    2. This occurs on some titles. Some posts work, some not.
    3. I’ve tried to create a helpful screencast showing the issue, but I don’t think
       it would help here. You would see only some posts will be selectible only and
       some not, but screencast is not showing any difference between the posts. Maybe
       access to staging to reproduce the issue live is a faster way to reproduce the
       issue. May I ask to send the credentials somewhere for a quick look?
 * Kind regards,
 * Matthias
 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/#post-17920523)
 * HI Matthias,
 * You can send access to [me@ryanwelcher.com](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/me@ryanwelcher.com?output_format=md)
   and I’d be happy to take a look.
 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/#post-17922608)
 * Do you happen to have any posts without titles?
 *  Thread Starter [Matthias Bathke](https://wordpress.org/support/users/matthiasbathke/)
 * (@matthiasbathke)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/#post-17926601)
 * Hi Ryan,
 * I’ve sent you the mail with the infos for the staging. Big thanks for looking
   into it.
 * Kind regards,
 * Matthias
 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/#post-17939447)
 * Matthias,
 * Thanks for providing that information. The issue seems to stem from your page
   titles having trailing spaces and so the the logic is failing – i.e **“Die Fintech-
   Revolution ist tot”** vs “**Die Fintech-Revolution ist tot “**
 * I’m not sure why that would be the case, but I was able to create a fix for it
   in AQL and will release it with the next release of the plugin.
 * That being said, it seems odd to me that the titles would have trailing spaces
   so you might want to look into why that is happening.
 * Thanks again for your patience on this.
 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/#post-17939633)
 * I just released 3.1.1 with the fix I mentioned. Please let me know if you run
   into any further issues.
 *  Thread Starter [Matthias Bathke](https://wordpress.org/support/users/matthiasbathke/)
 * (@matthiasbathke)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/#post-17947861)
 * Hi Ryan,
 * big thanks for your support!
 * Kind regards,
 * Matthias
 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/#post-17948442)
 * I’m glad we were able to get it resolved. Thanks for sticking with me on this.
    -  This reply was modified 1 year, 10 months ago by [Ryan Welcher](https://wordpress.org/support/users/welcher/).

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘“Include Posts” Throws error when selecting entries’ is closed to new
replies.

 * ![](https://ps.w.org/advanced-query-loop/assets/icon-256x256.png?rev=3106826)
 * [Advanced Query Loop](https://wordpress.org/plugins/advanced-query-loop/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-query-loop/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-query-loop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-query-loop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-query-loop/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/include-posts-not-working-with-multiple-advanced-query-loop-blocks/#post-17948442)
 * Status: resolved