Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter osu9400

    (@osu9400)

    Here’s the PHP that wouldn’t save. I didn’t need the last section so I was able to make it save by just using the first IF statement.

    if ( function_exists( 'sharing_display' ) ) {
        sharing_display( '', true );
    }
    
    if ( class_exists( 'Jetpack_Likes' ) ) {
        $custom_likes = new Jetpack_Likes;
        echo $custom_likes->post_likes( '' );
    }

    I’ve just learned that I have this issue as well. Were you able to solve it?

    Thread Starter osu9400

    (@osu9400)

    I got it to work by just using the first part of the code.

    if ( function_exists( 'sharing_display' ) ) {
        sharing_display( '', true );
    }

    That’s all I needed anyway. I don’t use Jetpack Likes.

    I can’t get anything with PHP code to save. It’s actually happening on multiple sites.

    Thread Starter osu9400

    (@osu9400)

    I also switched plugins to “PHP Code Widget”

    Ah…

    My issue is different.

    I can’t save any thing with <script>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP won't save’ is closed to new replies.