• Hello,

    I have a problem with permalinks within a WP multisite environment (one main blog, several sub-blogs). As I did not find the same problem by looking through the forum, I have to make my own post.

    Problem description: on my main-blog I query with a simple “$wpdb->get_row(“SELECT * FROM wp_4_posts WHERE ID = 1234);” a page directly from one of the sub-blogs.
    By using the_permalink/get_permalink after the returned link contains some kind of number (*NUMBER*) inbetween the blog-path and the page-name.

    original link: http://myblog.com/sub-blog-path/page-name/
    returned link: http://myblog.com/sub-blog-path*NUMBER*/page-name/

    Some more hints:

    • the number in not related to the blog_id or anything else
    • one number by blog
    • I did not changed anything on the proposed multisite htaccess content

    Did I miss something?

    Thanks a lot in advance for your help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter elchristo

    (@elchristo)

    Is there nobody who can help and understand/reproduce this problem?

    Thanks a lot!!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    We’re terribly sorry that the free support for your free product performed entirely by volunteers doesn’t meet the high standards of your requirements. You could post to jobs.wordpress.net and hire someone if it’s that important.

    on my main-blog I query with a simple "$wpdb->get_row("SELECT * FROM wp_4_posts WHERE ID = 1234);" a page directly from one of the sub-blogs.

    What’s the purpose of that? I’m asking becuase sometimes we all run the long way around a problem and there may be a WP function that exists to do what you want with out reinventing the wheel.

    You just want the content of a page on one blog to be pulled into another? or do you want ALL posts to get brought over?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Return value of the_permalink incorrect by query sub-blog page from main-blog’ is closed to new replies.