Skip to main content
edited tags
Link
bueltge
  • 17.1k
  • 7
  • 61
  • 97
edited tags
Link
Johansson
  • 15.4k
  • 11
  • 43
  • 79
Post Closed as "Duplicate" by fuxia
improved formatting
Source Link
bueltge
  • 17.1k
  • 7
  • 61
  • 97

when I am using this document on web server it is running ok but when this file is running to use the plugin in WordPress then I have to put the shortcode of the file on the page on which I want to apply effect of that plugin.... but when I am putting the shortcode then it only shows the string of that shortcode, not the effect.... plz find the below coded file and provide a solution...............

"; echo ""; echo ""; echo ""; echo ""; echo 'Name'; echo 'Email'; echo 'Subject'; echo 'Message'; echo ''; echo " "; } add_shortcode( 'short_code', 'sac_form' ); ?>
<?php
function sac_form()
{
echo "<html>";
echo "<head></head>";
echo "<body>";
echo "<form>";
echo "<table>";
echo '<tr><td>Name</td><td><input type="text" name="Name"></td></tr>';
echo '<tr><td>Email</td><td><input type="text" name="Email"></td></tr>';
echo '<tr><td>Subject</td><td><input type="text" name="subject"></td></tr>';
echo '<tr><td>Message</td><td><textarea rows="4" cols="50"></textarea></td></tr>';
echo '<tr><td><input type="submit" name="submit" value="Submit"></td></tr>';
echo "</table>
</form>
</body>
</html>";
}
add_shortcode( 'short_code', 'sac_form' );
?>

when I am using this document on web server it is running ok but when this file is running to use the plugin in WordPress then I have to put the shortcode of the file on the page on which I want to apply effect of that plugin.... but when I am putting the shortcode then it only shows the string of that shortcode, not the effect.... plz find the below coded file and provide a solution...............

"; echo ""; echo ""; echo ""; echo ""; echo 'Name'; echo 'Email'; echo 'Subject'; echo 'Message'; echo ''; echo " "; } add_shortcode( 'short_code', 'sac_form' ); ?>

when I am using this document on web server it is running ok but when this file is running to use the plugin in WordPress then I have to put the shortcode of the file on the page on which I want to apply effect of that plugin.... but when I am putting the shortcode then it only shows the string of that shortcode, not the effect. plz find the below coded file and provide a solution.

<?php
function sac_form()
{
echo "<html>";
echo "<head></head>";
echo "<body>";
echo "<form>";
echo "<table>";
echo '<tr><td>Name</td><td><input type="text" name="Name"></td></tr>';
echo '<tr><td>Email</td><td><input type="text" name="Email"></td></tr>';
echo '<tr><td>Subject</td><td><input type="text" name="subject"></td></tr>';
echo '<tr><td>Message</td><td><textarea rows="4" cols="50"></textarea></td></tr>';
echo '<tr><td><input type="submit" name="submit" value="Submit"></td></tr>';
echo "</table>
</form>
</body>
</html>";
}
add_shortcode( 'short_code', 'sac_form' );
?>
Source Link
Loading