{"id":4323,"date":"2017-10-10T20:08:03","date_gmt":"2017-10-10T20:08:03","guid":{"rendered":"http:\/\/www.crimsondesigns.com\/blog\/?p=4323"},"modified":"2023-12-23T14:20:22","modified_gmt":"2023-12-23T14:20:22","slug":"wordpress-beginner-php-javascript","status":"publish","type":"post","link":"https:\/\/www.crimsondesigns.com\/blog\/wordpress-beginner-php-javascript\/","title":{"rendered":"WordPress under the Hood: Beginner PHP &#038; JavaScript"},"content":{"rendered":"<h2>PART 1: PHP<\/h2>\n<h3>Why learn PHP as a WordPress administrator?<\/h3>\n<p>You don&#8217;t need to know how to code proficiently in PHP to utilize PHP in WordPress. But, understanding basic PHP syntax will help you become familiar with the WordPress Loop<u>,<\/u> understand WordPress Functions, and give you the skills to add code snippets to your site.<!--more--><\/p>\n<h3>What is PHP?<\/h3>\n<p>PHP is the core language of WordPress. Nearly all WordPress themes and plugins are primarily written in PHP.<\/p>\n<h3>Some Things PHP Can Do:<\/h3>\n<ul>\n<li>PHP can generate dynamic page content.<\/li>\n<li>PHP can add, delete, and modify data in your database.<\/li>\n<li>PHP can be used to control user-access (logins).<\/li>\n<li>PHP can collect form data.<\/li>\n<li>PHP works completely behind the scenes.<\/li>\n<\/ul>\n<h3>How PHP is used in WordPress<\/h3>\n<p>PHP is mostly used for getting and putting content to\/from the WordPress database.&nbsp;The information stored in the database includes such things as posts, pages, comments and users. PHP functions can be written to fetch and display content from the database (such as a blog post).<\/p>\n<p>Did you know? If you use the search box at the top of a WordPress web page, PHP is being used to give you the search results.<\/p>\n<h4>WordPress has a lot of &nbsp;PHP files.&nbsp;A PHP file ends with the extension .php.<\/h4>\n<p>Some PHP files contain only PHP code and some contain a combination of PHP and HTML code.<\/p>\n<ul>\n<li><strong>WordPress theme files&nbsp;<\/strong>contain a combination of PHP and HTML.<\/li>\n<li><strong>WordPress plugin files<\/strong> contain primarily PHP code. They may have some HTML, CSS and JavaScript too.<\/li>\n<\/ul>\n<p>You can learn more about PHP by studying the files in a simple WordPress theme. You will become more familiar with the syntax.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"centered\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/wordpress-theme-with-php-3.jpg\" alt=\"WordPress Theme with PHP\" width=\"523\" height=\"221\"><\/p>\n<p><a href=\"http:\/\/naked-wordpress.bckmn.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">NAKED WORDPRESS<\/a>&nbsp;is a straightforward and well-commented theme.&nbsp;You can download it to your computer and look at the files. In it, you&#8217;ll find a functions.php file. We will discuss that in a minute.<\/p>\n<h3>How to recognize PHP (syntax)<\/h3>\n<ul>\n<li>A PHP script starts with&nbsp;<strong>&lt;?php&nbsp;<\/strong>and ends with&nbsp;<strong>?&gt;<\/strong><\/li>\n<li>PHP code goes inside PHP tags<\/li>\n<li>A PHP script can be placed anywhere in a web page.<\/li>\n<li>A PHP variable starts with the <strong>$<\/strong> sign followed by the name of the variable (variable names are case-sensitive).<\/li>\n<\/ul>\n<div class=\"codeWrap\"><strong>&lt;?php<\/strong><br \/>\n<strong> echo&nbsp;&#8220;This is my page.&#8221;;<\/strong><br \/>\n<strong> ?&gt;<\/strong><\/div>\n<p>All PHP code goes inside the PHP tags.<\/p>\n<div class=\"codeWrap\"><strong>&lt;?php \/\/ PHP code is placed between the tags. ?&gt;<\/strong><\/div>\n<h4>PHP Comments<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-4578\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/php-script-1.png\" alt=\"PHP Script\" width=\"249\" height=\"154\"><\/p>\n<p>\/\/ This is a&nbsp;single line comment. It&#8217;s for a brief comment.<\/p>\n<p>The multi-line PHP comment begins with <strong>&nbsp;<\/strong>\/* &nbsp;and ends with &nbsp;*\/ . It&nbsp;can be used to write multiple line comments.<\/p>\n<p><strong>PHP Script Example<\/strong><\/p>\n<div class=\"codeWrap\">Copyright <strong>&lt;?php echo date(&#8216;Y&#8217;); ?&gt;<\/strong> Crimson Designs.<\/div>\n<p>This is a simple way to show the dynamic copyright date in your website. Put this code in a PHP&nbsp;file to show the current year. (NOTE: The file you put it in must end in <strong>.php<\/strong>)<\/p>\n<p>You can place your PHP code directly into your child theme\u2019s template files (but not in a cascading style sheet file. That is strictly for CSS).<\/p>\n<h4>Code Snippets<\/h4>\n<p>You may come across code snippets online that do handy things for your WordPress website. You\u2019ll be told to put the code snippet into your <strong>functions.php<\/strong> file. (You\u2019ll want to create that file in a child theme and add the code snippet there.)<\/p>\n<div class=\"codeWrap\"><strong>&lt;?php<br \/>\n<\/strong>echo &#8220;I\u2019m learning php.&#8221;;<br \/>\n<strong>?&gt;<\/strong><\/div>\n<p>If you place the above PHP code in your child theme\u2019s <strong>functions.php<\/strong>, it will output the text in every page of your site. All your website visitors will discover that you\u2019re learning PHP. You can be more specific about when and where (on which pages) you want your announcement to be displayed by using PHP functions and hooks. (We&#8217;ll discuss the functions.php file in a minute.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"centered\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/simple-php-script-1.png\" alt=\"simple PHP script\" width=\"400\" height=\"195\"><\/p>\n<p>See: <a href=\"https:\/\/wpsites.net\/tools\/beginners-guide-php-wordpress\/\" target=\"_blank\" rel=\"noopener noreferrer\">Beginners Guide To PHP in WordPress<\/a><\/p>\n<h4>PHP Files\/Pages<\/h4>\n<p>PHP files are similar to HTML files, but PHP files can include both HTML and PHP.&nbsp;A user visiting a web page made in PHP cannot view the PHP code, only the output generated by the code.<\/p>\n<p>When an online visitor accesses a PHP page, the Web browser only gets sent the HTML code. The Web server has already processed the PHP code in the background.&nbsp;In a PHP file, the&nbsp;<strong>.php<\/strong> extension is important. It tells the Web server that the page may include PHP code.<\/p>\n<h4><strong>PHP compared to HTML<\/strong><\/h4>\n<ul>\n<li>PHP is a scripting language; HTML is a markup language.<\/li>\n<li>HTML cannot perform computations like 1 + 1 = 2.<\/li>\n<li>HTML is very easy and forgiving of mistakes while PHP isn\u2019t.<\/li>\n<li>HTML files are static. They are the same every time they are viewed. PHP files are dynamic. The output might not always be the same.<\/li>\n<\/ul>\n<p>Learn more about HTML and CSS:&nbsp;<a href=\"http:\/\/www.crimsondesigns.com\/blog\/wordpress-beginner-html-css\/\">WordPress under the Hood: Beginner HTML &amp; CSS.<\/a><\/p>\n<h4>PHP Include Files<\/h4>\n<p>PHP allows you to include&nbsp;the contents of one file into another. (This makes designing web pages much easier and more efficient.) PHP functions such as include() or the WordPress function&nbsp;get_template_part() make it possible to include page templates in a web page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"centered\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/php-include-file.png\" alt=\"PHP Include File\" width=\"400\" height=\"252\"><\/p>\n<p>A full web page on your WordPress site contains code for the header, the footer, the sidebar etc.. It&#8217;s like putting the pieces of a puzzle together. These files will be included in the page.<\/p>\n<ul>\n<li>the header will be in a file called <strong>header.php<\/strong><\/li>\n<li>the sidebar(s) is normally in <strong>sidebar.php<\/strong><\/li>\n<li>the footer is normally in <strong>footer.php<\/strong><\/li>\n<\/ul>\n<p>These are template files.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"centered\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/wordpress-template-files.jpg\" alt=\"WordPress template files are like puzzle pieces\" width=\"491\" height=\"249\"><\/p>\n<h3>What is a function?<\/h3>\n<p>A function is simply a set of program statements which perform a specific task. A PHP function can be \u201ccalled\u201d or executed. You can define functions you wish to re-use in your theme\u2019s template files.<\/p>\n<h4>Where exactly is the functions.php file?<\/h4>\n<p>A theme\u2019s functions.php file is located in your theme&#8217;s folder &nbsp;in the \/wp-content\/ folder. (NOTE: It is&nbsp;<strong>NOT<\/strong>&nbsp; in the \/wp-includes\/ folder. Do not even look in that folder. It should not be touched.)<\/p>\n<p>You can <a href=\"https:\/\/wordpress.org\" target=\"_blank\" rel=\"noopener noreferrer\">download WordPress<\/a> to your computer in a ZIP file, then open it to get a look at all the files. Look for the <strong>wp-content<\/strong> folder. Open it. Then find the the folder called &#8220;themes.&#8221; Inside that folder, you will see the folders of some default themes. Each one has a functions.php file inside with functions in it.<\/p>\n<h4>PHP Function Example:<\/h4>\n<p><strong>function twentyseventeen_setup() {<\/strong><\/p>\n<p>\/* Each function may contain a lot of code. Each function will end with a curly brace. This is a multi-line comment in a function that doesn&#8217;t really do anything right now. *\/<\/p>\n<p><strong>}<\/strong><\/p>\n<h3>Inside your functions.php file<\/h3>\n<p>If you look at a functions.php file, you will notice that it starts with:<\/p>\n<p><strong>&lt;?php<\/strong><\/p>\n<p>The closing PHP tag <strong>?&gt;<\/strong> is optional at the end of the file. So if you don\u2019t see&nbsp;<strong>the closing PHP tag<\/strong>&nbsp;at the bottom of the file, that\u2019s okay.&nbsp;If you\u2019re creating a child functions.php page, you will need to type: <strong>&lt;?php<\/strong> at the very top before you add any functions or code snippets.<\/p>\n<p>Your <strong>functions.php<\/strong> file is not the place to put custom CSS code. This file is for PHP code snippets and functions.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"centered\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/wordpress-functions-file.png\" alt=\"WordPress functions.php file\" width=\"600\" height=\"255\"><\/p>\n<p>NOTE: If you&#8217;re comfortable&nbsp;modifying&nbsp;your functions.php file, you are capable of creating a simple plugin. The code you paste in your functions.php can most likely be used in a plugin.<\/p>\n<p>Here are some PHP functions that can be added to a functions.php page.<\/p>\n<p><a href=\"https:\/\/digwp.com\/2010\/03\/wordpress-functions-php-template-custom-functions\/\">WordPress functions.php Template with 15 Essential Custom Functions<\/a><\/p>\n<p>Here\u2019s a tutorial for writing a simple WordPress plugin:<\/p>\n<p><a href=\"http:\/\/www.wpexplorer.com\/writing-simple-wordpress-plugin\/\" target=\"_blank\" rel=\"noopener noreferrer\">Writing a Simple WordPress Plugin, Beginner Tutorial<\/a><\/p>\n<p>You can copy and paste WordPress PHP functions, at first, once you figure out where to put them. With a little effort, you\u2019ll start to recognize them. Then you\u2019ll begin to understand them, and maybe someday write your own.<\/p>\n<ul>\n<li>Make sure you wait until a function is \u2018over\u2019 before you insert your code. Remember, a closing curly brace <strong>}<\/strong> designates the end of a function.<\/li>\n<li>Don\u2019t mess with existing functions in a parent theme. Put functions in a child theme.<\/li>\n<li>Be prepared. Even a tiny mistake in your <strong>functions.php<\/strong> page can break your WordPress site and make it inaccessible.<\/li>\n<\/ul>\n<h4>Adding Custom Code Snippets in WordPress<\/h4>\n<p>The&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\">Code Snippets plugin<\/a>&nbsp;is a great way to add custom code to a WordPress site. It&nbsp;gives you <strong>a safer way to add chunks of code<\/strong> to the <a title=\"What is the functions.php file?\" href=\"https:\/\/codex.wordpress.org\/Functions_File_Explained\" target=\"_blank\" rel=\"noopener noreferrer\">functions.php<\/a> file.&nbsp;Your code snippets can all be managed from the Manage screen of the plugin. You can easily &nbsp;activate and deactivate them.<\/p>\n<p>NOTE: ALWAYS back up your WordPress site before making any changes to the code.<\/p>\n<h4>Next up: Beginner JavaScript<\/h4>\n<ul class=\"table-of-paginated-contents\">\n<li><a href=\"https:\/\/www.crimsondesigns.com\/blog\/wordpress-beginner-php-javascript\/\">PART 1: PHP in WordPress<\/a><\/li>\n<li><a href=\"https:\/\/www.crimsondesigns.com\/blog\/wordpress-beginner-php-javascript\/2\/\">PART 2: JavaScript in WordPress<\/a><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7546\" src=\"https:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/wordpress-beginner-php-js.gif\" alt=\"WordPress Tutorial: Beginner PHP and JavaScript\" width=\"400\" height=\"600\"><\/p>\n<p><!--nextpage--><\/p>\n<h2>PART 2: JavaScript<\/h2>\n<h3>Why do I need to learn JavaScript if I manage a WordPress site?<\/h3>\n<ol>\n<li>By learning the basics of <strong>JavaScript<\/strong> and <strong>PHP<\/strong>, you can go beyond customizing the appearance of your WordPress website. You can modify the way it works. Even if you just take the first step: being able to recognize JavaScript and PHP (and tell them apart), you will be able to better manage your site.<\/li>\n<li>You may need to copy and paste some JavaScript or PHP code into your WordPress site. But, JavaScript and PHP are not as forgiving as <strong>HTML<\/strong> and <strong>CSS.<\/strong> Sometimes, just forgetting to include something as simple as a semicolon <strong>(;)<\/strong> can mess up the code and lead to hours of troubleshooting.<\/li>\n<li>It\u2019s good to know the basics. It\u2019s good to recognize the syntax. It\u2019s great to be able to write a simple script and know what to do with it in your WordPress site.<\/li>\n<li>JavaScript is going to become a major component in future WordPress sites. You\u2019ll learn more about that in a minute.<em>&nbsp;<\/em><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"centered\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/javascript-in-wordpress.gif\" alt=\"JavaScript in WordPress\" width=\"600\" height=\"363\"><\/p>\n<h3>What is JavaScript (JS)?<\/h3>\n<ul>\n<li>JavaScript (JS) is a scripting language that can run&nbsp;in your browser.<\/li>\n<li>JavaScript allows immediate feedback to visitors.<\/li>\n<li>It helps make web pages more dynamic and interactive.<\/li>\n<li>You can use JavaScript for calculations. HTML can&#8217;t do that.<\/li>\n<li>It is commonly found embedded in HTML code.<\/li>\n<li>JavaScript has often been used to create web animations such as image sliders. But, you can also build entire sites with it.<\/li>\n<\/ul>\n<h3 id=\"adding-javascript-into-an-html-document\">Adding JavaScript into an HTML Document<\/h3>\n<p>You can add JavaScript code in an HTML document by using the tag <code>&lt;script&gt;<\/code> that wraps around JavaScript code.<\/p>\n<p><strong>JavaScript Example:<\/strong><\/p>\n<div class=\"codeWrap\"><strong>&lt;script&gt;<\/strong><br \/>\nwindow.alert(5&nbsp;+&nbsp;6);<br \/>\n<strong>&lt;\/script&gt;<\/strong><\/div>\n<p>(This script can be placed in an HTML page or a PHP page.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"centered\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/javascript-script-tag.gif\" alt=\"JavaScripts script tag\" width=\"500\" height=\"82\"><\/p>\n<p>You can place a whole bunch of JavaScript scripts in an HTML document, if you really want to. Scripts can be placed in the &nbsp;the <strong>&lt;head&gt;<\/strong>, the <strong>&lt;body&gt;<\/strong> or <strong>&lt;footer&gt;<\/strong> section of a web page.<\/p>\n<p>Scripts that are small can be included in an HTML file.<\/p>\n<p>The most common way to include JavaScript is to put JavaScript scripts in a separate file and link to them from a web page.&nbsp;<strong>JavaScript files end with the extension .js.&nbsp;<\/strong><\/p>\n<p>You can add script tags in your HTML document which point to your javascript files.<\/p>\n<p><strong>Example Script Tags Pointing to an External .JS File<\/strong><\/p>\n<div class=\"codeWrap\">&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;js\/script.js&#8221;&gt;&lt;\/script&gt;<\/div>\n<h3>JavaScript Compared to PHP<\/h3>\n<ul>\n<li>Your web browser executes JavaScript code. Your browser does all the processing.<\/li>\n<li>PHP runs on the server where your website is stored. The server computer does all PHP processing and it sends the result to your browser.<\/li>\n<li>It is not hard to learn JavaScript or PHP, but it\u2019s harder than learning HTML and CSS.<\/li>\n<li>All the arithmetic operators are the same. Loops, arithmetic logic, variables and functions and assignments are all terms used for both languages.<\/li>\n<li>The syntax signs are one of the major differences between JS and PHP.<\/li>\n<li>JavaScript and PHP are both&nbsp;<a href=\"https:\/\/www.lifewire.com\/what-does-case-sensitive-mean-2625824\" target=\"_blank\" rel=\"noopener noreferrer\">case-sensitive.<\/a><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"centered\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/javascript-versus-php.gif\" alt=\"JavaScript versus PHP\" width=\"550\" height=\"349\"><\/p>\n<h4>Contact Forms:&nbsp;Example of how HTML, CSS, JavaScript and PHP are commonly used together<\/h4>\n<p>A contact form can be created with HTML. Then CSS can be used to make it look nice. Form validation can be done on the client-side (web browser) and on the server-side (PHP). Client-side validation can be done with JavaScript and also HTML5 (the newest version of HTML). The form can then be sent with PHP.<\/p>\n<h3>How to recognize JavaScript (syntax)<em>&nbsp;<\/em><\/h3>\n<ul>\n<li>JavaScript statements are separated by&nbsp;<strong>semicolons (;)<\/strong>.<\/li>\n<li>JavaScript uses the&nbsp;<strong>var&nbsp;<\/strong>keyword to&nbsp;declare<strong> variables.<\/strong><\/li>\n<li>The&nbsp;<strong>var<\/strong>&nbsp;keyword tells the browser to create variables.<\/li>\n<li>An&nbsp;<strong>equal sign&nbsp;<\/strong>is used to&nbsp;<strong>assign values<\/strong>&nbsp;to variables.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"centered\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/javascript-on-computer-1.jpg\" alt=\"JavaScript on a computer\" width=\"491\" height=\"309\"><\/p>\n<p><strong>Hyphens, camelCase and Underscores<\/strong><\/p>\n<ul>\n<li>The common convention around naming variables in JavaScript is to use&nbsp;<a href=\"http:\/\/en.wikipedia.org\/wiki\/CamelCase\">camelCase<\/a>, (without any dashes or underscores). camelCase consists of combining words while removing spaces, capitalizing the beginning of each new word except for the initial word.<\/li>\n<li>Hyphens are not allowed in JavaScript names.<\/li>\n<li>On the other hand, hyphens are commonly used in CSS. Underscores are often used in PHP (ex. date_of_birth), especially in SQL databases.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"centered alignnone\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/camelcase-in-javascript.gif\" alt=\"camelCase in JavaScript\" width=\"400\" height=\"82\"><\/p>\n<h3>Adding JavaScript to Your WordPress Site<\/h3>\n<p>Don\u2019t try to add JavaScript in your VISUAL\/TEXT editor. WordPress by default strips out any code in posts and pages that may be considered malicious. It may also add <strong>&lt;p&gt;<\/strong> tags around your <strong>&lt;script&gt;<\/strong> tags in the TEXT editor, preventing your script from working.<\/p>\n<h3>JavaScript and Page Speed<\/h3>\n<p>NOTE: Adding JavaScript (and Plugins) to your website can affect your site\u2019s speed. Javascript that is located towards the top of an HTML document can block page rendering, slowing down a web page. In order to defer parsing of Javascript, it is best to call these scripts at the end of an HTML document and link to your external JavaScript files in the FOOTER sections of your pages.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.crimsondesigns.com\/blog\/wp-content\/uploads\/2017\/10\/javascript-and-page-speed-1.gif\" alt=\"JavaScript can affect Page Speed\" width=\"550\" height=\"367\"><\/p>\n<p><strong>Combine and Minify JavaScript files<\/strong><\/p>\n<p>Having &#8220;multiple&#8221; JavaScript files can also hurt a website\u2019s load time. These scripts can often be combined for better website performance. JavaScript can be compressed (minified) to speed up page loading time. <strong>Minification&nbsp;<\/strong>removes<strong>&nbsp;<\/strong>all the white space from the code before serving it to visitors.<em>&nbsp;<\/em><\/p>\n<p><strong>Helpful Links:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/kinsta.com\/blog\/eliminate-render-blocking-javascript-css\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to Eliminate Render-Blocking JavaScript and CSS<\/a><\/li>\n<li><a href=\"https:\/\/premium.wpmudev.org\/blog\/javascript-wordpress-basics\/\" target=\"_blank\" rel=\"noopener noreferrer\">JavaScript for WordPress Developers: Learning the Basics<\/a><\/li>\n<\/ul>\n<h3>JavaScript and the Future of WordPress<\/h3>\n<p>JavaScript will play a key role in the future of WordPress. You may have heard about or seen the new interface, <strong>Calypso.<\/strong> ( It\u2019s currently in use on WordPress.com.)<\/p>\n<ul>\n<li>Unlike the traditional WordPress Admin interface, Calypso uses JavaScript.<\/li>\n<li>Calypso provides a more streamlined way to create posts and pages.<\/li>\n<li>Rather than connecting directly to the MySQL database, Calypso manages content over the web using a special language known as a REST API. It eliminates the need to login to the WordPress admin section (dashboard) from a browser to manage content. In the future, it may eliminate the need for the dashboard altogether.<\/li>\n<\/ul>\n<p>If you aren\u2019t super comfortable with JavaScript, it would be a great time to start learning.<\/p>\n<p>Visit:&nbsp;<a href=\"http:\/\/jsforcats.com\" target=\"_blank\" rel=\"noopener noreferrer\">JavaScript For Cats.<\/a><\/p>\n<p>It&#8217;s a helpful tutorial for JavaScript beginners, not for real cats.<\/p>\n<ul class=\"table-of-paginated-contents\">\n<li><a href=\"https:\/\/www.crimsondesigns.com\/blog\/wordpress-beginner-php-javascript\/\">PART 1: PHP in WordPress<\/a><\/li>\n<li><a href=\"https:\/\/www.crimsondesigns.com\/blog\/wordpress-beginner-php-javascript\/2\/\">PART 2: JavaScript in WordPress<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>By learning the basics of JavaScript and PHP, you can go beyond customizing the appearance of your website. You can modify the way it works. Even if you just take the first step: being able to recognize JavaScript and PHP (and tell them apart), you will be able to better manage your site.<\/p>\n","protected":false},"author":1,"featured_media":7676,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,10],"tags":[115,164,287,288,279,281],"class_list":{"0":"post-4323","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-html-and-css","8":"category-wordpress","9":"tag-javascript","10":"tag-php","11":"tag-php-function","12":"tag-template-files","13":"tag-wordpress-beginner","14":"tag-wordpress-function","15":"cat-5-id","16":"cat-10-id","17":"has_thumb"},"_links":{"self":[{"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/posts\/4323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/comments?post=4323"}],"version-history":[{"count":3,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/posts\/4323\/revisions"}],"predecessor-version":[{"id":7732,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/posts\/4323\/revisions\/7732"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/media\/7676"}],"wp:attachment":[{"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/media?parent=4323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/categories?post=4323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.crimsondesigns.com\/blog\/wp-json\/wp\/v2\/tags?post=4323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}