Questions tagged [blog-id]
The blog-id tag has no usage guidance.
17
questions
0
votes
1answer
685 views
How to get blog id from permalink?
I need to get blog ids (or site ids) on my multisite, from permalinks.
THIS PROBLEM IS NOT A PLUGIN SPECIFIC, but here the full story:
I listed the all network posts on my multisite to my network-...
1
vote
1answer
39 views
Multisite: I have a gap in my blogs. How to add the missing one?
So I deleted a few blogs that I no longer needed in my multisite...but I didnt realize that it would create a "gap" in my blogs.
In other words I now have
http://webaddress/wp-admin/network/site-...
1
vote
0answers
170 views
Make a list of sites for each user in WPMU - switch_to_blog (display in SITE_ID: 1)
page.php (site_id= 1)
<?php // view all sites for all users in site network ID 1
$blogs = get_blog_list( '0', 'all' ); // ALL BLOGS
if ( 0 < count( $blogs ) ) :
foreach( ...
0
votes
2answers
29 views
use system script advertising in wordpress multisite
I have a little problem that I can not solve. I have a website "multi-site" system with ADS script. I wish I could enter leaderboard banner.
This is an example script:
<div id=""><script ...
0
votes
1answer
325 views
problem multisite with blog id
I have a little problem that I can not solve.
I have a website "multi-site" system with ADS PRO scripteo.
I wish I could enter leaderboard banner.
After that I created the shortcode:
[...
3
votes
1answer
4k views
get_current_blog_id returns 1 in multisite setting
I am encountering rather a weirdo situation here.
I am currently on a multisite and created a site. This site has a blog id of 3. However, whenever I call get_current_blog_id() it returns 1 (which is ...
1
vote
1answer
1k views
Get the User ID Who Owns a Given Blog ID in Multisite
I am working on creating a function that will take a $blog_id and return the corresponding $user_id of the user who owns/created the blog in a multi site network.
public function ...
8
votes
2answers
16k views
How to get current site id? (WPMU)
I am using WordPress with MU activated. I found a function here that supposed to return an object with the current side ID. But it's returning 1 for all websites.
<?php get_current_site(); ?>
0
votes
1answer
1k views
WP MS: How to query over the network
I have a WP 3.8.1 Multisite installation with 3 blogs, they're all in one db, prefixed wp_, wp_2_ and wp_3_.
In a template in wp_ I try to to display all posts from wp_, wp_2_ and wp_3_ which have a ...
2
votes
2answers
1k views
How can i get the last post from wp multisite?
I have to get the last post from my Multisite network on WordPress. For now I use this code for display the last updated post after a cycle on each blog_id:
<?php
$blogs = get_last_updated(' ', 0,...
1
vote
1answer
485 views
Multisite Pull Recent Image Attachments from Blog ID
I am creating a WordPress network and am looking for a way to pull recent images from the sub blogs, but I am having some trouble doing so.
What is the easiest way to make this happen?
0
votes
1answer
448 views
WPMU function get_blog_details, last_updated/registered and formatting time and date string
Within my multisite installation I can get the registered and last updated time strings for a sub blog through get_blog_details and the blog ID:
echo get_blog_details($blog_ID)->registered
Ok, ...
1
vote
1answer
2k views
How to get a current post's blog id
I'm resubmitting a question I previously asked, but crystalising it down to its 'simplest' form.
In a multisite network, how can one get the blog_id for where a post was originally published from?
...
0
votes
1answer
2k views
How to get blog_id of an MU site when running a custom function on the parent site
Simple enough question, but one which is proving difficult to find a solution to.
Quick preamble - the situation this is addressing is a MU network using sitewide tags plugin which pulls all ...
1
vote
1answer
667 views
Get current Blog ID in Tinymce Plugin Dialog Window in WPMU
is there any way, to get the current blog id in a Tinymce Dialog Window? Currently I only get the id, from the main blog. This is my current code:
$wp_load = "wp-load.php";
while(!file_exists($...
0
votes
1answer
6k views
Simplest way to query with blog_id?
What is the simplest way to query posts using blog_id?
I have a post type called video that holds, not surprisingly, multiple embedded videos. Each post has a different video.
I would like to ...
2
votes
2answers
3k views
Get Permalink of Network Blog Post
I am trying to write a function that will allow me to specify a post ID and a blog ID, and then have it return the permalink and title of the blog post.
I need this to be efficient because the ...