• Hi,

    I use your plugin to insert php in pages in the txt field. For some reason the php code is displayed as text above the top menu.

    Not sure what is wrong?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Unfortunately, there is insufficient information to help you.

    Respond with the code you’re using and I’ll test it on my development site.

    Will

    Thread Starter maximmmus

    (@maximmmus)

    Thanks for quick response.
    I got this! It was a punctuation problem.
    "<ul>" instead of '<ul>' which was good

    Thread Starter maximmmus

    (@maximmmus)

    Hi there
    It seems the problem is back this morning.
    For some reason in the edit page the text editor is changing from text to visual which then screws the php code and how is rendered on the page and gets displayed as text above the top bar.

    Can you help with this?
    Thanks

    The code I use in page:

    [insert_php]
    echo '<ul>';
    echo SimplePieWP(
            include('/file.php')
    ,array(
    	'items' => 50,
            'template' => 'textrss_summary',
            'show_thumbnail' => 1,
    ));
    echo '</ul>';
    [/insert_php]
    • This reply was modified 9 years, 4 months ago by maximmmus.
    • This reply was modified 9 years, 4 months ago by maximmmus.

    Yes, I can understand that it would be annoying to have to remember to click the “Text” tab every time before doing an edit.

    Perhaps a plugin that’s active in your WordPress is messing with you. Visual Composer and Insert PHP tend to be incompatible, for example. There may be others.

    An option would be to create a stand-alone PHP script that generates the list. Then use the Insert Here plugin from

    http://www.willmaster.com/software/WPplugins/insert-here-wordpress-plugin.php

    to insert the script’s output directly into the page.

    That’s all I can think of at the moment.

    Will

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘text switch to visual’ is closed to new replies.