diff --git a/src/components/post-include-controls.js b/src/components/post-include-controls.js index 7d0df52..8859113 100644 --- a/src/components/post-include-controls.js +++ b/src/components/post-include-controls.js @@ -88,7 +88,8 @@ export const PostIncludeControls = ( { attributes, setAttributes } ) => { return
{ __( 'Loading…', 'advanced-query-loop' ) }
; } - if ( posts.length > 0 && ! posts[ 0 ].title.rendered ) { + // If the first post in the posts array does not have a title, don't render the component. + if ( posts.length > 0 && ! posts[ 0 ].title ) { return null; }