Short code in wordpress php file

Support Forums Programming and Development WordPress Short code in wordpress php file

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Jeanne 4 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1188

    john kennedy
    Participant

    How to write the short code in wordpress php file?

    #1197

    Jeanne
    Keymaster

    Hi,

    Using do_shortcode() function inside of php echo tag. A very simple solution is to use the do_shortcode()
    function inside a PHP echo tag.
    eg:< ?php do_shortcode("[shortcode]"); ?>

Viewing 2 posts - 1 through 2 (of 2 total)

You must Login/Register to reply to this topic.