To display the dynamic gallery in your theme, add this code to your theme file wherever you want to display the gallery:
<?php include (ABSPATH . '/wp-content/plugins/dynamic-content-gallery-plugin/dynamic-gallery.php'); ?>
NOTE: From version 2.0 onwards the plugin folder name has changed to dynamic-content-gallery-plugin (it was dynamic-gallery in prior versions). If you get PHP errors after upgrading from version 1.0.0 check this path in your theme template file.
In order to display a unique image and description for each post, create two Post Custom Fields when writing a post:
* Key = dfcg-image with a Value = Image filename including extension eg. myImage.jpg
* Key = dfcg-desc with a Value = Description text eg. Here's our latest news!
You must upload all such custom field images to the folder you specify in the plugin's Settings page.
WPMU ONLY:In order to display a unique image and description for each post, create two Post Custom Fields when writing a post:
* Key = dfcg-image with a Value = Full URL to the image including filename and extension eg. http://myblog.blogs.com/files/2008/11/myImage.jpg
* Key = dfcg-desc with a Value = Description text eg. Here's our latest news!
Use the Media Uploader (accessed via the Add Media button in Admin > Write Post) to upload your images and to find the full URL to be used in the Post Custom field. See the Settings page for further information on how to do this.
Further information can be found at http://www.studiograsshopper.ch/dynamic-content-gallery-configuration/
The plugin is now loaded and activated, but needs to have its configuration and set-up completed before it is fully ready to go. This takes a little work, but once done you can forget about it and get on with more important things!
In the Dashboard, go to Settings and open the Dynamic Content Gallery Settings page. This contains a number of options, some of which are required and some of which are optional and may be left blank.
WORDPRESS and WPMU: Assign Categories to each of the 5 image "slots" that will be shown in the gallery. By using a combination of the Category ID and The Post Select field, you specify which post will be assigned to each of the 5 image "slots". Post Select works like this: enter 1 to display the latest post, 2 to display the previous post, 3 to display the post before that, and so on. For example, two possible schemes are:
WORDPRESS ONLY: Enter the relative path to the folder which contains the images that are referenced in the post custom field Key "dfcg-image". This path should be relative to the root of your Wordpress blog. For example, if your images are stored in your Uploads folder, the relative path will be: /wp-content/uploads/. This is a required field.
WORDPRESS ONLY: Enter the relative path to the folder which contains the default images which will be pulled into the gallery. These default images are only used by the plugin in the event that the post does not have an image specified in the post custom field Key "dfcg-image". This path should be relative to the root of your Wordpress blog. For example, if your default images are stored in your Uploads folder, the relative path will be: /wp-content/uploads/. This is a required field.
WORDPRESS and WPMU: Default description. By default the Dynamic Content Gallery plugin displays a description for each image displayed. The plugin looks for the image description in this sequence:
WORDPRESS and WPMU: Gallery size and CSS options. You may configure various CSS options here including the width and height of the gallery, the size of the slider, font sizes etc.
That's it! The Settings Page is now configured. Time to create some default images (WORDPRESS only, not WPMU) and the default descriptions (WORDPRESS and WPMU).
Create and name the default images (WORDPRESS ONLY, not applicable to WPMU)I gratefully acknowledge and thank Jonathan Shemoul of JonDesigns.net, for the versatile and excellent SmoothGallery script which this plugin uses. The Dynamic Content Gallery is inspired by the Featured Content Gallery plugin by Jason Schuller. Particular kudos to Jason for his plugin, and from whose initial work I have borrowed heavily.




