• Resolved Rookie

    (@alriksson)


    Have issues to display last modified on pages. Automatically works on posts and CPT but not for pages. Even tried the shortcode without success.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Rookie

    (@alriksson)

    And how come you add CreativeWork? and that we can not adjust it. And why do author execute with name and url even if settings are set to not display?

    WP 5.2.1

    Plugin Author Sayan Datta

    (@infosatech)

    Hi,

    Have issues to display last modified on pages. Automatically works on posts and CPT but not for pages. Even tried the shortcode without success.

    Please enable for Pages from Page Options Tab and save changes and it will definitely work.

    And how come you add CreativeWork? and that we can not adjust it. And why do author execute with name and url even if settings are set to not display?

    CreativeWork is the simplest schema to show last modified info on SERPs. Json-ld schema markup not depends on plugin settings. However, you can customize the schema output like this:

    add_filter( 'wplmi_edit_schema_item', 'lmt_filter_schema_output' );
    
    function lmt_filter_schema_output( $json ) {
        // unset author output
        unset( $json['author'] );
        // return json
        return $json;
    }

    However I have a plan to add custom schema markup type like Article, Webpage etc support in the future release of this plugin, but I can’t say the actual date for it. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display on page’ is closed to new replies.