PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Nov 23, 2017 1:40 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Aug 01, 2017 1:48 pm 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4359
Location: United Kingdom
I am trying to see if I can get an external website's user comments into a WP one. It's not an external WP site!

So I figured if I can add it manually, then I might be able to tally up the SKU codes.

I've added a row in wp_comments using the same info as other test comments. With IP and other similar info.
I've got into wp_comments_meta and put in the verified line and rating line.
But it doesn't show on the product page.

Then I go into Comments, Tap edit, and Update (no changes), and somehow that makes it live.

So is there a third area where it gets added into Wordpress's database??

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
PostPosted: Wed Aug 02, 2017 5:13 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6391
Location: Montreal, Canada
Out of the box, all you need is the entry in wp_comments. It's possible you have caching that's preventing things from immediately being displayed. It's also possible that plugins you have installed have altered that behaviour.

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group