Title: Write my own shortcode
Last modified: November 28, 2021

---

# Write my own shortcode

 *  [fabiantheobald](https://wordpress.org/support/users/fabiantheobald/)
 * (@fabiantheobald)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/write-my-own-shortcode/)
 * Hi!
 * Thank you very much for this plugin!
 * Can you please provide me with a code example to write my own shortcode renderer?
   I want to use your class WPStrava_ActivityRenderer to create my own layout with
   some activities without messing with your code in the plugin folder 🙂
 * I am looking forward to get any help from you.
 * Thank you very much in advance
    Theo

Viewing 1 replies (of 1 total)

 *  Plugin Author [jrfoell](https://wordpress.org/support/users/jrfoell/)
 * (@jrfoell)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/write-my-own-shortcode/#post-15208117)
 * Hey [@fabiantheobald](https://wordpress.org/support/users/fabiantheobald/) maybe
   I can provide a filter for you to use to extend the ActivityRenderer. It could
   work any number of ways – interested in knowing what your preferred way of doing
   it would be, we could either add a filter to specify which class to use (Theos_ActivityRenderer
   vs. WPStrava_ActivityRenderer) OR the filter could pass all of the inputs used
   to build the table and you could create a different set of markup.
 * Let me know!

Viewing 1 replies (of 1 total)

The topic ‘Write my own shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-strava_352523.svg)
 * [WP-Strava](https://wordpress.org/plugins/wp-strava/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-strava/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-strava/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-strava/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-strava/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-strava/reviews/)

## Tags

 * [extend](https://wordpress.org/support/topic-tag/extend/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [layout](https://wordpress.org/support/topic-tag/layout/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [jrfoell](https://wordpress.org/support/users/jrfoell/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/write-my-own-shortcode/#post-15208117)
 * Status: not resolved