Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] Using shortcodes in php file

Simple Membership Plugin › Forums › Simple Membership Plugin › Using shortcodes in php file

  • This topic has 1 reply, 2 voices, and was last updated 7 years, 1 month ago by The Assurer.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 5, 2019 at 7:25 am #19040
    Anonymous
    Inactive

    Hello,
    Can I use the shortcodes in a php file within a div tag?

    October 5, 2019 at 5:59 pm #19041
    The Assurer
    Moderator

    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.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy