Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adding gallery to page
#4
Ok I got it to work and pull in the gallery I want from a separate defined box within the page itself.

I achieved it by doing this.
1: Create a custom area within the page using the "I18N Custom Fields" plugin. I called the field "pics"
2: Set a variable "$gallery" with the value of the "pics" field.
3: Called for and display the "$gallery" Value.

The code was pretty simple after I figured out how to set variables and here are the two lines that do it.

Code:
<div><?php $gallery=return_custom_field("pics"); ?>
<div><?php squareit_gallery($gallery);?></div>

It works fine I just wish the gallery plugin was smart enough to find subfolders within my files area cause right now it only sees pictures within the root of my files and ignores any subfolders.
Reply


Messages In This Thread
adding gallery to page - by liverdude - 2011-04-16, 06:14:44
adding gallery to page - by mvlcek - 2011-04-16, 06:37:47
adding gallery to page - by liverdude - 2011-04-16, 06:59:25
adding gallery to page - by liverdude - 2011-04-20, 02:11:43



Users browsing this thread: 2 Guest(s)