OK, so I removed Toolset Blocks as presumably I need Views in order to do loops.
Version of Views is 3.6.24
Edited Test View page and single field is STILL not working.
Out of curiosity, reading between the lines, I tried to add a single field block outside of the view. Perhaps my thinking is incorrect and you can't do this, but I got the message "The editor has encountered an unexpected error." But I'm still getting nowhere fast.

Minesh
Supporter
Les langues:
Anglais (English )
Fuseau horaire:
Asia/Kolkata (GMT+05:30)
I've created the following test page and I try to add the single field block within block view loop:
- lien caché
I noticed that when I try to add the "Single Field" block, it shows the following JS error in the browser's console:
TypeError: Cannot read properties of null (reading 'text')
at default (<em><u>lien caché</u></em>)
at <em><u>lien caché</u></em>
at <em><u>lien caché</u></em>
at Array.forEach (<anonymous>)
at n (<em><u>lien caché</u></em>)
at Object.emit (<em><u>lien caché</u></em>)
at s (<em><u>lien caché</u></em>)
at <em><u>lien caché</u></em>
at <em><u>lien caché</u></em>
at <em><u>lien caché</u></em>
if you check - the script conflict happens and the file belongs the Rank Math SEO plugin.
So, you have couple of ways to fix it:
- Either contat rank math support and ask them how you can fix this.
- Disable rank math seo plugin
- use the following code which I've added to your current theme's functions.php file:
add_filter( 'script_loader_tag', function ( $tag, $handle ) {
if ( is_admin() && 'rank-math-content-ai' === $handle ) {
return '';
}
return $tag;
}, 9999, 2 );
Check with Rank math SEO support if they have any other better resolution to resolve the conflict.