Introduction to PHP

  • PHP is open source scripting language widely used for the web development. It was introduced in 1995 and is influenced by other scripting languages such as Perl, Java, C, C++.
  • PHP stands for 'Preprocessor Home Page'.
  • PHP scripts are executed on the web-server.

Run shortcodes from a custom field.

By default, WordPress Custom Fields display any of the string you enter, as plain-text. In same way when you try to execute a shortcode, (in the format [shortcode] VALUE [/shortcode]) you end up displaying the entire text, including the html tags.

This is because, Wordpress do not run shortcodes added to custom fields.