• Resolved swpkoen

    (@swpkoen)


    After publishing/updating a post or page “Hide The Title” is always automatically selected, so the title is NEVER SHOWN. When I deselect and update post/page it gets selected again. So with this plugin activated, currently post/page titles will be always hidden…

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)
  • The topic ‘Post/page title is ALWAYS hidden…’ is closed to new replies.