Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter swpkoen

    (@swpkoen)

    Ok, figured it out myself! The title wasn’t actually always hiding, but the “Hide The Title” checkbox was always automatically checked after publishing/updating post or page. The value that gets saved in the database postmeta table is either ‘on’ or ‘off’, depending on the status of the checkbox. The problem was that the plugin was looking for a boolean (true or false) instead of the values ‘on’ or ‘off’ to decide to show the checkbox as checked or not.

    Solution:
    On line 65 in plugin file ‘ams-hide-page-and-post-title.php’ change

    if( (bool) $value )

    to

    if( $value === ‘on’ )

    and everything works as it should!

    Please update plugin!

Viewing 1 replies (of 1 total)