hi...also vielen dank erstma...das hab ich schon alles gemacht categorien anlegen bloggen und so das passt auch.....(seltsamer weise..) aber trotzdem----ich verusch als dann erstmal mich einzufinden und versuch dann noch was....aber kann mir danach jemand erklären wie ich das ganze in meine hp einbaue...und noch ne frage....
wenn ich für die category images die my-hacks.php file habe...also cih verstehe diesen ganzen part da nicht so ganz....wie kann ich denn jetzt ein bild auswählen für ne category
PHP
Step Three: Insert Template Tag
Now you can use the category_images() function in your templates. If you wanted your images seperated by spaces instead of an unordered list you would use:
<?php category_images(' '); ?>
By default it assumes that your images are PNGs, if they are something else change the second argument to be their extension. If they were JPGs:
<?php category_images('', 'jpg'); ?>
Finally you can change the directory to be anything you want.
<?php category_images('|', 'jpg', 'http://example.org/category/images/'); ?>
So in our final example the images are separated with a pipe character, have a jpg extension and are in the http://example.org/category/images/ directory
Alles anzeigen