{"id":10370,"date":"2017-12-06T15:39:43","date_gmt":"2017-12-06T13:39:43","guid":{"rendered":"https:\/\/themeisle.com\/blog\/?p=10370"},"modified":"2023-06-12T15:21:22","modified_gmt":"2023-06-12T12:21:22","slug":"wordpress-functions-php-guide","status":"publish","type":"post","link":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/","title":{"rendered":"Beginner&#8217;s Guide to the WordPress Functions.php File + 5 Things You Can Do With It"},"content":{"rendered":"<p>The WordPress functions.php file is one of the most central files of any WordPress installation. It can control much of the functionality and behavior of your website. However, beginners often don&#8217;t understand what the file does and what they can use it for. This article will change that.<\/p>\n<p>In the following, you will learn what the <code>functions.php<\/code> is, where to find it, and what it can do. After that, I will talk about the file&#8217;s pros and cons and close the article with a few example code snippets that you can input into <code>functions.php<\/code> to enhance your WordPress website.<\/p>\n<div class=\"su-row\">\n<div class=\"su-column su-column-size-1-2\"><div class=\"su-column-inner su-u-clearfix su-u-trim\">\n<p>Sounds good? Then let&#8217;s not dilly-dally and dive right into it.<\/p>\n<\/div><\/div>\n<div class=\"su-column su-column-size-1-2\"><div class=\"su-column-inner su-u-clearfix su-u-trim\">\n\n\t\t<div class='ti-tweet-clear'><\/div>\n\t\t\t<div class='ti-tweet_wrapper'>\n\t\t    \t<div class='ti-tweet_text'>\n\t\t    \t\t<a href='https:\/\/twitter.com\/share?text=Everything+a+beginner+needs+to+know+about+%23WordPress+functions.php&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/' target='_blank' rel='nofollow'>Everything a beginner needs to know about #WordPress functions.php<\/a>\n\t\t    \t<\/div>\n\t\t    \t<div class='ti-tweet_sharebtn'>\n\t\t    \t<a href='https:\/\/twitter.com\/share?text=Everything+a+beginner+needs+to+know+about+%23WordPress+functions.php&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/' target='_blank' rel='nofollow'>Click To Tweet \n\t\t    \t\t<span><\/span>\n\t\t    \t<\/a>\n\t\t    <\/div>\n\t\t<\/div>\n<\/div><\/div>\n<\/div>\n<h2>What is functions.php and what does it do?<\/h2>\n<p>The functions.php file is part of pretty much every WordPress installation. More specifically, you can usually find it in the directory of every theme installed on your site (including <a href=\"https:\/\/themeisle.com\/blog\/wordpress-child-themes\/\">child themes<\/a>).<\/p>\n<p>So what does this ubiquitous file do?<\/p>\n<p>The <code>functions.php<\/code> file is kind of like a theme-dependent plugin. You can use it to add any kind of functionality to your site (like plugins do). However, because\u00a0<code>functions.php<\/code> is part of your theme, your changes will only be active as long as the theme is, whereas plugins work no matter which theme you&#8217;re using.<\/p>\n<p>To do its job, <code>functions.php<\/code> can contain PHP code as well as native WordPress functions. If you know your way around things like <a href=\"https:\/\/themeisle.com\/blog\/wordpress-hooks\/\" target=\"_blank\" rel=\"noopener\">theme hooks<\/a>, you can even use <code>functions.php<\/code>\u00a0to <a href=\"https:\/\/wpshout.com\/adding-your-own-wordpress-hooks\/\">create your own hooks<\/a>!<\/p>\n<p>Because it can contain all types of code snippets the functions file is very powerful. However, you know <a href=\"https:\/\/www.youtube.com\/watch?v=b23wrRfy7SM\" target=\"_blank\" rel=\"noopener\">what uncle Ben said<\/a>: with great power also comes great responsibility. For that reason, let&#8217;s next discuss when to use <code>functions.php<\/code> and when not to.<\/p>\n<h2>Pros and cons of using the WordPress functions.php file<\/h2>\n<p>So, <code>functions.php<\/code> basically works like a plugin. However, it doesn&#8217;t just do one specific thing. Instead, the file can be a collection of code for many different purposes. For example:<\/p>\n<ul>\n<li>Creating widget areas<\/li>\n<li>Adding new image sizes to your site<\/li>\n<li>Changing the text of the &#8216;read more&#8217; link<\/li>\n<li>Adding custom fonts<\/li>\n<\/ul>\n<p>As you can see, the file is extremely flexible. For that reason, if you want to make small changes to your site, the WordPress <code>functions.php<\/code> file is the perfect way to accomplish that.<\/p>\n<p>On the other side, it also has its limits. First and foremost, if there is any small mistake in the file (such as a missing semicolon) it can take down your entire site.<\/p>\n<p>Scary, I know.<\/p>\n<p>Plus, if it&#8217;s the only way you make changes to your site, the file can quickly become chaotic and confusing.<\/p>\n<p>Finally, as you learned earlier, if you ever switch WordPress themes, you&#8217;ll lose the changes in your\u00a0<code>functions.php<\/code>\u00a0file. If you think you&#8217;ll be switching themes soon, or are adding functionality that you want to work <i>independently<\/i>\u00a0of your theme, you may be better off using the Code Snippets plugin:<\/p>\n<div class=\"wp-pic-wrapper align-center large\" style=\"margin:20px 0;\"><div class=\"wp-pic large plugin scheme2\"  id=\"wp-pic-code-snippets\" ><div class=\"wp-pic-large\" style=\"display: none;\">\n\t<div class=\"wp-pic-large-content\">\n\t\t<a rel=\"nofollow\" class=\"wp-pic-asset-bg\" href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" title=\"WordPress.org Plugin Page\">\n\t\t\t<img data-opt-id=1097485604  fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/ps.w.org\/code-snippets\/assets\/banner-772x250.png?rev=3147867\" alt=\"Code Snippets\" \/>\t\t\t<span class=\"wp-pic-asset-bg-title\"><span>Code Snippets<\/span><\/span>\n\t\t<\/a>\n\t\t<div class=\"wp-pic-half-first\">\n\t\t\t<a rel=\"nofollow\" class=\"wp-pic-logo\" href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" style=\"background-image: url(https:\/\/ps.w.org\/code-snippets\/assets\/icon.svg?rev=2148878 );\" target=\"_blank\" title=\"WordPress.org Plugin Page\"><\/a>\n\t\t\t<p class=\"wp-pic-author\">Author(s):\t\t\t\t\t\t\t\t\t<a rel=\"nofollow\" href=\"https:\/\/profiles.wordpress.org\/codesnippetspro\/\">Code Snippets Pro<\/a>\n\t\t\t\t\t\t\t<\/p>\n\t\t\t<p class=\"wp-pic-version\"><span>Current Version:<\/span> 3.9.5<\/p>\n\t\t\t<p class=\"wp-pic-updated\"><span>Last Updated:<\/span> February 5, 2026<\/p>\n\t\t\t<p><a rel=\"nofollow\" class=\"wp-pic-dl-link\" href=\"https:\/\/downloads.wordpress.org\/plugin\/code-snippets.3.9.5.zip\" title=\"Direct download\">Direct Download<\/a><\/p>\n\t\t\t\t\t<\/div>\n\t\t<div class=\"wp-pic-half-last\">\n\t\t\t<div class=\"wp-pic-bottom\">\n\t\t\t\t<div class=\"wp-pic-bar\">\n\t\t\t\t\t<a rel=\"nofollow\" href=\"https:\/\/wordpress.org\/support\/view\/plugin-reviews\/code-snippets\" class=\"wp-pic-rating\" target=\"_blank\" title=\"Ratings\">\n\t\t\t\t\t\t94%<em>Ratings<\/em>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t<a rel=\"nofollow\" href=\"https:\/\/downloads.wordpress.org\/plugin\/code-snippets.3.9.5.zip\" class=\"wp-pic-downloaded\" target=\"_blank\" title=\"Direct download\">\n\t\t\t\t\t\t1,000,000+<em>Installs<\/em>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t<a rel=\"nofollow\" href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" class=\"wp-pic-requires\" target=\"_blank\" title=\"WordPress.org Plugin Page\">\n\t\t\t\t\t\tWP 5.0+<em>Requires<\/em>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n<\/div><\/div><!-- .wp-pic-wrapper--><link rel='stylesheet' id='dashicons-css' href='https:\/\/themeisle.com\/blog\/wp-includes\/css\/dashicons.min.css?ver=6.8.5' type='text\/css' media='all' \/>\n<link rel='stylesheet' id='wppic-style-css' href='https:\/\/themeisle.com\/blog\/wp-content\/plugins\/wp-plugin-info-card\/dist\/wppic-styles.css?ver=6.1.1' type='text\/css' media='all' \/>\n<script type=\"text\/javascript\" src=\"https:\/\/themeisle.com\/blog\/wp-includes\/js\/jquery\/jquery.min.js?ver=3.7.1\" id=\"jquery-core-js\"><\/script>\n<script type=\"text\/javascript\" src=\"https:\/\/themeisle.com\/blog\/wp-includes\/js\/jquery\/jquery-migrate.min.js?ver=3.4.1\" id=\"jquery-migrate-js\"><\/script>\n<script type=\"text\/javascript\" id=\"wppic-script-js-extra\">\n\/* <![CDATA[ *\/\nvar wppicAjax = {\"ajaxurl\":\"https:\\\/\\\/themeisle.com\\\/blog\\\/wp-admin\\\/admin-ajax.php\"};\n\/* ]]> *\/\n<\/script>\n<script type=\"text\/javascript\" src=\"https:\/\/themeisle.com\/blog\/wp-content\/plugins\/wp-plugin-info-card\/assets\/js\/wppic-script.min.js?ver=6.1.1\" id=\"wppic-script-js\"><\/script>\n\n<p>This plugin gives you a simpler, theme-independent way to add code snippets to\u00a0<code>functions.php<\/code><\/p>\n<h2>Example functions you can use on your site<\/h2>\n<p>Alright, now that you know all about this important file, you can start using it. Below, you will find a few code snippets that you can copy and paste to your theme&#8217;s functions file (with site-specific customizations, of course). The best way to use them is to paste them at the end of your\u00a0<code>functions.php<\/code> file.<\/p>\n<h3>1. Add Google Analytics to your site<\/h3>\n<p><a href=\"https:\/\/themeisle.com\/blog\/set-up-google-analytics-in-wordpress\/\">Adding Google Analytics<\/a> to your site is always a good idea. It will help you understand your audience better and track their behavior on your site so you can improve it.<\/p>\n<p>Usually, you would include Google Analytics on your site via a plugin, however, it&#8217;s also possible to do it manually via the WordPress <code>functions.php<\/code> file. Here&#8217;s what that looks like:<\/p>\n<p>https:\/\/gist.github.com\/nschaeferhoff\/e7fe59a1d59a9e1f303dcde95bb363ea<\/p>\n<p>To make the code snippet work, you need to replace everything between\u00a0<code>&lt;script async...<\/code>\u00a0and the final\u00a0<code>&lt;\/script&gt;<\/code>\u00a0with your own Google Analytics tracking code.<\/p>\n<h3>2. Hide specific WordPress login errors<\/h3>\n<p>When somebody tries to log into your site with faulty information, WordPress will tell that person whether the problem is an invalid username or an invalid password:<\/p>\n<p><img data-opt-id=484350700  fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-10425\" style=\"-webkit-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); -moz-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5);\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg\" alt=\"WordPress standard login error message\" width=\"1002\" height=\"555\" srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1002\/h:555\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg 1002w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:166\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:768\/h:425\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg 768w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:28\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:433\/h:240\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg 433w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:717\/h:397\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg 717w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:267\/h:148\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg 267w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:352\/h:195\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg 352w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:244\/h:135\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg 244w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1002\/h:555\/q:mauto\/f:best\/dpr:2\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-standard-login-error-messages.jpg 2x\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>Unfortunately, this can make it easier for hackers to <a href=\"https:\/\/themeisle.com\/blog\/tighten-wordpress-security\/\">get into your site<\/a>. For that reason, you can use the code snippet below to change the error message to something less revealing.<\/p>\n<p>https:\/\/gist.github.com\/nschaeferhoff\/9098cd6cd2e9127a8db1626b3866ed89<\/p>\n<p>Just change the text between the <code>\" \"<\/code> to whatever you want the message to say.<\/p>\n<p><img data-opt-id=255897921  fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-10424\" style=\"-webkit-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); -moz-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5);\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg\" alt=\"WordPress functions.php modify login error message\" width=\"1002\" height=\"561\" srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1002\/h:561\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg 1002w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:168\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:768\/h:430\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg 768w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:28\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:429\/h:240\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg 429w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:709\/h:397\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg 709w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:264\/h:148\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg 264w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:348\/h:195\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg 348w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:241\/h:135\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg 241w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1002\/h:561\/q:mauto\/f:best\/dpr:2\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-modify-login-error-message.jpg 2x\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h3>3. Display the number of words in an article<\/h3>\n<p>Sometimes it&#8217;s useful to show the number of words in your posts. That way, visitors have the opportunity to decide whether they want to invest their time into the entire article or not.<\/p>\n<p>First, add the following to your <code>functions.php<\/code> file:<\/p>\n<p>https:\/\/gist.github.com\/nschaeferhoff\/4f7f96a1aee961d269143378d64d06b1<\/p>\n<p>The code above strips the HTML tags from your content and then counts the leftover words.<\/p>\n<p>After that, you need to add\u00a0<code>echo word_count();<\/code> wherever you want the number of words to show up. For example, I added the following line to the entry meta section of my post template.<\/p>\n<p>https:\/\/gist.github.com\/nschaeferhoff\/d8e7614a714a392e62130c52457db838<\/p>\n<p>In the code above, I wrapped the number of words in an HTML section (in order to change its appearance if necessary) and added some text around it. The actual number is displayed where it says <code>word_count()<\/code>. The command <code>echo<\/code> simply tells the browser to display everything on the page.<\/p>\n<p>After that, I looked into my <a href=\"https:\/\/themeisle.com\/blog\/wordpress-child-themes\/\">child theme<\/a>\u00a0(it&#8217;s important that you use a child theme) for the file that is responsible for displaying posts on my site. In Twenty Seventeen, that is <code>content.php<\/code>, which is located in the theme folder under <em>template-parts &gt; post<\/em>. However, it will probably be different in yours.<\/p>\n<p>To find out which template file your theme is using, you can install the <a href=\"https:\/\/wordpress.org\/plugins\/what-the-file\/\" target=\"_blank\" rel=\"noopener\">What The File<\/a> plugin. It will display which file and template parts are used for displaying the page or post you are currently on.<\/p>\n<p>Finally, I simply located the <code>entry-meta<\/code> section in my file and pasted the code right before the section closes. In Twenty Seventeen, that ends up looking like this:<\/p>\n<p>https:\/\/gist.github.com\/nschaeferhoff\/538349e121df430d622bde4c0cfa8580<\/p>\n<p>Here is the result:<\/p>\n<p><img data-opt-id=669634879  data-opt-src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg\"  decoding=\"async\" class=\"aligncenter size-full wp-image-10423\" style=\"-webkit-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); -moz-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5);\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:eco\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg\" alt=\"wordpress functions.php add word count\" width=\"569\" height=\"543\" old-srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:569\/h:543\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 569w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:286\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:48\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:251\/h:240\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 251w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:416\/h:397\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 416w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:155\/h:148\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 155w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:204\/h:195\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 204w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:141\/h:135\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 141w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:569\/h:543\/q:mauto\/f:best\/dpr:2\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 2x\" \/><noscript><img data-opt-id=669634879  decoding=\"async\" class=\"aligncenter size-full wp-image-10423\" style=\"-webkit-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); -moz-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5);\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg\" alt=\"wordpress functions.php add word count\" width=\"569\" height=\"543\" srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:569\/h:543\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 569w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:286\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:48\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:251\/h:240\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 251w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:416\/h:397\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 416w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:155\/h:148\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 155w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:204\/h:195\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 204w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:141\/h:135\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 141w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:569\/h:543\/q:mauto\/f:best\/dpr:2\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-word-count.jpg 2x\" sizes=\"(max-width: 569px) 100vw, 569px\" \/></noscript><\/p>\n<p>(Thanks to <a href=\"http:\/\/www.thomashardy.me.uk\/wordpress-word-count-function\" target=\"_blank\" rel=\"noopener\">Thomas Hardy<\/a> for the original code snippet!)<\/p>\n<h3>4. Add estimated reading time to posts<\/h3>\n<p>Instead of showing the word count, you can also go one step further and display the estimated reading time. To do this, you just need to add some extra code to the example above:<\/p>\n<p>https:\/\/gist.github.com\/nschaeferhoff\/41b2b2466117b12bd9b53f6e154af76c<\/p>\n<p>What this snippet by <a href=\"https:\/\/birchtree.me\/blog\/reading-time-wp-php\/\" target=\"_blank\" rel=\"noopener\">Matt Birchler<\/a> does is take the number of words and divide it by a reading speed of 200 words per minute (that happens where it says <code>$word_count \/ 200<\/code>, simply change this number if you think your readers might be slower or faster). It then outputs the results with <em>minute<\/em> or <em>minutes<\/em> at the end.<\/p>\n<p>You can add it to your site the same way as the word count in the last example. The only difference is that you replace\u00a0<code>word_count()<\/code> with <code>reading_time()<\/code> in your code. Here&#8217;s how I did it:<\/p>\n<p>https:\/\/gist.github.com\/nschaeferhoff\/e7c1c075221d4394c9efc8dcf0552702<\/p>\n<p>And this is is what it ended up looking like on the page:<\/p>\n<p><img data-opt-id=2078644745  data-opt-src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg\"  decoding=\"async\" class=\"aligncenter size-full wp-image-10422\" style=\"-webkit-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); -moz-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5);\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:eco\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg\" alt=\"add reading time via the functions.php file\" width=\"560\" height=\"540\" old-srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:560\/h:540\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 560w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:289\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:48\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:249\/h:240\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 249w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:412\/h:397\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 412w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:153\/h:148\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 153w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:202\/h:195\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 202w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:140\/h:135\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 140w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:560\/h:540\/q:mauto\/f:best\/dpr:2\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 2x\" \/><noscript><img data-opt-id=2078644745  decoding=\"async\" class=\"aligncenter size-full wp-image-10422\" style=\"-webkit-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); -moz-box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5); box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5);\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg\" alt=\"add reading time via the functions.php file\" width=\"560\" height=\"540\" srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:560\/h:540\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 560w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:289\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:48\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:249\/h:240\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 249w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:412\/h:397\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 412w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:153\/h:148\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 153w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:202\/h:195\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 202w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:140\/h:135\/q:mauto\/f:best\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 140w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:560\/h:540\/q:mauto\/f:best\/dpr:2\/https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/11\/wordpress-functions-php-add-reading-time.jpg 2x\" sizes=\"(max-width: 560px) 100vw, 560px\" \/></noscript><\/p>\n<h3>5. Delay posts from being sent to RSS<\/h3>\n<p>Our final example is a way to keep posts from immediately going to your RSS feed when you hit <em>Publish<\/em>. That can be a good idea because it gives you time to correct those typos you only see once you have already sent the post out to the world.<\/p>\n<p>The problem: while on your site you can simply change any mistakes, once your post is out on RSS, it&#8217;s out there. However, no longer! Use the snippet below to keep this from happening.<\/p>\n<p>https:\/\/gist.github.com\/nschaeferhoff\/9e8f09d62c862a2cea84f58c6f5beeff<\/p>\n<p>In this example, the number of minutes the post is delayed by (the part after <code>$wait<\/code>) is set to 10. Feel free to change it to whatever timing you find appropriate.<\/p>\n<h2>Summing up<\/h2>\n<div class=\"su-row\">\n<div class=\"su-column su-column-size-1-2\"><div class=\"su-column-inner su-u-clearfix su-u-trim\">\n<p>The WordPress <code>functions.php<\/code> file is a powerful tool to make changes to your website. If you know your way around it, there is little you can&#8217;t do.<\/p>\n<\/div><\/div>\n<div class=\"su-column su-column-size-1-2\"><div class=\"su-column-inner su-u-clearfix su-u-trim\">\n\n\t\t<div class='ti-tweet-clear'><\/div>\n\t\t\t<div class='ti-tweet_wrapper'>\n\t\t    \t<div class='ti-tweet_text'>\n\t\t    \t\t<a href='https:\/\/twitter.com\/share?text=Everything+a+beginner+needs+to+know+about+%23WordPress+functions.php&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/' target='_blank' rel='nofollow'>Everything a beginner needs to know about #WordPress functions.php<\/a>\n\t\t    \t<\/div>\n\t\t    \t<div class='ti-tweet_sharebtn'>\n\t\t    \t<a href='https:\/\/twitter.com\/share?text=Everything+a+beginner+needs+to+know+about+%23WordPress+functions.php&via=themeisle&related=themeisle&url=https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/' target='_blank' rel='nofollow'>Click To Tweet \n\t\t    \t\t<span><\/span>\n\t\t    \t<\/a>\n\t\t    <\/div>\n\t\t<\/div>\n<\/div><\/div>\n<\/div>\n<p>Above, I have explained what the WordPress\u00a0<code>functions.php<\/code> is, what it is used for and its advantages and disadvantages. I have also given you plenty of examples so you can grasp the possibilities of this file.<\/p>\n<p>From here, it&#8217;s up to you to look into what you need on your site and how to make it happen. The functions file will help you achieve it.<\/p>\n<p><strong><em>What is you favorite thing to do with the WordPress functions.php file? Let us know in the comments section below!<\/em><\/strong><\/p>\n<style>.ticss-d144f107 strong{font-weight: 700;\n    letter-spacing: -0.2px;\n    line-height: 1.2;\n    display: inline-block;}<\/style>\n\n\n<div class=\"wp-block-columns speed-guide has-white-color has-text-color has-background has-link-color wp-elements-2f81f6c5526477b5b4d52d1ca4513949 is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\" style=\"background-color:#4267cf\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:40%\">\n<figure class=\"wp-block-image size-medium\"><img data-opt-id=30701221  data-opt-src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:300\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png\"  decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:300\/q:eco\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png\" alt=\"speed guide\" class=\"wp-image-113040\" old-srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:300\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1024\/h:1024\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 1024w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:150\/h:150\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 150w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:768\/h:768\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 768w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:50\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:240\/h:240\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 240w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:397\/h:397\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 397w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:600\/h:600\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 600w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:148\/h:148\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 148w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:195\/h:195\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 195w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:135\/h:135\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 135w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1080\/h:1080\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 1200w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1080\/h:1080\/q:mauto\/f:best\/dpr:2\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 2x\" \/><noscript><img data-opt-id=30701221  decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:300\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png\" alt=\"speed guide\" class=\"wp-image-113040\" srcset=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:300\/h:300\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 300w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1024\/h:1024\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 1024w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:150\/h:150\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 150w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:768\/h:768\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 768w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:50\/h:50\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 50w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:240\/h:240\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 240w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:397\/h:397\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 397w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:600\/h:600\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 600w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:148\/h:148\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 148w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:195\/h:195\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 195w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:135\/h:135\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 135w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1080\/h:1080\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 1200w, https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:1080\/h:1080\/q:mauto\/f:best\/dpr:2\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2025\/09\/e2ce20299a807336c68c2e029640adaa1.png 2x\" sizes=\"(max-width: 300px) 100vw, 300px\" \/></noscript><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-center ticss-58e79f2f\" style=\"font-size:14px\"><strong>FREE GUIDE<\/strong><\/p>\n\n\n\n<p class=\"ticss-d144f107\" style=\"font-size:25px\"><strong>4 Essential Steps to Speed Up Your&nbsp;WordPress Website<\/strong><\/p>\n\n\n\n<p class=\"ticss-3b627beb\">Follow the simple steps in our 4-part mini series and reduce your loading times by 50-80%.&nbsp;\ud83d\ude80<\/p>\n\n\n<p><div class=\"frm_forms  with_frm_style frm_style_themeisle\" id=\"frm_form_4_container\" data-token=\"1e74efb521908603f2c2f54d27b3121e\">\n<form enctype=\"multipart\/form-data\" method=\"post\" class=\"frm-show-form  frm_pro_form \" id=\"form_site-speed-guide-below-post\" data-token=\"1e74efb521908603f2c2f54d27b3121e\">\n<div class=\"frm_form_fields \">\n<fieldset>\n<legend class=\"frm_screen_reader\">Site Speed Guide - Below Post<\/legend>\r\n\r\n<div class=\"frm_fields_container\">\n<input type=\"hidden\" name=\"frm_action\" value=\"create\" \/>\n<input type=\"hidden\" name=\"form_id\" value=\"4\" \/>\n<input type=\"hidden\" name=\"frm_hide_fields_4\" id=\"frm_hide_fields_4\" value=\"\" \/>\n<input type=\"hidden\" name=\"form_key\" value=\"site-speed-guide-below-post\" \/>\n<input type=\"hidden\" name=\"item_meta[0]\" value=\"\" \/>\n<input type=\"hidden\" id=\"frm_submit_entry_4\" name=\"frm_submit_entry_4\" value=\"425935a91c\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/blog\/wp-json\/wp\/v2\/posts\/10370\" \/><input type=\"hidden\" name=\"item_meta[18]\" id=\"field_6px6q2\" value=\"\/blog\/wp-json\/wp\/v2\/posts\/10370\"  data-frmval=\"\/blog\/wp-json\/wp\/v2\/posts\/10370\"   \/>\n<div id=\"frm_field_15_container\" class=\"frm_form_field form-field  frm_required_field frm_none_container\">\r\n\t<label for=\"field_6px6q\" id=\"field_6px6q_label\" class=\"frm_primary_label\">Your Email\r\n\t\t<span class=\"frm_required\" aria-hidden=\"true\">*<\/span>\r\n\t<\/label>\r\n\t<input type=\"email\" id=\"field_6px6q\" name=\"item_meta[15]\" value=\"\"  autocomplete=\"email\"  placeholder=\"your@email.com\" data-reqmsg=\"Your Email cannot be blank.\" aria-required=\"true\" data-invmsg=\"Your Email is invalid\" aria-invalid=\"false\"  \/>\r\n\t\r\n\t\r\n<\/div>\n<div id=\"frm_field_17_container\" class=\"frm_form_field form-field  frm_none_container vertical_radio\">\r\n\t<div  id=\"field_6px6q3_label\" class=\"frm_primary_label\">Subscribe to our newsletter\r\n\t\t<span class=\"frm_required\" aria-hidden=\"true\"><\/span>\r\n\t<\/div>\r\n\t<div class=\"frm_opt_container\" aria-labelledby=\"field_6px6q3_label\" role=\"group\">\t\t<div class=\"frm_checkbox\" id=\"frm_checkbox_17-0\">\t\t\t<label  for=\"field_6px6q3-0\">\n\t\t\t<input type=\"checkbox\" name=\"item_meta[17][]\" id=\"field_6px6q3-0\" value=\"true\"  data-invmsg=\"Subscribe to our newsletter is invalid\" aria-invalid=\"false\"   \/> Subscribe to our newsletter<\/label><\/div>\n<\/div>\r\n\t\r\n\t\r\n<\/div>\n<div id=\"frm_field_14_container\" class=\"frm_form_field form-field \">\r\n\t<div class=\"frm_submit frm_flex\">\r\n<button class=\"frm_button_submit frm_final_submit\" type=\"submit\"   formnovalidate=\"formnovalidate\">FREE ACCESS<\/button>\r\n\r\n\r\n\r\n<\/div>\r\n<\/div>\n\t<input type=\"hidden\" name=\"item_key\" value=\"\" \/>\n\t\t\t<div id=\"frm_field_24_container\">\n\t\t\t<label for=\"field_gh4xq\" >\n\t\t\t\tIf you are human, leave this field blank.\t\t\t<\/label>\n\t\t\t<input  id=\"field_gh4xq\" type=\"text\" class=\"frm_form_field form-field frm_verify\" name=\"item_meta[24]\" value=\"\"  \/>\n\t\t<\/div>\n\t\t<input name=\"frm_state\" type=\"hidden\" value=\"tGKtIG19U6wyYcew8uBttbffg38IdEjKVNOhC3GBnmowF9M0QAXa6pd1+Qu8+H8p\" \/><\/div>\n<\/fieldset>\n<\/div>\n\n<p style=\"display: none !important;\" class=\"akismet-fields-container\" data-prefix=\"ak_\"><label>&#916;<textarea name=\"ak_hp_textarea\" cols=\"45\" rows=\"8\" maxlength=\"100\"><\/textarea><\/label><input type=\"hidden\" id=\"ak_js_1\" name=\"ak_js\" value=\"89\"\/><script>document.getElementById( \"ak_js_1\" ).setAttribute( \"value\", ( new Date() ).getTime() );<\/script><\/p><\/form>\n<\/div>\n<\/p>\n<\/div>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"The WordPress functions.php file is one of the most central files of any WordPress installation. It can control much of the functionality and behavior of your website. However, beginners often don&#8217;t understand what the file does and what they can use it for. This article will change that. In the following, you will learn what&#8230;","protected":false},"author":19,"featured_media":10630,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_stopmodifiedupdate":false,"_modified_date":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[26],"tags":[4069],"hashtags":[],"class_list":["post-10370","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-auto-backdate"],"wppr_data":{"cwp_meta_box_check":"No"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.8 (Yoast SEO v26.1.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Beginner&#039;s Guide to WordPress Functions.php File + 5 Tricks With It<\/title>\n<meta name=\"description\" content=\"The WordPress functions.php file is one of the main ones for any WordPress installation. Learn what it does and how to use functions.php.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Beginner&#039;s Guide to the WordPress Functions.php File + 5 Things You Can Do With It\" \/>\n<meta property=\"og:description\" content=\"The WordPress functions.php file is one of the main ones for any WordPress installation. Learn what it does and how to use functions.php.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Themeisle Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-06T13:39:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-06-12T12:21:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/12\/wordpress-functions-php-guide.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2180\" \/>\n\t<meta property=\"og:image:height\" content=\"1090\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nick Sch\u00e4ferhoff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nick Sch\u00e4ferhoff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/\"},\"author\":{\"name\":\"Nick Sch\u00e4ferhoff\",\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/person\/4da1788f2a87df3f692de635949a2a28\"},\"headline\":\"Beginner&#8217;s Guide to the WordPress Functions.php File + 5 Things You Can Do With It\",\"datePublished\":\"2017-12-06T13:39:43+00:00\",\"dateModified\":\"2023-06-12T12:21:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/\"},\"wordCount\":1569,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/12\/wordpress-functions-php-guide.jpg\",\"keywords\":[\"Auto backdate\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/\",\"url\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/\",\"name\":\"Beginner\\\\'s Guide to WordPress Functions.php File + 5 Tricks With It\",\"isPartOf\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/12\/wordpress-functions-php-guide.jpg\",\"datePublished\":\"2017-12-06T13:39:43+00:00\",\"dateModified\":\"2023-06-12T12:21:22+00:00\",\"description\":\"The WordPress functions.php file is one of the main ones for any WordPress installation. Learn what it does and how to use functions.php.\",\"breadcrumb\":{\"@id\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#primaryimage\",\"url\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/12\/wordpress-functions-php-guide.jpg\",\"contentUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/12\/wordpress-functions-php-guide.jpg\",\"width\":2180,\"height\":1090,\"caption\":\"WordPress functions.php\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/themeisle.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Beginner&#8217;s Guide to the WordPress Functions.php File + 5 Things You Can Do With It\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/themeisle.com\/blog\/#website\",\"url\":\"https:\/\/themeisle.com\/blog\/\",\"name\":\"Themeisle Blog\",\"description\":\"WordPress Tutorials and Reviews for Beginners and Advanced\",\"publisher\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/themeisle.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/themeisle.com\/blog\/#organization\",\"name\":\"VertiStudio\",\"alternateName\":\"Vertigo Studio SA\",\"url\":\"https:\/\/themeisle.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png\",\"contentUrl\":\"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png\",\"width\":718,\"height\":156,\"caption\":\"VertiStudio\"},\"image\":{\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/themeisle.com\/blog\/#\/schema\/person\/4da1788f2a87df3f692de635949a2a28\",\"name\":\"Nick Sch\u00e4ferhoff\",\"description\":\"Nick Sch\u00e4ferhoff is an entrepreneur, online marketer, and professional blogger from Germany. He found WordPress when he needed a website for his first business and instantly fell in love. When not building websites, creating content or helping his clients improve their online business, he can most often be found at the gym, the dojo or traveling the world with his wife.\",\"sameAs\":[\"http:\/\/nickschaeferhoff.de\/\"],\"url\":\"https:\/\/themeisle.com\/blog\/author\/nick\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Beginner&#039;s Guide to WordPress Functions.php File + 5 Tricks With It","description":"The WordPress functions.php file is one of the main ones for any WordPress installation. Learn what it does and how to use functions.php.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/","og_locale":"en_US","og_type":"article","og_title":"Beginner&#039;s Guide to the WordPress Functions.php File + 5 Things You Can Do With It","og_description":"The WordPress functions.php file is one of the main ones for any WordPress installation. Learn what it does and how to use functions.php.","og_url":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/","og_site_name":"Themeisle Blog","article_published_time":"2017-12-06T13:39:43+00:00","article_modified_time":"2023-06-12T12:21:22+00:00","og_image":[{"width":2180,"height":1090,"url":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/12\/wordpress-functions-php-guide.jpg","type":"image\/jpeg"}],"author":"Nick Sch\u00e4ferhoff","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nick Sch\u00e4ferhoff","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#article","isPartOf":{"@id":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/"},"author":{"name":"Nick Sch\u00e4ferhoff","@id":"https:\/\/themeisle.com\/blog\/#\/schema\/person\/4da1788f2a87df3f692de635949a2a28"},"headline":"Beginner&#8217;s Guide to the WordPress Functions.php File + 5 Things You Can Do With It","datePublished":"2017-12-06T13:39:43+00:00","dateModified":"2023-06-12T12:21:22+00:00","mainEntityOfPage":{"@id":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/"},"wordCount":1569,"commentCount":2,"publisher":{"@id":"https:\/\/themeisle.com\/blog\/#organization"},"image":{"@id":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/12\/wordpress-functions-php-guide.jpg","keywords":["Auto backdate"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/","url":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/","name":"Beginner\\'s Guide to WordPress Functions.php File + 5 Tricks With It","isPartOf":{"@id":"https:\/\/themeisle.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#primaryimage"},"image":{"@id":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/12\/wordpress-functions-php-guide.jpg","datePublished":"2017-12-06T13:39:43+00:00","dateModified":"2023-06-12T12:21:22+00:00","description":"The WordPress functions.php file is one of the main ones for any WordPress installation. Learn what it does and how to use functions.php.","breadcrumb":{"@id":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#primaryimage","url":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/12\/wordpress-functions-php-guide.jpg","contentUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2017\/12\/wordpress-functions-php-guide.jpg","width":2180,"height":1090,"caption":"WordPress functions.php"},{"@type":"BreadcrumbList","@id":"https:\/\/themeisle.com\/blog\/wordpress-functions-php-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/themeisle.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Beginner&#8217;s Guide to the WordPress Functions.php File + 5 Things You Can Do With It"}]},{"@type":"WebSite","@id":"https:\/\/themeisle.com\/blog\/#website","url":"https:\/\/themeisle.com\/blog\/","name":"Themeisle Blog","description":"WordPress Tutorials and Reviews for Beginners and Advanced","publisher":{"@id":"https:\/\/themeisle.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/themeisle.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/themeisle.com\/blog\/#organization","name":"VertiStudio","alternateName":"Vertigo Studio SA","url":"https:\/\/themeisle.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png","contentUrl":"https:\/\/mllj2j8xvfl0.i.optimole.com\/cb:c5QE.37290\/w:auto\/h:auto\/q:mauto\/f:best\/https:\/\/themeisle.com\/blog\/wp-content\/uploads\/2024\/02\/VertiStudio_logo1.png","width":718,"height":156,"caption":"VertiStudio"},"image":{"@id":"https:\/\/themeisle.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/themeisle.com\/blog\/#\/schema\/person\/4da1788f2a87df3f692de635949a2a28","name":"Nick Sch\u00e4ferhoff","description":"Nick Sch\u00e4ferhoff is an entrepreneur, online marketer, and professional blogger from Germany. He found WordPress when he needed a website for his first business and instantly fell in love. When not building websites, creating content or helping his clients improve their online business, he can most often be found at the gym, the dojo or traveling the world with his wife.","sameAs":["http:\/\/nickschaeferhoff.de\/"],"url":"https:\/\/themeisle.com\/blog\/author\/nick\/"}]}},"_links":{"self":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts\/10370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/comments?post=10370"}],"version-history":[{"count":13,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts\/10370\/revisions"}],"predecessor-version":[{"id":73177,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/posts\/10370\/revisions\/73177"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/media\/10630"}],"wp:attachment":[{"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/media?parent=10370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/categories?post=10370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/tags?post=10370"},{"taxonomy":"hashtags","embeddable":true,"href":"https:\/\/themeisle.com\/blog\/wp-json\/wp\/v2\/hashtags?post=10370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}