WordPress.org

Ready to get started?Download WordPress

Forums

What contant defines the current blog? (3 posts)

  1. Hudson Atwell
    Member
    Posted 4 years ago #

    Hey,

    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,

    Hudson

  2. Hudson Atwell
    Member
    Posted 4 years ago #

    Anybody have an understanding of how site focus is switched?

  3. Hudson Atwell
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic