What contant defines the current blog? (3 posts)

  1. Hudson Atwell
    Posted 6 years ago #


    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,


  2. Hudson Atwell
    Posted 6 years ago #

    Anybody have an understanding of how site focus is switched?

  3. Hudson Atwell
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic