[wp-trac] [WordPress Trac] #59736: Regression: Singular block template
WordPress Trac
noreply at wordpress.org
Wed Oct 25 17:30:26 UTC 2023
#59736: Regression: Singular block template
--------------------------+---------------------
Reporter: afragen | Owner: (none)
Type: defect (bug) | Status: new
Priority: high | Milestone: 6.4
Component: Query | Version:
Severity: critical | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------
Comment (by echoplugins):
We are the authors of the echo-knowledge-base plugin. We implemented the
following change in our single post template file (single-article.php)
that seem to fix the issue:
{{{#!php
<?php
if ( in_the_loop() ) {
// KB article content;
} else {
while ( have_posts() ) {
the_post();
// KB article content;
}
}
}}}
Please let us know if there is anything else we should add or change.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59736#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list