Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ewroman

    (@ewroman)

    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();
    }
    Plugin Author Muneeb

    (@muneeb)

    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()

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can we use shortcode with name of slider not the id?’ is closed to new replies.