selective plugin ON/OFF in php generated pages?
-
Hi Jeff, I was wondering (and need) how to selectively load the plugins in pages such as category, tags, archive
What can be done?
-
Hi,
Thanks for trying Plugin Organizer and reaching out for help.
Here is how to achieve control over what plugins load and don’t load on your category, tags and archive pages.
First, in your settings make sure “Fuzzy URL matching” is turned on.
Now, every category, tag or archive page uses a specific url.
You can add a “Plugin Filter” and in that plugin filter add the URL (Permalink) for your category, tag or archive url.
If you are not doing anything extensive with your categories, tags and archive it should be something simple as “http://YourDomain.com/category/” which would affect all plugins loaded on pages that use that url.
Here is screenshots on those steps.
– http://take.ms/BDczuYou can see on the default Twenty Twelve WordPress theme basic urls for categories, tags and archives so here are some examples.
Categories
– https://twentytwelvedemo.wordpress.com/category/artwork/
– https://twentytwelvedemo.wordpress.com/category/books/
– https://twentytwelvedemo.wordpress.com/category/daytrips/So your Plugin Filter Permalink would be “https://twentytwelvedemo.wordpress.com/category/”.
Archives
– https://twentytwelvedemo.wordpress.com/2012/03/
– https://twentytwelvedemo.wordpress.com/2011/09/
– https://twentytwelvedemo.wordpress.com/2011/07/So your Plugin Filter Permalink would be “https://twentytwelvedemo.wordpress.com/2011/”.
Thank you very much, is it possible to use wildcar for permalink?
such as
https://twentytwelvedemo.wordpress.com/20*/
to include
https://twentytwelvedemo.wordpress.com/2008/
https://twentytwelvedemo.wordpress.com/2009/
https://twentytwelvedemo.wordpress.com/2010/
https://twentytwelvedemo.wordpress.com/2011/
https://twentytwelvedemo.wordpress.com/2012/etc
You’re welcome.
I wish wildcards were, but not yet.
Somethings are limited by WordPress and somethings just have yet to be discovered as a solution. So in that regard if you come up with any ideas/potential solutions please post them in the forum.
I know for while users wanted to disable plugins by user role. For awhile I don’t think anyone had a way to really achieve this but recently a solution came about, which Jeff was working on for the latest Plugin Organizer release. The next release is to include multiple permalinks in one Plugin Filter and controlling plugins by user roles.
I would love to see wildcards accepted.
Yeah one solution could be add more than one permalink or to be able to save and re-apply a “plugins setup ON/OFF style”
It could be done be having a page with all plugin in a list like now and then after adjusting as desired, save as..
Then will be easier to assign a permalink to the plugin setup saved
I think with the “plugins setup ON/OFF styles” you can achieve that with the “Plugin Groups”. I’m not sure what exactly you mean, but with the Plugin Groups you can group plugins together and just enable or disable that plugin group rather than every plugin individually.
But I also think I understand what you mean. You mean basically what the “Search Plugins” page does. You choose what plugins you want to load on search pages, then just save.
Where as for the categories you are suggesting a similar page where you can choose what plugins to load, but have that list of plugins affect the category pages? Or add a specific permalink to that plugin list that targets the category pages, archives, tags, etc.?
I think this sounds good, but I’m not sure how the categories differ from theme to theme and if a strategy of that in some sorts would work across the board. I’m not saying it wouldn’t just not sure, but assigning a permalink would cover that.
But more so, I don’t know if it would be worth the work when having a wildcard would be easier and more robust to use across all areas of the site. So, personally I would like to see a wildcard more than anything else, besides the updates already in the works.
Though for me I only use one theme and my theme has category pages that work just like regular pages which gives me the control I need. If you know how to work with php you can do the same for you theme. Let me know if you are interested.
The topic ‘selective plugin ON/OFF in php generated pages?’ is closed to new replies.