Hi ,
how to set Item Webpage Title for SEO purpose, without renaming the item ?
Item Title in Item doctype :
Item displayed on website :
Pointer :
Hi ,
how to set Item Webpage Title for SEO purpose, without renaming the item ?
Item Title in Item doctype :
Item displayed on website :
Pointer :
Two ways as of now. v12.1.6
title to desired Item doctype field_name
My link building consultant explained this in a completely different way. Firstly, I add the function to functions.php file:
function customTitle(){
global $post;
$customTitle = get_post_meta($post->ID, ‘custom_on_page_title’, true);
if(!$customTitle){
the_title();
}else{
echo $customTitle;
}
}
Secondly, I create a custom field with the name custom_on_page_title and set the value to whatever your title should be. Thirdly, I open the template which is going to be edited and replace the_title() with customTitle().