Here's what I'm trying to do and need help.
I have an external script that hooks into the database backend and I can work with everyting pretty successfully, but one thing I cannot do is get permalinks using get_permalink($post_id) for any blog other than the main blog.
For example, if I switch my table prefix from wp_1_ to wp_2_ so that my focus is on workin with blog id 2, get_permalink() when called will still try to get the permalink for blog 1, because I am including /wp-config.php.
What/how can I change a CONSTANT so that get_permalink() will pull from a newly designated blog id?
I really appreciate any guidance,