WPG2 is a WordPress plugin that integrates Gallery2 into a WordPress blog. This article shows how to use your Gallery2 installation's default theme when embedded within your WordPress blog while using the standard Matrix theme when your Gallery2 installation is accessed directly.
First, you'll need three pieces of software installed:
All of these need to be working properly before you attempt any modifications. Starting with default settings on all of the above listed software is a good idea as it makes troubleshooting easier.
WPG2 requires that the Image Block and Image Frame modules be active.
Additionally, this technique will not work with the Gallery2 rewrite module activated. Using WordPress' permalink structures do not interfere and can be used.
You will need to have at least two Gallery2 themes installed and activated to use this technique.
To verify that the correct theme--the default theme set in Gallery2's theme administration panel--is being used to display your photos through WPG2, type your WordPress blog's address into your browser's address bar and append [code]/wp-gallery2.php[/code]. You should see your albums and photos displayed using your selected theme.
To verify that the correct theme--Matrix, in this case--is being used to display your Gallery2 installation when accessed directly, simply access it directly through your Web browser. It should use the Matrix theme instead of the default theme you specified in the administration panel.