radchad
Forum Replies Created
-
Hi Andrea,
Thanks for the response again.
Are your subsites marked as private? By default the plugin does not pull posts from private sites.
This is a good question. We have made no setting changes to make any of our sites private, so my thought is no. However since our sites were originally implemented by consultants I can not say with 100% certainty. I googled how to tell if your site is private but found no relevant articles. Can you tell me if there is a line of code or a config setting I should be looking for to verify if my subsite is private or not?
Thanks!
ok will do. Thanks!
right… since commenting out the template redirect tag fixed my original problem with no negative side effects and i am looking for a way to do that through functions.php removing all the actions associated that tag i am imagining does the same effect. since there seem to be no negative side effects with this what i was looking to accomplish seems to have been found.
i appreciate your time and energy and am thankful for you assistance :). have a great one!
actually as I was researching I found something in the codex that I think might actually be the exact fix I was looking for all along.
“remove_all_actions” Removes all of the hooks from an action.
http://codex.ww.wp.xz.cn/Function_Reference/remove_all_actions
I just ran remove_all_actions on ‘template redirect’ and it worked like a charm.
Do you have any thoughts here? Unless there is a reason not to use this, I think we can consider this fixed :).
Ok I’ll look that up and see if I can figure out the way to do that. Sounds like that’d be a helpful trick to know for the wordpress toolkit :).
Thanks for your response Andrea
Then the plugin pulls the posts as they are written and there is no need to populate posts
This would be an awesome way to use the plugin and work fine for our needs here. In that case we could just wait for new posts to be written and eventually the tags blog would fill up with enough posts and we’d be done. Unfortunately this function of the plugin is not working on our multi-site network either. Though we’ve published posts through out the day, the tags blog is still showing as 0 posts :/… But if it did work I’d be happy to work around the populate posts issue.
And it is very resource intensive, as this is an admin function and not a front-facing function.
I’ve read this before. Definitely makes sense. I see switch to blog is not ideal. I am going to look into diamond multisite widgets again and also look into if I can aggregate the posts through RSS feed. It would be a strange way to do it, however we shall see…. Thanks for all your help Andrea and Ipstenu.
Nope none of these did the trick :/ I am not sure why removing that line of code mentioned in the beginning of this thread worked, and why removing actions did not work, very odd…
Thanks, that makes more sense 🙂
Thanks for the response vtxyzzy.
I want to verify I understand the syntax to implement this with you. To remove these actions should I put the code below in functions.php?
function remove_action_template_redirect() { remove_action('template_redirect','redirect_canonical'); } add_action('wp_loaded','remove_action_template_redirect');and
function remove_action_template_redirect() { remove_action( 'template_redirect', 'wp_shortlink_header', 11, 0 ); } add_action( 'template_redirect', template_redirect' );and
function remove_action_template_redirect() { remove_action( 'template_redirect', 'maybe_redirect_404' ); } add_action('wp_loaded','remove_action_template_redirect');and
function remove_action_template_redirect() { remove_action( 'template_redirect', 'wp_old_slug_redirect' ); } add_action('wp_loaded','remove_action_template_redirect');Thanks!
Oh ok. Gotchya, around 50/50 will work fine, so 150 on blog 1 and 150 on blog 2.
There is about 700 total posts on blog 1 and about 900 total on blog 2.
as mentioned in an earlier post this is what we need the content for:
there are a total of 7-8 unique pages that display 4 unique posts per page based on a unique category query that is ordered by descending date. so basically the newest total 4 posts in a category from either blogs are displayed on each of the 7-8 pages pulling about 32 unique posts.
So 32 total unique posts is not much, I think 150 from blog 1 and 150 from blog 2 should well capture the unique 32 in the specific categories we need.
Does this help?
Thanks again!
Thanks Ipstenu.
Basically I need the plugin to aggregate at the least 200-300 posts combined from blog 1 and blog 2.
When running in my development site after checking the All blogs checkbox and clicking populate posts it only populates about 300 posts from blog 2 and then times out on a white screen.
However when running in my live site it’s slightly different and this may be the best site to troubleshoot from since it’s the one that is going to matter. After checking the All blogs checkbox and clicking populate posts on the live site it populates 0 posts and quickly takes me to a page that says that the page title is “wordpress >> error” and the content of the page says “Finished importing posts into tags blogs!”. However upon looking at my tags blog I see 0 posts added.
Thanks again to you and the devs of this plugin for your time.
hi vtxyzzy,
pardon the delay, I had to step away from this but I am back on the case. I tried the remove action described above but it did not work. Can you provide the other code to remove other actions?
Also as a more general wordpress question, going forward if I want to see the actions associated with a particular tag I should be able to look at the core file that contains the tag and find the actions within there, correct?
Thanks again for all your help!
Hi Ipstenu,
Pardon the delay on this response I had a long weekend away from all technology. However it is now Monday and I am back on the task at hand.
Yes it will create 300 posts, however these 300 posts are only from blog 2 and I need the plugin to aggregate at least 200-300 posts from blog 1 and 2.
When it stops short there is no error only a white screen that just hangs. This happens regardless if I set the posts to 50, 100, or 2000.
Thanks again for all your help!
thank you and i appreciate your empathy :). those type of men do exist unfortunately. on the positive note it’s given me a great opportunity to learn wordpress in a live environment :).
with regards to number of posts we don’t need that many posts at all.
there are a total of 7-8 unique pages that display 4 unique posts per page based on a unique category query that is ordered by descending date. so basically the newest total 4 posts in a category from either blogs are displayed on each of the 7-8 pages pulling about 32 unique posts.
since a plugin like wordpress mu sitewide tags would pull over posts with categories that won’t fall into this query i imagine 200-300 total posts between both blogs would capture enough posts to easily fulfill the requirements of what we need to query. while in one circumstance i was able to get wordpress mu sitewide tags to pull 250-300 posts it only pulled over the posts from blog 2 and not blog 1, despite checking the “populate posts from all blogs” checkbox.
Thanks again Ipstenu!
Hi Ipstenu,
Thanks for the response :).
The person who told me and the organization I work for that Multi-site makes it easy to share posts between blogs was the WordPress consultant who we paid over 20,000$ to create our multi-site network, and 2 sites. This consultant also bailed in the middle of the project which has left us, (mostly me)the opportunity to complete the project in the last year :). I have actually been very grateful for this opportunity and thus far have been able to manage wordpress great, learning and implementing all sorts of things. This particular issue has been the first road block thus far.
Unfortunately it doesn’t surprise that our old consultant wasn’t transparent with us on Multisite’s functionality, as he has had a record of telling us what we wanted to hear just to make the sale… unfortunately we believed him. I was wondering why him and his team minimally touched the sharing content between blogs in our implementation.
None the less the show must go on.
Thanks for the clarity on how people may perceive the “without a plugin” sentence. This makes sense, and I can understand where people may make that interpretation. I personally have no preference between code and plugin. I’m more in the whatever works camp of philosophy. My problem is the “wordpress mu sitewide tags” plugin has not worked for my development or live environment. It either will not populate posts or will only populate like 300 posts then stop short. I’d love to use this plugin if it worked for me.
I am hoping this is not the only solution and someone has the magic code to do a content share between blogs, but if that is the only option I will make due with it.
Thanks again for your help Ipstenu!