Vote count:
0
I have a WP installation on one URL - say http://ift.tt/1dIEyXW and I want to call in the posts to a different url on the same sever - say http://ift.tt/1dIEAz2.
I see there's the $wpdb function/class and I understand there are various queries I can use to extract specific posts (ie by user).
What I'm struggling with is accessing the db from the different domain. I'm assuming I'll need to give http://ift.tt/1dIEAz2 a clue as to where to look for the db I want it to access. So I've got a copy of the http://ift.tt/1dIEyXW's config file with all the relevant DB access details. But that currently isn't working on it's own. So I suspect I've missed a fairly basic step somewhere.
So I'm asking if anyone has done something similar before or knows of a good tutorial I can follow please?
I've read quite a few tutorials already and the all seem to assume you're working in/with your current wp installation on the same URL and therefore don't need to config files as they're already connected to the right db.
I apologise if this is php101 type stuff but php really isn't my area of expertise.
Thanks
Aucun commentaire:
Enregistrer un commentaire