Community Forums › Forums › Archived Forums › General Discussion › How to show the date in google serps, when post was updated the las time?
Tagged: post_modified_date
- This topic has 13 replies, 3 voices, and was last updated 7 years, 7 months ago by Jan23.
-
AuthorPosts
-
July 24, 2016 at 9:21 am #190111Jan23Member
Hi,
im using the news pro theme 3.0.2.
Maybe someone can help me how to show the date in the google searps when my post was updated the last time?
Right now the serps only show when the post was published first....Thx a lot for your help!
July 24, 2016 at 7:36 pm #190137Brad DaltonParticipantYou could try the post modified date shortcode using the post info filter and then fetch the bot in GWMT
[post_modified_date]
September 9, 2016 at 9:20 am #192879Jan23MemberHi Thanks for your answer and sorry for my late response.
I filled in the custom field "box_meta_date" the shortcode "[post_modified_date]".But it is not working.
You know how to fix this?Thanks for your help!
September 9, 2016 at 9:29 am #192880Brad DaltonParticipantSeptember 10, 2016 at 5:19 am #192938Jan23MemberSorry i dont understand what u mean.
How to modify this code with the new shortcode?
Isn't there just a code which i can put into style.css or sth. like this?
Thanks for your help.
September 10, 2016 at 5:25 am #192940Jan23Memberor do i have to put this code:
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;
}into the custom field "box_meta_date" ?
September 10, 2016 at 8:03 am #192942Victor FontModeratorThe code is added to your functions.php file. It is not meant for a custom field.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?September 11, 2016 at 5:10 am #192971Jan23MemberBut in which way i have to change it?
Can you post the code which i have to add to functions.php here?Thanks for your help!
Kind regards,
JanSeptember 11, 2016 at 11:58 am #192982Victor FontModeratorBrad already provided you with the link to the code and details about what needs to be changed.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?September 11, 2016 at 12:01 pm #192983Jan23MemberIm sure he did, but i didnt understand what he mean...
Can someone plz explain me?
Which code i have to add to functions.php ?Sorry im not a native english speaker.
Thx a lot for help!
Kind regards,
JanSeptember 13, 2016 at 11:17 am #193098Jan23MemberI realy would be so thankfull for someone who could explain me how to fix this problem.
Thank you very much!September 13, 2016 at 11:19 am #193099Jan23Memberby the way.
This code:add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;
}already exists in my functions.php
but the date in the google search resulsts still shows the date when the post was created.
September 15, 2016 at 9:11 am #193195Jan23MemberYeah very nice. thx a lot for your support studiopress. NOT!
NEVER AGAIN STUDIOPRESS !
September 15, 2016 at 9:16 am #193196Jan23MemberSo nice u have same work in writing the sentence that u dont want to help anymore.
Instead of just giving a fuckin hint how to solve it. Its obvieus i didnt understand this solution. I dont see that he has made anything clear. Maybe for someone who is css expert. Very nice thx a lot for this support....U get much better and friendlier support at other theme vendors.
I will pay a guy now to Fix this problem.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.