Top

xyzzy on "Alternatives to switch_to_blog in WP3"

July 31, 2010 by David Olsen · Leave a Comment 

Hi,

I wrote a plugin that allows one blog to pull posts in from another
blog via shortcode. I call it get-news. The syntax of the shortcode is
something like this:

[get-news site_name="news" numberposts="10" show_dates="0"]

In short, what this code does is switch to the blog located at /news/
and grab the 10 most recent posts and display them on the current
blog. There are other options, as well – like pulling posts by
category or tags, showing thumbnails, etc.

My code uses switch_to_blog to do this. I’ve read that this function
has a heavy performance hit. But, we’ve been using it with WP Super
Cache and it has worked well for us in WPMU 2.9.2. Plus, at this
point, my plugin is not meant for distribution — it’s used only on
the site I manage. (That could change…)

Now, my code is broken in WP3.x. Permalinks are incorrect and
thumbnails do not work properly.

I believe it’s this bug, which is now listed as a “wontfix”:

http://core.trac.wordpress.org/ticket/12040

In the bug report, there is mention that this bug could be ‘fixed’ via
a plugin via the switch_blog hook.

I’m looking for alternate suggestions for ways to do this. At this
point, this bug is holding us back from going with WP3, which we’d
like to do for many reasons!

One option I toyed with initially was using RSS feeds, but I could not
get the thumbnails over that way.

Looking forward to any suggestions.

Thanks!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Bookmark

drummerboyvp on "[Plugin: Frontpage-Slideshow] Latest Post Does Not Appear"

July 30, 2010 by David Olsen · Leave a Comment 

Thank you Jeff! The default “ID” sorting order had worked until now, but when I changed it to “DATE” it did the trick and fixed everything. Merci!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Bookmark

ProSpirity on "Asking for Connection Information"

July 30, 2010 by David Olsen · Leave a Comment 

Hmm! thanks I will investigate that. Both are on the same VPS server and I made some changes last week that might have triggered then….this forum is great fast and knowlegeable answers

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Bookmark

ProSpirity on "Miscellaneous Settings isn’t there in WP-ADMIN"

July 30, 2010 by David Olsen · Leave a Comment 

Awesome, thanks…I thought I had done that but obviousl not as high as 777 and it is working. reverting back to 755 now

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Bookmark

Peter Westwood on "[Plugin: Health Check] No Message Generated"

July 30, 2010 by David Olsen · Leave a Comment 

@hartley_h: Thanks for the hint on what might be the issue.

I’ll dig into it this weekend and work out what the incompatibility is.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace
  • Share/Bookmark

« Previous PageNext Page »

Bottom