WordPress.org

Ready to get started?Download WordPress

Forums

WP Fading Content Slider
[resolved] PHP code for inserting? (3 posts)

  1. zonkD
    Member
    Posted 1 year ago #

    The running sample looked great from the parallax support topic.

    I'm trying to install this in a php template for the index.

    I tried the similar code from parallax with a rename but it didn't work.

    <?php if ( function_exists( 'get_wp_parallax_content_slider' ) ) { get_wp_parallax_content_slider(); } ?>

    Can it be called using php?

    http://wordpress.org/extend/plugins/wp-fading-content-slider/

  2. wp-maverick
    Member
    Plugin Author

    Posted 1 year ago #

    Hello zonkD,
    PHP code is:

    include (ABSPATH . '/wp-content/plugins/wp-fading-content-slider/content-slider.php');

    In next version, I've entirely refactored the code. You'll be able to do that:

    if (class_exists('WpFadingContentSlider')) {
        include (ABSPATH . '/wp-content/plugins/wp-fading-content-slider/content-slider.php');
    }
  3. wp-maverick
    Member
    Plugin Author

    Posted 1 year ago #

    The PHP code since v0.2.1:

    if ( function_exists( 'get_wp_fading_content_slider' ) ) {
        get_wp_fading_content_slider();
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.