Hallo
Ich habe unter wordpress.org das Plugin Slideshow Gallery herunter geladen und wie alle anderen plugins installiert. Im Backend kann ich die Einstellungen vornehmen (Bildauswahl etc.), folglich wurde das Plugin richtig installiert.
Als Template nutze ich das Modularity von Graph Paper Press, hier ist bereits eine Slideshow enthalten, die ich aber über das Backend deaktivieren kann bzw. die ich deaktiviert habe.
Laut Plugin Tutorial kann ich mit einem Aufruf das Plugin direkt in einem php.File oder einem Wordpress Template nutzen indem ich folgenden Aufruf einbinde:
<?php if (class_exists('Gallery')) { $Gallery = new Gallery(); $Gallery -> slideshow($output = true, $post_id = null); }; ?>.
Ich möchte das Plugin auf der Startseite nutzen, in meinem Fall wäre es ja die index.php die so auschaut:
<?php get_header(); ?>
<!-- Pagination -->
<?php if ( $paged < 1 ) { ?>
<?php if ( get_option('gpp_welcome') == 'true' || get_option('gpp_welcome') === FALSE ) { include (TEMPLATEPATH . '/apps/welcome.php'); } ?>
<?php if ( get_option('gpp_slideshow') == 'true' || get_option('gpp_slideshow')=== FALSE ) { include (TEMPLATEPATH . '/apps/slideshow.php'); } ?>
<?php if ( get_option('gpp_video') == 'true' ) { include (TEMPLATEPATH . '/apps/video-home.php'); } ?>
<?php if ( get_option('gpp_slider') == 'true' || get_option('gpp_slider')=== FALSE ) { include (TEMPLATEPATH . '/apps/slider.php'); } ?>
<?php if ( get_option('gpp_slider_posts') == 'true' ) { include (TEMPLATEPATH . '/apps/slider-posts.php'); } ?>
<?php if ( get_option('gpp_featured') == 'true' || get_option('gpp_featured')=== FALSE ) { include (TEMPLATEPATH . '/apps/featured.php'); } ?>
<!-- End Pagination -->
<?php } ?>
<?php if ( get_option('gpp_blog') == 'true' ) { include (TEMPLATEPATH . '/apps/blog.php'); } ?>
<?php if ( get_option('gpp_category_columns') == 'true' || get_option('gpp_category_columns') === FALSE) { include (TEMPLATEPATH . '/apps/category-columns.php'); } ?>
<!-- Footer -->
<?php get_footer(); ?>
Alles anzeigen
Hier müsste ja die bereits vorhandene Slideshow gelöscht werden und der Plugin Aufruf eingefügt werden was dann so ausschaut:
<?php get_header(); ?>
<!-- Pagination -->
<?php if ( $paged < 1 ) { ?>
<?php if ( get_option('gpp_welcome') == 'true' || get_option('gpp_welcome') === FALSE ) { include (TEMPLATEPATH . '/apps/welcome.php'); } ?>
<?php if (class_exists('Gallery')) { $Gallery = new Gallery(); $Gallery -> slideshow($output = true, $post_id = null); }; ?>.
<?php if ( get_option('gpp_video') == 'true' ) { include (TEMPLATEPATH . '/apps/video-home.php'); } ?>
<?php if ( get_option('gpp_slider') == 'true' || get_option('gpp_slider')=== FALSE ) { include (TEMPLATEPATH . '/apps/slider.php'); } ?>
<?php if ( get_option('gpp_slider_posts') == 'true' ) { include (TEMPLATEPATH . '/apps/slider-posts.php'); } ?>
<?php if ( get_option('gpp_featured') == 'true' || get_option('gpp_featured')=== FALSE ) { include (TEMPLATEPATH . '/apps/featured.php'); } ?>
<!-- End Pagination -->
<?php } ?>
<?php if ( get_option('gpp_blog') == 'true' ) { include (TEMPLATEPATH . '/apps/blog.php'); } ?>
<?php if ( get_option('gpp_category_columns') == 'true' || get_option('gpp_category_columns') === FALSE) { include (TEMPLATEPATH . '/apps/category-columns.php'); } ?>
<!-- Footer -->
<?php get_footer(); ?>
Alles anzeigen
Doch leider bekomme ich nichts angezeigt...wo liegt der Fehler?
Die Slideshowgröße (Breite und Höhe) sowie das Bildmaterial für das Plugin habe ich im Backend konfiguriert, dennoch keine Anzeige der Slideshow!
Vielleicht muss im Pluginaufruf in der index.php ja der Galeriename genant werden?
Wer kann mir helfen?
Ltd.Lupo