Support » Allgemeine Fragen » 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 2 Jahre, 7 Monaten von trackersb.
    • Dieses Thema wurde geändert vor 2 Jahre, 7 Monaten von trackersb.

    Die Seite, für die ich Hilfe brauche: [Anmelden, um den Link zu sehen]

Ansicht von 1 Antwort (von insgesamt 1)
  • Hello @trackersb and welcome to the German support forums.

    We try to keep these forums acessible to all people not speaking English. Therefore I kindly ask you to either rephrase your question in German or ask in the International support forums.

    Please also make sure, you read our FAQ before posting questions.

    Thank you. Best regards, Torsten

Ansicht von 1 Antwort (von insgesamt 1)
  • Das Thema „WordPress modifies php tags and moves shortcodes“ ist für neue Antworten geschlossen.