2010-12-25, 00:55:48
(This post was last modified: 2010-12-25, 00:56:31 by business0001.)
sentenced Wrote:hi, how can i put the gallery only to one page of my site?
please help me.
You have to create new template file(or copy default template file and rename it). Call it whatewer you want, name is not important. I name it template-gallery.php and then you just paste a bit of code after <?php get_page_content(); ?> insert new line and paste this:
<?php gallery(); ?>
When you're done, visit your admin area and create new page and click Page Options and choose your template(in my case template-gallery.php) and add page data.
Or if you want gallery only, delete the <?php get_page_content(); ?> and that's it, or leave page blank.
Donsegundo Wrote:Excellent plugin, a detail, I think importantly, by enabling the friendly url, an error in the paths of the images, for example, if I create a page called catalog, then the url of the image is http://mysite.com/catalog/gallery/img.jpg and should really be: http:mysite.com/gallery/img.jpg
This should be handled in your .htaccess file, but I realy don't know how to fix that(dont know htaccess rules), but I see that Oleg06 uses Fancy urls and it works, so he should know the solution, would be glad of hearing that too.