Title: contextly module shortcode as php with do_shortcode
Last modified: August 22, 2016

---

# contextly module shortcode as php with do_shortcode

 *  Resolved anonymized-14239226
 * (@anonymized-14239226)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/contextly-module-shortcode-as-php-with-do_shortcode/)
 * I’m trying `<?php echo do_shortcode('[contextly_main_module]'); ?>` to include
   the shortcode on my 404 without success. Any tips?
 * Thanks
 * [https://wordpress.org/plugins/contextly-related-links/](https://wordpress.org/plugins/contextly-related-links/)

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

 *  [bsac](https://wordpress.org/support/users/bsac/)
 * (@bsac)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/contextly-module-shortcode-as-php-with-do_shortcode/#post-5822383)
 * Hello,
 * Can you send the following to [info@contextly.com](https://wordpress.org/support/topic/contextly-module-shortcode-as-php-with-do_shortcode/info@contextly.com?output_format=md):
 * * Name of your site.
    * An example of a page where you are trying to place the
   shortcode.
 * Thanks,
    Ben
 *  [marky7033](https://wordpress.org/support/users/marky7033/)
 * (@marky7033)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contextly-module-shortcode-as-php-with-do_shortcode/#post-5822636)
 * I actually want to use <?php echo do_shortcode(‘[contextly_main_module]’); ?>
   in one of my files too. But I can’t seem to get it to work.
 * Need that tip too! Thanks!
 * Marcus
 *  Plugin Author [rsingel](https://wordpress.org/support/users/rsingel/)
 * (@rsingel)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contextly-module-shortcode-as-php-with-do_shortcode/#post-5822638)
 * Hi Marcus,
 * That shortcode will only work in the single post template file – single.php.
 * If you are having trouble with that or want to let us know what you are looking
   to do, drop us a note at [info@contextly.com](https://wordpress.org/support/topic/contextly-module-shortcode-as-php-with-do_shortcode/info@contextly.com?output_format=md).
 * Best,
 * RS

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

The topic ‘contextly module shortcode as php with do_shortcode’ is closed to new
replies.

 * ![](https://ps.w.org/contextly-related-links/assets/icon-256x256.png?rev=984192)
 * [Contextly Recommends](https://wordpress.org/plugins/contextly-related-links/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextly-related-links/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextly-related-links/)
 * [Active Topics](https://wordpress.org/support/plugin/contextly-related-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextly-related-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextly-related-links/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [rsingel](https://wordpress.org/support/users/rsingel/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/contextly-module-shortcode-as-php-with-do_shortcode/#post-5822638)
 * Status: resolved