Title: shortcode structure
Last modified: December 21, 2019

---

# shortcode structure

 *  Resolved [theleafface](https://wordpress.org/support/users/theleafface/)
 * (@theleafface)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multiple-post-type-3/)
 * Hi!
 * What is the structure for a custom shortcode?
    -  This topic was modified 6 years, 3 months ago by [theleafface](https://wordpress.org/support/users/theleafface/).

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

 *  [iamsayan](https://wordpress.org/support/users/iamsayan/)
 * (@iamsayan)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multiple-post-type-3/#post-12260856)
 * Hi,
 * You can use shortcode like this: `[spt-posts-ticker]`
 * Thanks!
 *  Thread Starter [theleafface](https://wordpress.org/support/users/theleafface/)
 * (@theleafface)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multiple-post-type-3/#post-12260925)
 * Hi,
 * Thank you for the response, but that’s not what i meant. You see, in the shortcode
   tab there is post_type, num_posts, order, etc. And what i asked is how do i implement
   these shortcodes to my website.
 *  [iamsayan](https://wordpress.org/support/users/iamsayan/)
 * (@iamsayan)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multiple-post-type-3/#post-12260932)
 * Hi,
 * OK. You can use shortcode like this: `[spt-posts-ticker post_type="post" num_posts
   ="5"]`
 * Thanks
 *  Thread Starter [theleafface](https://wordpress.org/support/users/theleafface/)
 * (@theleafface)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multiple-post-type-3/#post-12260934)
 * Great,
 * Thank you very much for the fast response.
 *  [iamsayan](https://wordpress.org/support/users/iamsayan/)
 * (@iamsayan)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multiple-post-type-3/#post-12260938)
 * Most Welcome 🙂
 *  Thread Starter [theleafface](https://wordpress.org/support/users/theleafface/)
 * (@theleafface)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multiple-post-type-3/#post-12260950)
 * One last thing, is it possible to have two ticker with a different post type?
   For example, i want my first ticker to display my latest post and my second ticker
   is to display latest news i made in the dashboard.
 *  [iamsayan](https://wordpress.org/support/users/iamsayan/)
 * (@iamsayan)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multiple-post-type-3/#post-12260957)
 * Hi,
 * Yes. It is possible.
 * Use shortcode for posts: `[spt-posts-ticker post_type="post"]`
 * Use shortcode for news: `[spt-posts-ticker post_type="****"]`
 * Please check the news post type slug and replace **** with your post type slug.
 * Thanks!
    -  This reply was modified 6 years, 3 months ago by [iamsayan](https://wordpress.org/support/users/iamsayan/).
 *  Thread Starter [theleafface](https://wordpress.org/support/users/theleafface/)
 * (@theleafface)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/multiple-post-type-3/#post-12260962)
 * Ok, thank you very much

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

The topic ‘shortcode structure’ is closed to new replies.

 * ![](https://ps.w.org/simple-posts-ticker/assets/icon-256x256.png?rev=2961877)
 * [Simple Posts Ticker - Easy, Lightweight & Flexible](https://wordpress.org/plugins/simple-posts-ticker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-posts-ticker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-posts-ticker/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-posts-ticker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-posts-ticker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-posts-ticker/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [theleafface](https://wordpress.org/support/users/theleafface/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/multiple-post-type-3/#post-12260962)
 * Status: resolved