What is a shortcode?
A shortcode is a functional tag which you place in and around your text to make things happen on the web page which text alone cannot do. HTML is a language used for adding richness like color, boldness and size. Shortcodes may be mixed with HTML , JavaScript and PHP or used alone with text by the web programmer(you) to create dynamic pages with an ease never known before.
You can make shortcodes do things as simple as making the text bold to more complex tasks like creating forms, text boxes and also to write the commands to collect and process the input in various ways while displaying it all inside your favorite template or any existing website theme.
You may even define your own custom shortcodes to simply repetitive processes and save lots of typing.
The list of available shortcodes is fairly comprehensive, including direct server file access, conventional “if/else” logic, standard looping structures like, foreach and while as well as full access to querystring, form input, cookies, request headers and all other standard server variables you would expect to see.
The shortcodes are ultimately compiled as PHP , HTML or JavaScript(as required) directly into index.html or index.php files located at the nodes’ actual internet addresses. The shortcodes may be mixed directly with PHP code before node compilation. Shortcode variables such as ‘var1’ translate in PHP to ‘$var1’. Some shortcodes such as all user defined shortcodes, if and while require their conditional logic expression variables be in PHP form. These will be noted in the examples.
Think of using shortcodes as training wheels that will give you the basic understanding of internet programming, web design and codebase management. They are in no way intended as a replacement for the very robust PHP language and it is our hopes that you will be inspired to further your skills by studying PHP, HTML and JavaScript with our advanced courses.
- [[:(php code)]]
- [[=(variable)]]
- ADMIN_SECURITY
- APPEND_FILE
- AUTO_REFRESH
- BOLD
- BOX
- BR, CR
- CABLEBOX
- CHECKBOX
- CLOSE_WINDOW
- COLUMN_DATE2UNIX
- COLUMN_DMS2GPS
- CONCATENATE
- CSV_DESERIALIZE
- DECREMENT
- DELETE_FILE
- EDITBOX
- EDITBOX_TYPE
- EDITOR_RICH_TEXT
- ELSE, ELSE_IF
- END_FOR_EACH_AS
- END_IF
- END_OF_FORM
- END_OF_FORM_FIELDS
- END_WHILE
- EQUALS
- EXIT
- FILE_EDITOR
- FILE_EDITOR_HTML
- FOR_EACH_AS
- FORM_FIELDS
- GD_Library
- GET
- GET_DIR
- GET_LAST_IMAGE
- GET_LAST_MODIFIED
- GET_TIME
- GOTO
- HEADER_FORCE_DOWNLOAD
- HEADER_TYPE
- HR, HORIZ_RULE
- IF
- IF_EQUAL
- IF_FILE_EXISTS
- IF_FILE_FRESH
- IF_FILE_STALE
- IF_ISIN
- IF_NOT_EQUAL
- IF_NOT_ISIN
- IF_SUBMITTED
- IMAGE
- INCREMENT
- INITIALIZE
- INPUT
- INPUT_DISABLED
- ITALIC, END_ITALIC
- JS
- LINK
- LINK_NOFOLLOW
- LOAD_DATAFEED
- LOAD_DATASET
- MATH
- NO_CACHE
- PDF_Library
- PHP_INCLUDE
- PHP_REQUIRE_ONCE
- PIVOT_TABLE
- PIVOT_VIEW_DISPLAY
- POPUP_THIS
- POST
- QUERY_STRING
- READ_FILE
- REFRESH_OPENER
- REQUIRE_HTTPS
- RETURN
- RSS
- SAVE_DATAFEED
- SAVE_DATASET
- STRING_REPLACE
- STYLE
- SUBMIT
- TABLE
- UNTIL
- USER_FUNCTION, FX
- VIEW_COLUMN_SORT
- VIEW_DATAFEED
- VIEW_DISPLAY
- VIEW_PAGINATE
- VIEW_SEARCH
- VIEW_SELECT
- VIEW_SORT
- WAIT
- WHILE
- WHILE_SMALLER
- WHILE_SMALLER_OR_EQUAL
- WORDPRESS_LOGIN_FORM
- WRITE_FILE