• I have no way to determine what error is being thrown by this method.

    $blog_name_excerpt = wp_html_excerpt(‘AAAAA’, 4);

    It’s supposed to just safely extract a substring. I don’t know what the error is.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I don’t get an error with that code. If you are getting an error, please post it.

    Thread Starter alexmichaelelliott

    (@alexmichaelelliott)

    I don’t know how to get the error that’s breaking my code. I just know there’s an error because all my flags before that line show up, and all my flags afterward don’t. How do you check what error messages you get from a PHP page?

    If you are getting a PHP error, you usually get an error message though this behavior can be switched off. You can put define('WP_DEBUG', true); in your wp-config.php and get a colossal list of warnings and errors if you want.

    But is sounds like you have an HTML/CSS error not a PHP one. Does your page validate?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_html_excerpt throws error’ is closed to new replies.