WordPress.org

Forums

WP Slider Plugin
can we use shortcode with name of slider not the id? (3 posts)

  1. ewroman
    Member
    Posted 1 year ago #

    Selam Muneeb,

    I want to use name of slider like this

    muneeb_ssp_slider( 'Home Slider' );

    is it possible or do I have to use id?

    Thanks.

    http://wordpress.org/plugins/simple-slider-ssp/

  2. ewroman
    Member
    Posted 1 year ago #

    And another question (also a suggestion), can you add an option to slider meta something like "show_on_home".

    With this option we can show slider on home page without assigning id in that muneeb_ssp_slider function.

    This what I thought:

    if ($show_on_home) {
            muneeb_ssp_slider();
    }
  3. Muneeb
    Member
    Plugin Author

    Posted 1 year ago #

    Wa-Alaikum-Salaam,

    ID is required in both the shortcode and the php function. To show the slider on your homepage only add the php code to your theme's home.php or frontpage.php file or use boolean functions provided by WP i.e is_home() or is_front_page()

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Slider Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic