MediaDC
Forum Replies Created
-
Forum: Plugins
In reply to: [Query Wrangler] Queries overloading MySQLHey Jonathan,
I finally got the dev branch up on my prod site this evening, and everything looks to be ok so far. Pages are loading as expected and I’m not seeing any PHP errors right now, but traffic is also very low at this time of night on the East Coast. I’ll be watching it through the day tomorrow and will update to let you know how it’s working.
Thanks!
Forum: Plugins
In reply to: [Query Wrangler] Queries overloading MySQLThe problem really seems to be here that there’s a query on line 432 of the includes/query.inc file that’s pulling all of the meta keys in my postmeta table, and there are a lot in my database. The problem is that this query is pulling them on every single page on the site.
What’s the reason why the plugin needs to pull every single meta key on every single page?
Forum: Plugins
In reply to: [Query Wrangler] Filters on field outputJonathan, your addition of the Callback field did the trick! Using this field allowed me to reference a very brief function I wrote in my functions.php file that called directly to the necessary CoAuthors functions. The end result gave me the coauthors with links to their profile pages, as I desired.
Thanks again!
Forum: Plugins
In reply to: [Query Wrangler] Feedback and Discussion, bring your opinionsFollowing up on the custom solution you implemented for my request, allowing a manual choice of widget template when configuring the query.
Forum: Plugins
In reply to: [Query Wrangler] Specify template for different queriesJonathan, this did the trick! I can now create queries with whatever names I want, and specify their templates in the theme’s functions.php file using further “if ($meta[‘slug’]…” statements.
It seems that now that this is operating via apply_filters in the functions.php file, it might also be possible for me to change the widget’s template on the fly depending on what page I’m on. For example, if I was on the “Politics” page, I might want to change the template of the “Politics” QW widget in some way, i.e. changing the background color. It seems I could do this very easily through the functions.php file with an overriding if statement.
I think this has given the template functionality of the plugin much more flexibility. I look forward to further releases that incorporate this more directly into the UI.
Thank you!