Hello everyone,
I want to use this plugin's "auto generate descriptions" feature for all my posts, the plugin works great. It'll get the post's excerpt as post's description, i want know how can i adding the post's title into auto generating description? The final post description will "post title" + "auto generate description". I have checked All in one source code, how to modify the code as follow to get that auto descriptions:
function get_post_description($post) {
$description = trim(stripcslashes($this->internationalize(get_post_meta($post->ID, "description", true))));
if (!$description) {
$description = $this->trim_excerpt_without_filters_full_length($this->internationalize($post->post_excerpt));
if (!$description && get_option("aiosp_generate_descriptions")) {
$description = $this->trim_excerpt_without_filters($this->internationalize($post->post_content));
}
}
return $description;
}
If you know how to modify it, please help me. Thanks!