Title: Quick Embed Template Tag
Last modified: September 1, 2016

---

# Quick Embed Template Tag

 *  [babangry](https://wordpress.org/support/users/babangry/)
 * (@babangry)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/)
 * 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://wordpress.org/plugins/smooth-slider/](https://wordpress.org/plugins/smooth-slider/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [sagar.k](https://wordpress.org/support/users/sagark/)
 * (@sagark)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/#post-7665938)
 * Hello [@babangry](https://wordpress.org/support/users/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](https://wordpress.org/support/users/babangry/)
 * (@babangry)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/#post-7666023)
 * Hi [@sagar](https://wordpress.org/support/users/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
 *  [sagar.k](https://wordpress.org/support/users/sagark/)
 * (@sagark)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/#post-7666025)
 * Hello [@babangry](https://wordpress.org/support/users/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](https://wordpress.org/support/users/babangry/)
 * (@babangry)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/#post-7666027)
 * 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
 *  [sagar.k](https://wordpress.org/support/users/sagark/)
 * (@sagark)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/#post-7666032)
 * Hello [@babangry](https://wordpress.org/support/users/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](https://wordpress.org/support/users/babangry/)
 * (@babangry)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/#post-7666033)
 * 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
 *  [sagar.k](https://wordpress.org/support/users/sagark/)
 * (@sagark)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/#post-7666034)
 * Hello [@babangry](https://wordpress.org/support/users/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](https://wordpress.org/support/users/babangry/)
 * (@babangry)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/#post-7666035)
 * 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
 *  [sagar.k](https://wordpress.org/support/users/sagark/)
 * (@sagark)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/#post-7721085)
 * Hello [@babangry](https://wordpress.org/support/users/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.

 * ![](https://s.w.org/plugins/geopattern-icon/smooth-slider_e7cacb.svg)
 * [Smooth Slider](https://wordpress.org/plugins/smooth-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smooth-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smooth-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/smooth-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smooth-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smooth-slider/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [babangry](https://wordpress.org/support/users/babangry/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/quick-embed-template-tag/#post-7666035)
 * Status: not resolved