WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Frontpage-Slideshow] PHP code activating the slideshow in header.php

[Plugin: Frontpage-Slideshow] PHP code activating the slideshow in header.php

  • If I wanted to place a snippet of code in header.php instead of using the shortcode on a page / post, what would that code be?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author jeff_

    @jeff_

    As it has been explained here a lot of time : look at the “how to use” section of the plugin admin page.

    Thanks, got it. The full php code wasn’t there, and I wasn’t familiar with how to properly write an echo.

    Here it is, if anyone needs it later:

    <?php echo do_shortcode('[FrontpageSlideshow]'); ?>

    Then you can use the options given when you customize the slideshow.

    For example:

    <?php echo do_shortcode('[FrontpageSlideshow fs_cats=12 fs_slides=28 fs_show_buttons=0 fs_show_prevnext_buttons=0 fs_main_width=600px fs_main_height=450px fs_slide_width=100% fs_buttons_width=0% fs_main_border_color= fs_orderby=rand fs_show_comment=0 fs_rounded=0 fs_template=default]'); ?>

    Thanks jeff

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Frontpage-Slideshow] PHP code activating the slideshow in header.php’ is closed to new replies.