Jetpack Tiled Gallery Example
WordPress gets complex as a multisite get bigger. Things that worked at smaller scale start dying. I’ve long wanted to be able to run a report on all the active plugins on our multisite but it always timed out before it would complete. This script will spit out 100I could probably push it to 700 or so but this keeps things snappy. sites at a time into a table and list any active plugins. It’ll also add pagination to go forward below the table. That same pagination can be manipulated directly in the URL by changing /?id=1 to whatever number you’d want. I was attempting to do this with MYSQL and OFFSET but ran into timeout issues when I hit LIMIT 4000 and OFFSET 3200 (displays 800 records but starting at the 3200th record). It was an awkward and inefficient and ultimately broke. I learned some things though. This was the WordPress.com post that got me moving in the right direction. I’d searched for ways to batch call MYSQL statements but wasn’t quite getting what I wanted. Looking at it now, it makes sense and I feel like I should have seen that path sooner but it’s now a pattern I understand and will be using in some other ways as well. I should be able to roll all the […]
The goal here is to have someone create some content in a particular category (using Gravity Forms) and then end up seeing content from other people that is in that same category. There are lots of ways to do this but this in a simple and dynamic way. It has the added benefit of requiring no coding knowledge. It does rely on the Display Posts plugin and Gravity Forms. This is all it takes to show content from the same category in the Text confirmation display area. Sure you could also redirect to a category page but this gives you the ability to customize quite a bit more. I can use offset=”1″ to omit the post the person just submitted. I could go father and add/display only posts that are also tagged “awesome.” I could include excerpts, featured images etc. Nice and easy but lots of options.