Home › Forums › Tutorials and Hints from Users › approved comments not showing on blog
- This topic has 2 replies, 2 voices, and was last updated 3 years ago by
Weaver.
-
AuthorPosts
-
November 13, 2020 at 04:54 UTC - Views: 16 #66020
Pangaea
ParticipantHi, I use 2010 Weaver (I know, an oldie) at http://www.ourpangaea.net. Recently all my approved comments have disappeared from the bottom of each blog. I went on the WordPress forum and had this reply from someone:
Change the following line in your functions.php file.
From:
function twentyten_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' :
To:
function twentyten_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'comment' :
So ignore everything except the last line where
case '' :
is changed tocase 'comment' :
So two questions – first, will this work? Because I’m not a programmer and I can’t start reliably changing code. Second, if so, where can I find the functions.php so I can try to make these changes?
Sorry for the basic questions but this is where I’m at. Can you help?
Thanks!
November 13, 2020 at 06:17 UTC - Views: 21 #66021Weaver
KeymasterI have no idea if that would fix anything. I literally don’t even have an archive copy of 2010 Weaver anymore, if you can believe that.
Using a 10 year old theme that is obsolete, and is actually not very safe. I’m surprised it works at all given that it isn’t likely totally compatible with the PHP versions currently supported by WordPress.
And there shouldn’t be a function named twentyten_comment, but I guess it could be.
You could update to Weaver Xtreme and use the Cosmic Late subtheme, and not be really far off from your current site.
You’d likely spend a lot less time getting that to work than it would take to try to patch up a very very very old theme, and your site would get a bit of a refresh.
I don’t know if your menu, header image, and widget definitions would propagate or not. If you used the default menu setup with the options available for each page, it would be the same. And your widgets would not be that hard to duplicate by hand.
It is not that hard to figure out the Customizer, and you can pretty much do a what you see is what you get approach to tweak your site.
One of the great things about WordPress is that your content will still be there – no matter what theme you use, actually.
November 13, 2020 at 19:48 UTC - Views: 4 #66054 -
AuthorPosts
- You must be logged in to reply to this topic.