Potential issue with latest update

Last night I noticed that a number of my L&L templates were no longer rendering.

I use Astra Pro, the portions that are not rendering are in Custom Layouts and it appears that the parent post ID is not visible to L&L anymore within certain Custom Layouts.

I added a <Field all /> to see what might be going on … here’s the start of that:

Array
(
    [id] => 48295
    [name] => tags-and-people
    http://timex.local => http://timex.local/astra-advanced-hook/tags-and-people/
    [title] => Tags and people
    <p><!-- wp:paragraph --></p>
<p>Information Coordinator: Bill Miller</p>
<p><!-- /wp:paragraph --></p>
<p><!-- wp:tangible/template {"template":"\u003cField id /\u003e","current_post_id":24780} /--></p>
 => <div class="postfooter">
<div><em>Tags: </em></p></div>
</p></div>
<pre><code>Array
(
    [id] => 48295
    [name] => tags-and-people
    http://timex.local => http://timex.local/astra-advanced-hook/tags-and-people/
    [title] => Tags and people
    <p><!-- wp:tangible/template {"template":"\u003cdiv class=\u0022postfooter\u0022\u003e\u003cdiv\u003e\u003cem\u003eTags: \u003c/em\u003e\n  \u003cIf loop exists taxonomy=category post=current\u003e\n  \u003cTaxonomy category\u003e\n    \u003ca href=\u0022{Field url}\u0022\u003e\u003cTerm title /\u003e\u003cIf not last\u003e, \u003c/If\u003e\u003c/a\u003e\u003c/Taxonomy\u003e\u003c/If\u003e\u003cIf loop exists taxonomy=post_tag post=current\u003e, \n    \u003cTaxonomy tag\u003e\n      \u003ca href=\u0022{Field url}\u0022\u003e\u003cTerm title /\u003e\u003cIf not last\u003e, \u003c/If\u003e\u003c/a\u003e\n  \u003c/Taxonomy\u003e\u003c/If\u003e\n  \u003c/div\u003e  \n\u003cIf loop exists type=taxonomy_term taxonomy=indiv post=current\u003e\n\u003cdiv\u003e\u003cem\u003ePeople: \u003c/em\u003e\n  \u003cTaxonomy indiv\u003e\n  \u003ca href=\u0022{Field url}\u0022\u003e\u003cTerm title /\u003e\u003cIf not last\u003e, \u003c/If\u003e\u003c/a\u003e\n\u003c/Taxonomy\u003e\n  \u003c/div\u003e  \n\u003c/If\u003e\n  \u003c/div\u003e\n\u003cField all /\u003e","current_post_id":48295} /--></p>
 => <!-- wp:tangible/template {"template":"\u003cdiv class=\u0022postfooter\u0022\u003e\u003cdiv\u003e\u003cem\u003eTags: \u003c/em\u003e\n  \u003cIf loop exists taxonomy=category post=current\u003e\n  \u003cTaxonomy category\u003e\n    \u003ca href=\u0022{Field url}\u0022\u003e\u003cTerm title /\u003e\u003cIf not last\u003e, \u003c/If\u003e\u003c/a\u003e\u003c/Taxonomy\u003e\u003c/If\u003e\u003cIf loop exists taxonomy=post_tag post=current\u003e, \n    \u003cTaxonomy tag\u003e\n      \u003ca href=\u0022{Field url}\u0022\u003e\u003cTerm title /\u003e\u003cIf not last\u003e, \u003c/If\u003e\u003c/a\u003e\n  \u003c/Taxonomy\u003e\u003c/If\u003e\n  \u003c/div\u003e  \n\u003cIf loop exists type=taxonomy_term taxonomy=indiv post=current\u003e\n\u003cdiv\u003e\u003cem\u003ePeople: \u003c/em\u003e\n  \u003cTaxonomy indiv\u003e\n  \u003ca href=\u0022{Field url}\u0022\u003e\u003cTerm title /\u003e\u003cIf not last\u003e, \u003c/If\u003e\u003c/a\u003e\n\u003c/Taxonomy\u003e\n  \u003c/div\u003e  \n\u003c/If\u003e\n  \u003c/div\u003e\n\u003cField all /\u003e","current_post_id":48295} /-->
    [excerpt] => 

The [id] field is Astra’s custom layout ID. The ID number in the wp:tangible/template embed is the parent post ID.

In the custom layout I took this from, the L&L code does work.

In a template that does not work, the <Field all /> is actually called twice.

I can send page source that includes the Field all dump, if that helps.

FYI: This started after the most recent L&L update. It worked successfully on Feb 27, when I ran a static export of my site. The Astra plugins have not updated since January.

Thanks!
David

We can certainly test things on our end to see if we’re able to replicate this issue. Is there any chance you could give us access to a staging site where we might be able to replicate this issue? If so, you could send some credentials here and we’ll take a look. You could also simply send us more details about your template and site config there if you aren’t able to create a tinker-safe staging environment. If not, we’ll try to replicate the issue on our end, but it might be faster if we’re able to test things on an existing site where this isn’t working.

Are you able to figure out why certain Custom Layouts are causing issues but others aren’t? The easiest way for us to replicate this would be if you could walk me through the steps you’re taking on your site to replicate this issue using the simplest L&L template possible (i.e. testing whether <Field id /> works by itself in a template or if the issue only appears when when you use <Field id /> in a specific loop context).

Thanks for any additional clarifications you’re able to provide about this issue!

You fixed it! Thank you!

1 Like