Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with sidebar
#4
http://en.wikipedia.org/wiki/Slug_(web_publishing)
The SLUG is a part of the URL of the page, which you created in the pages tab under the page options field called Custom URL (Slug):
Be sure to enable Fancy URLS
1. A page called gallery is created when you install the I18N plugin or when you first create your gallery under the galleries tab.
2. Upload your image(s) in files tab.
3. Go to gallery tab and create a new gallery and call it 'gundam'. Grab the image(s) using "add images" and locate the image.
4. You then need to create a child page under gallery called "gundam" by entering it into the page title and it will auto-generate a slug called 'gundam' or type 'gundam' into the slug field.
3.<?php get_i18n_gallery_link('my-gallery-name',
array('url'=>'my-gallery-slug', 'thumb'=>0)); ?> (I guess you should use a relative url but also an absolute url like http://www.yourdomain.com/gallery/gundam/) should work)
Replace 'my-gallery-name' with 'gundam', which is the gallery name.
4.Replace my-gallery-slug with '/gallery/gundam' (Parent Page gallery, child page gundam)
5.set thumb equal to 1 to display first thumbnail in gallery.
6. Go to theme editor > theme editor > sidebar.inc.php and add the php include.
You will probably need to use css to make it look good.
<?php get_i18n_gallery_link('gundam', array('url'=>'/gallery/gundam', 'thumb'=>1)); ?>
[Image: capture4y.png]
Todo arde si le aplicas la chispa adecuada.
Reply


Messages In This Thread
Help with sidebar - by Neotropex - 2012-01-22, 04:14:33
Help with sidebar - by Connie - 2012-01-22, 04:36:59
Help with sidebar - by Neotropex - 2012-01-22, 04:50:38
Help with sidebar - by yurifanboy - 2012-01-22, 05:03:57
Help with sidebar - by Neotropex - 2012-01-22, 06:06:10
Help with sidebar - by Connie - 2012-01-22, 17:45:07



Users browsing this thread: 1 Guest(s)