• saturdie

    (@saturdie)


    I use php in a page, but when i center the text in visual, code change -> to -&gt

    I´m try to take the name of the user. The change is here:

    $usuario = esc_attr($current_user->;user_login);

    for it

    $usuario = esc_attr($current_user->user_login);

    https://ww.wp.xz.cn/plugins/insert-php/

Viewing 1 replies (of 1 total)
  • WillBontrager

    (@willbontrager)

    Use the Text tab rather than the Visual when typing in the code.

    If you’re already doing that, using the Visual tab later may convert > to & lt;. Also, if you’re using an interface that’s not the native WordPress dashboard, it may be helpfully changing the character to an HTML entity for you.

    Other than that, perhaps a plugin is messing with it.

    All of those are just guesses.

    Insert PHP itself doesn’t change your code, it just reads it.

    Will

Viewing 1 replies (of 1 total)

The topic ‘Problem, automatic change > to >’ is closed to new replies.