Downloads shortcode loops issue
-
When adding a downloads shortcode to a Post the loop_start and loop_end information is not being processed. My code is:
[downloads orderby=”title” order=”DESC” category=”Portico” loop_start=”<table class=”dlm”><tr><th>Form</th><th width=”50%”>Description</th><th width=”15%”>Version</th></tr>” loop_end=”</table>” template=”description”]I have a custom template that has just a basic:
<tr>
<td>(code)</td>
<td>(code)</td>
<td>(code)</td>
</tr>The Title, Description and Version do pull on to the page. It’s just not formatting it into a table.
If I change the custom template in to:
<table>
<tr>
<td>(code)</td>
<td>(code)</td>
<td>(code)</td>
</tr>
</table>
Tables are formatted for each document. So the template is being read. I know it worked at one point on posts. I tried rolling back a few versions to 4.4.4 but still not working.When adding the same code to a Page it works fine.
I am currently on WordPress 5.8.3 and PHP 8.1.1
Thanks
- The topic ‘Downloads shortcode loops issue’ is closed to new replies.