Thema: FAQ (english)
Einzelnen Beitrag anzeigen
  #1  
Alt 10. February 2009, 14:32
Benutzerbild von cybio
cybio cybio ist offline
aka maverick :)
Master of Spam
Punkte: 12.103, Level: 76 Punkte: 12.103, Level: 76 Punkte: 12.103, Level: 76
Aktivität: 0% Aktivität: 0% Aktivität: 0%
 
Registriert seit: Dec 1999
Ort: unrealEXTREME.de
Beiträge: 3.506
Renommee-Modifikator: 10
cybio will become famous soon enough
    Neutral 
Exclamation FAQ (english)

How can i adjust the look of the Widget?

Just use the CSS-Class "wGallery" to alter the ul- or li-tags.

How can i get only the images of one/some categories?

Use the category-option include or exclude and enter the id's separated by comma
in the options of the widget.
Using include or exlcude causes more sql-queries and is slower than the base function.
You should only use it if you're blog doesn't have to much traffic and/or your
host can handle it

Why doesn't the images link to the parent article?

This option actually only works with "category-option" set to include or exclude.

Is it possible to show the images at any position in the theme (not only as widget)?

These functions are depreciated and will be deactivated soon, please use the object/methods, see below!


Yes, you can use the following code to include the images:

PHP-Code:
<?php if ( function_exists(get_attached_images) ) : ?>
<?php 
echo get_attached_images(maximages, [latest|random], [old|direct], css-class); ?>
<?php 
endif; ?>
for instance, 5 random images:
PHP-Code:
<?php if ( function_exists(get_attached_images) ) : ?>
<?php 
echo get_attached_images(5'random'); ?>
<?php 
endif; ?>
latest 7 images of the categories 1, 2 and 5, only 1 image per post/link to article (css: wGallery, relation: lightbox):
PHP-Code:
<?php if ( function_exists(get_attached_images) ) : ?>
<?php 
echo get_attached_images_by_categories(7'latest''1,2,5''include''article''wGallery''lightbox''yes'); ?>
<?php 
endif; ?>
__________________
splash.de /// unrealEXTREME.de >>> unrealLegacy.de

Geändert von cybio (11. March 2009 um 10:47 Uhr)