WordPress modifies php tags and moves shortcodes
-
The problems occurre since upgrading to WordPress 5
On this page you find a snippet like the following:
<table>
<thead>
<tr>
<th>Veranstaltung</th>
<th>Zeit</th>
<th>Ort</th>
<th>Adresse</th>
</tr>
</thead>
<tbody>
[php_everywhere instance=“1″][php_everywhere instance=“2″][php_everywhere instance=“3″][php_everywhere instance=“4″]
</tbody>
</table>The php_everywhere shortcodes generate td-Tags representing rows. When I click „Update“ at the editor page, WordPress first moves the shortcodes before the beginning table tag and then publishes the page. So the rows are not inserted at the right place.
I verified that it is not a problem of php_everywhere. The same happens using other shortcodes of other plugins.Further when I try to insert a
<?php ... ?>
instead wordpress replaces that with a comment of the form<--?php ... ?-->
.How can I force WordPress to not move my shortcodes or at least not comment out my php code?
- Dieses Thema wurde geändert vor 3 Jahre, 8 Monaten von .
- Dieses Thema wurde geändert vor 3 Jahre, 8 Monaten von .
Die Seite, für die ich Hilfe brauche: [Anmelden, um den Link zu sehen]
- Das Thema „WordPress modifies php tags and moves shortcodes“ ist für neue Antworten geschlossen.