[Resolved] Using shortcodes in php file by Simple Membership Plugin › Forums › Simple Membership Plugin › Using shortcodes in php file This topic contains 1 reply, has 2 voices, and was last updated by The Assurer 4 months, 3 weeks ago. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts October 5, 2019 at 7:25 am #19040 altsmrParticipant Hello, Can I use the shortcodes in a php file within a div tag? October 5, 2019 at 5:59 pm #19041 The AssurerKeymaster Shortcodes are intended for use within the_content() only. However, in some cases, you might get away with adding: do_shortcode("[your-shortcode]"); to a PHP file. This reply was modified 4 months, 3 weeks ago by The Assurer. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.