• Hi,

    I already activate smooth slider every event post. I try to put this quick embed template tag to my script at home (index.php) but onyl default recent post

    <?php if( function_exists( “get_smooth_slider_recent” ) ){ get_smooth_slider_recent(); } ?>

    How to change the code above using my sliders created like quick embed shortcode [smoothslider id=’1′]

    [smoothslider id=’1′] is not corect script to php script index.php

    Thanks

    https://www.ads-software.com/plugins/smooth-slider/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello @babangry

    Thanks for writing to us.

    You can use Recent post slider template tag <?php if( function_exists( "get_smooth_slider_recent" ) ){ get_smooth_slider_recent(); } ?> in your index.php or any template file of theme.

    For recent post slider shortcode use: [smoothrecent] You can use it in post or page.

    Let me know if it helps.
    Thank you.

    Best Regards,
    Sagar.

    Thread Starter babangry

    (@babangry)

    Hi @sagar.k

    that scirpt for recent post, if i want to change the code not recent but a specified page when I already activate smooth slider page by page. What is the code?

    Thanks

    Hello @babangry

    Thanks for your response.

    Do you want to replace slider which is appearing on your each post because of Template tag of Smooth slider?

    Waiting for your response.
    Thank you.

    Best Regards,
    Sagar.

    Thread Starter babangry

    (@babangry)

    Hello,

    yang i want to replace slider post. I want to replace a couple page insert php script. How?

    <?php if( function_exists( “get_smooth_slider_recent” ) ){ get_smooth_slider_recent(); } ?>

    Thanks

    Hello @babangry

    Thanks for your response.

    Which slider you have added in your template file of theme? If you have added custom slider in single.php then that slider will appear on all post. You want to display different slider for some posts then you can use “Display on this Post/Page” option of Post meta box in Smooth slider but with this option you can only overwrite with custom type of slider.

    Let me know if it helps.
    Thank you.

    Best Regards,
    Sagar.

    Thread Starter babangry

    (@babangry)

    Hello Sagar,

    I want to add slider to my home page at index.php with page, and i’m already “display on this page” but using quick embed shortcodes like [smoothslider id=’1′] and put one of the page is corrected.

    I need to how put the code at index.php ?

    Thank you

    Hello @babangry

    Thanks for your response.

    Yes, you need to use template tag <?php if( function_exists( "get_smooth_slider_recent" ) ){ get_smooth_slider_recent(); } ?> in index.php to appear Recent post slider on home page.

    Let me know if it helps.
    Thank you.

    Best Regards,
    Sagar.

    Thread Starter babangry

    (@babangry)

    Hello Sagar,

    Can I change the recent is not post? but recent page! with using template tag <?php if( function_exists( “get_smooth_slider_recent” ) ){ get_smooth_slider_recent();

    Thanks

    Hello @babangry

    Thanks for your response.

    You can add pages in Custom type slider of Smooth slider. In Recent type slider only posts will appear not pages.

    Let me know if it helps.
    Thank you,

    Best Regards,
    Sagar.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Quick Embed Template Tag’ is closed to new replies.