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