[Resolved] [Plugin: Diamond MultiSite Widgets] Ignore broadcasted posts in recent posts widget
In my theme, I wanted to show root posts on the left with a typical loop and network posts on the right with the Diamond Recent Posts widget. I also wanted the ability to post to the root blog from network blogs but not have broadcasted posts show twice on the homepage.
That means finding and removing all broadcasted posts (since they show up on the left anyways), then removing root posts (since, again, they’re already on the left). To do this, I wrote a loop to remove posts which have a duplicate titles in the $post_list results, then remove posts belonging to blog_id 1.
NOTE: for this to work, you must not exclude the root blog in the widget settings, otherwise it can’t find duplicated post titles.
Since this finds network posts by checking for duplicate titles, it will work regardless of how you broadcasted the post (via the Diamond widget plugin or ThreeWP Broadcast).
- The topic ‘[Resolved] [Plugin: Diamond MultiSite Widgets] Ignore broadcasted posts in recent posts widget’ is closed to new replies.