Return value of the_permalink incorrect by query sub-blog page from main-blog
-
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: https://myblog.com/sub-blog-path/page-name/
returned link: https://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?
- The topic ‘Return value of the_permalink incorrect by query sub-blog page from main-blog’ is closed to new replies.