-
Hello,
I want RM to use the Description from Global Setting, if the description is missing in the Post metabox.
I have added the snippet from here https://support.rankmath.com/ticket/rankmath-displays-product-description-instead-of-global-meta-description/ in functions.php but my error log reports this:Trying to get property ‘ID’ of non-object in …wp-content/themes/flatsome-child/functions.php on line 11
Trying to get property ‘post_type’ of non-object in …/wp-content/themes/flatsome-child/functions.php on line 14line 11:
$desc = RankMath\Post::get_meta( ‘description’, $post->ID );line 14:
$desc = RankMath\Helper::get_settings( “titles.pt_{$post->post_type}_description” );
The ticket ‘Error from using snippet to use the Description from Global Setting’ is closed to new replies.