<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPWife &#187; Tutorials</title>
	<atom:link href="http://www.wpwife.com/category/tutorials/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwife.com</link>
	<description>WPHelp: fix and optimise WP themes&#38;plugins</description>
	<lastBuildDate>Fri, 21 Nov 2025 12:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>How to Fix ’ERR_SSL_VERSION_OR _CIPHER_MISMATCH’ in WordPress</title>
		<link>http://www.wpwife.com/tutorials/how-to-fix-err_ssl_version_or-_cipher_mismatch-in-wordpress</link>
		<comments>http://www.wpwife.com/tutorials/how-to-fix-err_ssl_version_or-_cipher_mismatch-in-wordpress#comments</comments>
		<pubDate>Tue, 25 Jul 2023 10:00:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[ERR_SSL_VERSION_OR_CIPHER_MISMATCH]]></category>
		<category><![CDATA[fixing wordpress ssl errors]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[tls protocol]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=196360</guid>
		<description><![CDATA[
<p>Is the &#8216;ERR_SSL_VERSION_OR_CIPHER_MISMATCH&#8217; error stopping you from accessing a WordPress website? This error is only seen when visiting a website that uses an SSL certificate. It is caused by out-of-date or misconfigured software on either the website or the user&#8217;s computer. In this article, we&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-err_ssl_version_or-_cipher_mismatch-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-err_ssl_version_or-_cipher_mismatch-in-wordpress/">How to Fix &#8217;ERR_SSL_VERSION_OR _CIPHER_MISMATCH&#8217; in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Is the &#8216;ERR_SSL_VERSION_OR_CIPHER_MISMATCH&#8217; error stopping you from accessing a WordPress website?</p>



<p>This error is only seen when visiting a website that uses an SSL certificate. It is caused by out-of-date or misconfigured software on either the website or the user&#8217;s computer.</p>



<p>In this article, we will show you how to fix the &#8216;ERR_SSL_VERSION_OR_CIPHER_MISMATCH&#8217; error in WordPress.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2023/07/how-to-fix-ERR-SSL-VERSION-OR-CIPHER-MISMATCH-in-wordpress-og.png" alt="How to Fix ’ERR_SSL_VERSION_OR_CIPHER_MISMATCH’ in WordPress" class="wp-image-199460" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/07/how-to-fix-ERR-SSL-VERSION-OR-CIPHER-MISMATCH-in-wordpress-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/07/how-to-fix-ERR-SSL-VERSION-OR-CIPHER-MISMATCH-in-wordpress-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading">What Is the ERR_SSL_VERSION_OR_CIPHER_MISMATCH Error?</h4>



<p>We recommend that everyone with a WordPress website install an SSL certificate. This can help keep your website data secure.</p>



<p>An SSL certificate is required if you want to accept payments in your <a href="https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/" title="How to Start an Online Store (Step by Step)">online store</a>, and it also protects your users in other ways.</p>


<div class="wpb-alert style-yellow">

<p><strong>Recommended:</strong>&nbsp;Check out our guide on&nbsp;<a href="https://www.wpbeginner.com/beginners-guide/how-to-get-a-free-ssl-certificate-for-your-wordpress-website/" title="How to Get a Free SSL Certificate for Your WordPress Website (Beginner’s Guide)">how to get a free SSL certificate</a>&nbsp;or buy an SSL certificate at a discount from&nbsp;<a href="https://www.wpbeginner.com/refer/domain-com-ssl/"  rel="noopener nofollow" title="Domain.com">Domain.com</a>.</p>

</div>


<p><a href="https://www.wpbeginner.com/glossary/ssl/" title="What Is SSL in WordPress?">SSL</a> stands for &#8216;Secure Sockets Layer&#8217;, and TLS stands for &#8216;Transport Layer Security&#8217; protocol. These protocols rely on certificates that tell the user the identity of the website they are communicating with.</p>



<p>When visiting a secure website, your browser will automatically check for an SSL certificate to see if it is valid and up to date. It also checks the version of the protocols being used.</p>



<p>If there&#8217;s an issue, then you&#8217;ll see an <a href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-common-ssl-issues-in-wordpress-beginners-guide/" title="How to Fix Common SSL Issues in WordPress (Beginner’s Guide)">SSL error</a> like ERR_SSL_VERSION_OR_CIPHER_MISMATCH.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="362" src="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsampleerrormessage.png" alt="The ’ERR_SSL_VERSION_OR_CIPHER_MISMATCH’ Error Message" class="wp-image-196361" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsampleerrormessage.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsampleerrormessage-300x160.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This error message appears when your browser doesn&#8217;t recognize the version of the SSL protocol being used or when the SSL certificate is not configured correctly.</p>



<p>This can happen when the user is using an out-of-date web browser that doesn&#8217;t recognize the latest TLS protocols. It can also be caused if the website&#8217;s SSL certificate or software is out of date or mismatched.</p>



<p>With that being said, let&#8217;s take a look at some steps you can take to fix the ERR_SSL_VERSION_OR_CIPHER_MISMATCH error in WordPress:</p>



<div class="wp-block-aioseo-table-of-contents"><ol><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-err_ssl_version_or-_cipher_mismatch-in-wordpress/#aioseo-scanning-your-website-for-ssl-errors">Scanning Your Website for SSL Errors</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-err_ssl_version_or-_cipher_mismatch-in-wordpress/#aioseo-what-to-do-if-the-website-is-not-the-problem">When the Website Is Not the Problem</a></li></ol></div>



<h4 class="wp-block-heading" id="aioseo-scanning-your-website-for-ssl-errors">Scanning Your Website for SSL Errors</h4>



<p>The first thing you need to do is scan your <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a> for SSL errors. This will help you identify problems that can cause the &#8216;ERR_SSL_VERSION_OR_CIPHER_MISMATCH&#8217; error.</p>



<p>The easiest way to check is by using an online tool like the <a href="https://www.ssllabs.com/ssltest/analyze.html"  rel="noopener nofollow" title="Qualys SSL Labs SSL Server Test">Qualys SSL Labs SSL Server Test</a>. Simply type in the website&#8217;s domain name and then click the &#8216;Submit&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="273" src="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsslservertest.png" alt="Scanning Your Website With Qualys SSL Labs SSL Server Test" class="wp-image-196362" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsslservertest.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsslservertest-300x120.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will perform a thorough test on the website that takes a few minutes to finish. After that, you will see a very detailed report about the site&#8217;s SSL certificate.</p>



<p>In the screenshot below, you will find the results of a scan on wpbeginner.com. You can see that the WPBeginner SSL certificate is valid and trusted and supports the latest TLS protocol, which is TLS 1.3. This is an example of a great SSL test result.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="383" src="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsslcertificatereport.png" alt="SSL Test Result With an Excellent Result" class="wp-image-196363" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsslcertificatereport.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsslcertificatereport-300x169.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can scroll down to the Configuration section of the report.</p>



<p>This will show you which versions of the TLS protocol are supported. In this case, both currently used versions are supported, which are TLS 1.2 and TLS 1.3.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="213" src="https://www.wpbeginner.com/wp-content/uploads/2023/07/errssltlsversions.png" alt="Supported TLS Protocols Listed" class="wp-image-196364" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/07/errssltlsversions.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/07/errssltlsversions-300x94.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>It&#8217;s also important that the other protocols are not being used because they have known security issues.</p>



<p>If your test result looks similar to this, then the &#8216;ERR_SSL_VERSION_OR_CIPHER_MISMATCH&#8217; error is not being caused by the website. You can scroll down to the last section of this tutorial to learn how to troubleshoot the software on your computer.</p>



<p>On the other hand, here is a screenshot from a scan that found SSL errors. The errors are summarized at the top of the report, and more details are given below. </p>



<p>You can go to a page with detailed notes about an error by clicking the &#8216;MORE INFO »&#8217; link.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsslreportwitherrors.png" alt="SSL Test Result With a Poor Result" class="wp-image-196365" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsslreportwitherrors.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslsslreportwitherrors-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If the SSL test report for your website lists some SSL errors, then you can follow these guidelines to fix them.</p>



<p><strong>Your Site Uses Outdated TLS 1.0, TLS 1.1, or RC4 Cipher Suite</strong></p>



<p>Old TLS protocols like TLS 1.0 and TLS 1.1 should never be run because they have security issues, and modern web browsers have stopped supporting them.</p>



<p>The same goes for the RC4 cipher suite. A cipher suite is a set of algorithms used to secure your website with TLS. However, the RC4 version has been found to be insecure and should never be used.</p>



<p>Reputable WordPress hosting companies never use insecure versions of the TLS protocol or cipher suite.</p>



<p>However, if your website is using any of these outdated versions, then you should contact your hosting provider and get them to enable TLS 1.2 or TLS 1.3. You will also need to switch to AEAD cipher suites (AES-GCM).</p>



<p>Alternatively, you can move to a <a href="https://www.wpbeginner.com/wordpress-hosting/" title="How to Choose the Best WordPress Hosting (Compared)">reliable hosting provider</a> like <a href="https://www.wpbeginner.com/refer/bluehost/"  rel="noopener nofollow" title="Bluehost">Bluehost</a> or <a href="https://www.wpbeginner.com/refer/siteground/"  rel="noopener nofollow" title="SiteGround">SiteGround</a>.</p>



<p><strong>Your Site Has an SSL Certificate Name Mismatch</strong></p>



<p>Because an SSL certificate proves that your website is what it claims to be, the domain name on your certificate must match your site&#8217;s <a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-what-is-a-domain-name-and-how-do-domains-work/" title="Beginner’s Guide: What is a Domain Name and How Do Domains Work?">domain name</a>. When they are not the same, this is called an &#8216;SSL certificate name mismatch&#8217;.</p>



<p>When you see this error in your SSL report, it will list the potential reasons:</p>



<ul>
<li>The website does not use SSL but shares an IP address with some other site that does.</li>



<li>The website no longer exists, yet the domain name still points to the old IP address, where some other site is now hosted.</li>



<li>The website uses a content delivery network (CDN) that does not support SSL.</li>



<li>The domain name is an alias for a website whose main name is different, but the alias was not included in the certificate by mistake.</li>
</ul>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="337" src="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslcertificatenamemismatch.png" alt="Certificate Name Mismatch Error" class="wp-image-196366" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslcertificatenamemismatch.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslcertificatenamemismatch-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This error is likely caused by a problem with your SSL setup.</p>



<p>You can take a look at our beginner&#8217;s guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/" title="How to Properly Move WordPress from HTTP to HTTPS (Beginner’s Guide)">how to properly move WordPress from HTTP to HTTPS</a> for details on how to set up SSL correctly.</p>



<p>In particular, make sure you have set up your SSL certificate to work with all of the variations (or aliases) of your domain name that will be used, including www and non-www URLs.</p>



<p>Another solution is to redirect your website visitors to the correct variation of your domain name. </p>



<p>For example, if your SSL certificate has the URL &#8216;https://www.example.com&#8217;, then you can redirect &#8216;https://example.com&#8217; to that address. See our article on&nbsp;<a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-to-creating-redirects-in-wordpress/" title="Beginner’s Guide to Creating 301 Redirects in WordPress (Step by Step)">how to set up redirects in WordPress</a>&nbsp;for more details.</p>



<p>This error could also appear if you have recently&nbsp;<a href="https://www.wpbeginner.com/wp-tutorials/how-to-properly-move-wordpress-to-a-new-domain-without-losing-seo/" title="How to Easily Move WordPress to a New Domain (without Losing SEO)">moved your website to a new domain name</a>&nbsp;or server. You will need to update your SSL certificate with the new details.</p>



<p>If you are using a CDN service, then you should also make sure that it supports SSL. If you need to upgrade, then you can see our expert picks of <a href="https://www.wpbeginner.com/showcase/best-wordpress-cdn-services/" title="Best WordPress CDN Services (Compared)">the best WordPress CDN services</a> for recommendations.</p>



<p>If you need help with any of these issues, then don&#8217;t hesitate to reach out to your hosting provider&#8217;s technical support team.</p>



<h4 class="wp-block-heading" id="aioseo-what-to-do-if-the-website-is-not-the-problem">When the Website Is Not the Problem</h4>



<p>If the website is not the problem, then the error is caused by software on your computer. Most likely, you have an out-of-date web browser, or your antivirus software is causing the error.</p>



<p>You can follow these steps to troubleshoot the problem.</p>



<p><strong>Update Your Web Browser to the Latest Version</strong></p>



<p>If you are using an outdated web browser such as Internet Explorer or an old version of a modern web browser, then you may see this error. This happens because the old software was written before the latest versions of the TLS protocols and doesn&#8217;t recognize them.</p>



<p>In that case, all you need to do is switch to the latest version of a modern web browser like Google Chrome.</p>



<p>If, for some reason, you can&#8217;t update to a later version of your browser, like if you are stuck using Microsoft Windows XP, then you may be able to enable a later version of TLS in your browser.</p>



<p>For example, on Google Chrome, you can type <code>chrome://flags</code> in the address bar, search for &#8216;TLS 1.3&#8217; and enable the option.</p>



<p>Or if you are using Firefox, then you should type <code>about:config</code> in the address bar, search for TLS, and then set the <code>security.tls.version.max</code> value to 4.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="232" src="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslfirefox.png" alt="Force Firefox to Use Current TLS Protocols" class="wp-image-199464" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslfirefox.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslfirefox-300x102.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Clear Your Browser Cache and SSL Cache</strong></p>



<p>If you still see the error message after doing this, then there are a few more troubleshooting steps you can take. The first thing is to delete your browser cache and cookies.</p>



<p>You can see our guide on <a href="https://www.wpbeginner.com/beginners-guide/how-to-clear-your-browser-cache-in-all-major-browsers-fast-way/" title="How to Clear Your Browser Cache in All Major Browsers (Fast Way)">how to clear your cache in all major browsers</a>, which also covers how to clear your cookies.</p>



<p>On Windows, you can also clear the SSL cache. This may be storing out-of-date SSL information about the website you are trying to access.</p>



<p>You can open &#8216;Internet Options&#8217; by searching for it in the Start menu. Now switch to the Content tab and click on the &#8216;Clear SSL state&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="382" src="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslwindowsinternetproperties.png" alt="Windows Internet Properties" class="wp-image-196367" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslwindowsinternetproperties.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/07/errsslwindowsinternetproperties-300x169.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Temporarily Disable Your Antivirus Software</strong></p>



<p>Finally, it&#8217;s possible that your antivirus software or firewall software may be configured incorrectly. This can sometimes cause the &#8216;ERR_SSL_VERSION_OR_CIPHER_MISMATCH&#8217; error to appear when it shouldn&#8217;t.</p>



<p>If your software has an automatic SSL scanning feature, then you can try turning it off. Otherwise, you will need to temporarily disable your antivirus software. Once you have done that, you can try accessing the website again.</p>



<p>If you can access the software with your antivirus software disabled, then you can contact the antivirus company&#8217;s technical support team about the error or switch to a more reputable application.</p>



<p>We hope our tutorial helped you fix the &#8216;ERR_SSL_VERSION_OR_CIPHER_MISMATCH&#8217; error in WordPress. You may also want to see our <a href="https://www.wpbeginner.com/beginners-guide/the-ultimate-wordpress-security-guide-step-by-step/" title="The Ultimate WordPress Security Guide (Step by Step)">complete guide to WordPress security</a> or our expert picks for the <a href="https://www.wpbeginner.com/plugins/best-wordpress-security-plugins-compared/" title="Best WordPress Security Plugins to Protect Your Site (Compared)">best WordPress security plugins</a> to further protect your website.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-fix-err_ssl_version_or-_cipher_mismatch-in-wordpress/">How to Fix ’ERR_SSL_VERSION_OR _CIPHER_MISMATCH’ in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-fix-err_ssl_version_or-_cipher_mismatch-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>WordPress Custom Fields 101: Tips, Tricks, and Hacks</title>
		<link>http://www.wpwife.com/tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks</link>
		<comments>http://www.wpwife.com/tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks#comments</comments>
		<pubDate>Fri, 21 Jul 2023 15:01:51 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[acf]]></category>
		<category><![CDATA[Advanced Custom Fields]]></category>
		<category><![CDATA[Custom Fields]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=2982</guid>
		<description><![CDATA[
<p>Are you looking to make the most of custom fields on your WordPress website? Custom fields are a handy WordPress feature that allows you to add extra data and information to your WordPress posts and pages. A lot of popular WordPress plugins and themes use&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/">WordPress Custom Fields 101: Tips, Tricks, and Hacks</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Are you looking to make the most of custom fields on your WordPress website? </p>



<p>Custom fields are a handy WordPress feature that allows you to add extra data and information to your WordPress posts and pages. A lot of popular WordPress plugins and themes use custom fields to store important data. </p>



<p>In this article, we will show you how to use WordPress custom fields with some tips, tricks, and hacks.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/wordpress-custom-fields-101-tips-tricks-and-hacks.png" alt="WordPress custom fields 101 tips tricks and hacks" class="wp-image-192552" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/wordpress-custom-fields-101-tips-tricks-and-hacks.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/wordpress-custom-fields-101-tips-tricks-and-hacks-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Since this is a long article, we have added a table of contents for easier navigation. Just use the quick links below to jump to the section you want to read:</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#customfieldsintro">What Are WordPress Custom Fields?</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#addcustomfields">Adding Custom Fields in WordPress</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#displaycustomfields">Displaying Custom Fields in WordPress Themes</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#cfcantfindcustomfield">Troubleshooting: Can&#8217;t Find Custom Field in Dropdown on Post Edit Screen</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#cfmetaboxes">Creating a User Interface for Custom Fields Using Advanced Custom Fields</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#aioseo-how-to-hide-empty-custom-fields-with-conditional-statements">How to Hide Empty Custom Fields With Conditional Statements</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#multiplevalues">Adding Multiple Values to a Custom Field</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#searchpostsbycf">How to Search Posts by Custom Field in WordPress</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#querypostsbycf">Displaying Posts With a Specific Custom Key</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#addguestauthor">How to Add Guest Author Name Using Custom Fields</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#addcontributors">How to Display Contributors to an Article Using Custom Fields</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#cfoutofloop">How to Display Custom Fields Outside the Loop in WordPress</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#customsidebar">Display a Custom Header, Footer, Sidebar Using Custom Fields</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#feedcontent">Manipulating RSS feed Content With Custom Fields</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#feedtitle">How to Manipulate RSS Feed Title With Custom Fields</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#expirepost">How to Set Expiration Date for Posts in WordPress Using Custom Fields</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/#styleposts">How to Style Individual Posts Using Custom Fields</a></li></ul></div>



<h4 class="wp-block-heading" id="customfieldsintro">What Are WordPress Custom Fields?</h4>



<p>WordPress custom fields are metadata used to add extra information to the post or page you are editing.</p>



<p>By default, when you write a new post, page, or any other content type, WordPress saves that content in two different parts. </p>



<p>The first part is the body of your content that you add using the <a href="https://www.wpbeginner.com/beginners-guide/14-tips-for-mastering-the-wordpress-visual-editor/" title="16 Tips for Mastering the WordPress Content Editor">WordPress content editor</a>.</p>



<p>The second part is the information about that content. For example, the title, author, date, time, and more. This information is called metadata.</p>



<p>A <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a> automatically adds all the required metadata to each post or page you create. You can also create and store your own metadata by using custom fields.</p>



<p>By default, the custom fields option is hidden on the post edit screen. To view it, you need to click on the three-dot menu in the top-right corner of the screen and select &#8216;Preferences&#8217; from the menu.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="365" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/open-preferences-in-content-editor-1.png" alt="Open preferences in content editor" class="wp-image-192400" title="Post editor options" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/open-preferences-in-content-editor-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/open-preferences-in-content-editor-1-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will open a popup where you need to switch to the &#8216;Panels&#8217; tab and then enable the &#8216;Custom fields&#8217; option. </p>



<p>After that, simply click on the &#8216;Enable &amp; Reload&#8217; button to reload the post editor.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="348" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/enable-custom-fields-option-1.png" alt="Enable custom fields option" class="wp-image-192406" title="Enable and display custom fields panel" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/enable-custom-fields-option-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/enable-custom-fields-option-1-300x154.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>The post editor will reload, and you will be able to see the Custom Fields panel below the content editor.</p>



<p>Custom fields can be used to add any information related to the post, page, or other content type. This meta information can then be displayed in your theme.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="337" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-customn-fields-in-wordpress.png" alt="View custom fields in WordPress" class="wp-image-192408" title="Custom fields metabox below the post editor" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-customn-fields-in-wordpress.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/view-customn-fields-in-wordpress-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>However, to do that, you will need to edit your <a href="https://www.wpbeginner.com/showcase/best-wordpress-themes/" title="Most Popular and Best WordPress Themes (Expert Pick)">WordPress theme</a> files.</p>


<div class="wpb-alert style-yellow">

<p><strong>Note:</strong> This tutorial is recommended for users who are already familiar with editing theme files. It is also helpful for aspiring <a href="https://www.wpbeginner.com/showcase/best-wordpress-developer-jobs-sites/" title="Best WordPress Developer Jobs Sites (+ Example Job Template)">WordPress developers</a> who want to learn how to properly use custom fields in their own themes or plugins.</p>

</div>


<p>Having said that, let&#8217;s take a look at how to add and use custom fields in WordPress.</p>



<h4 class="wp-block-heading" id="addcustomfields">Adding Custom Fields in WordPress</h4>



<p>First, you need to open a post or page in the block editor so that you can add custom fields. Then, you must go to the Custom Fields meta box.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="261" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/adding-custom-field-name-and-value.png" alt="Adding custom field name and value" class="wp-image-192414" title="Adding custom field name and value" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/adding-custom-field-name-and-value.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/adding-custom-field-name-and-value-300x115.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you need to provide a Name for your custom field and then enter its Value. Click on the &#8216;Add Custom Field&#8217; button to save it.</p>



<p>The field will be stored and displayed in the Custom Fields meta box like this:</p>



<figure class="wp-block-image size-full is-resized"><img decoding="async" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-newly-created-custom-field.png" alt="View newly created custom field" class="wp-image-192415" width="680" title="Saved custom field" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-newly-created-custom-field.png 690w, https://www.wpbeginner.com/wp-content/uploads/2020/04/view-newly-created-custom-field-300x144.png 300w" sizes="(max-width: 690px) 100vw, 690px" /></figure>



<p>You can edit this custom field any time you want and then just click on the &#8216;Update&#8217; button to save your changes. You can also delete it if you don&#8217;t want to use it anymore. </p>



<p>Now, you need to save your post to store your custom field settings.</p>



<h4 class="wp-block-heading" id="displaycustomfields">Displaying Custom Fields in WordPress Themes</h4>



<p>To display your custom field on your website, you will need to edit your WordPress theme files and code snippets. </p>



<p>We don&#8217;t recommend directly editing the theme files because the slightest mistake can break your website. An easier way to do this is by using <a href="https://wpcode.com/"  rel="noopener" title="WPCode - WordPress Code Snippet Plugin">WPCode</a>. </p>



<p>It is the best code snippet plugin for WordPress that lets you add custom code and manage snippets from your WordPress dashboard. </p>



<p>If you haven&#8217;t done this before, then we also recommend reading our guide on <a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/" title="Beginner’s Guide to Pasting Snippets from the Web into WordPress">how to copy and paste code in WordPress</a>.</p>



<p>First, you will need to install and activate the <a href="https://wordpress.org/plugins/insert-headers-and-footers"  title="WPCode Free Code Snippet Plugin for WordPress" rel="noopener">free WPCode plugin</a>. For more details, please see our beginner&#8217;s guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>



<p>Upon activation, you will need to go to <strong>Code Snippets » + Add Snippet</strong> from the WordPress dashboard and select the &#8216;Add Your Custom Code (New Snippet)&#8217; option.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="353" src="https://www.wpbeginner.com/wp-content/uploads/2021/01/wpcode-new-snippet.png" alt="Adding a code snippet to your WordPress website" class="wp-image-163262" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/01/wpcode-new-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/01/wpcode-new-snippet-300x156.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now you need to copy this code to add to your theme files:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;?php echo get_post_meta($post-&gt;ID, 'key', true); ?&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>Don&#8217;t forget to replace <code>key</code> with the name of your custom field. </p>



<p>Next, you must enter the code into the &#8216;Code Preview&#8217; area and change the Code Type to &#8216;PHP Snippet&#8217;. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="267" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/enter-custom-fields-code.png" alt="Enter custom fields code" class="wp-image-192433" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/enter-custom-fields-code.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/enter-custom-fields-code-300x118.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For example, we used this code in our demo theme:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;p&gt;Today's Mood: &lt;?php echo get_post_meta($post-&gt;ID, 'Mood', true); ?&gt;&lt;/p&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>From here, you can scroll down to the Insertion section. </p>



<p>Here, you can select where the code will run. By default, WPCode will Auto Insert the code and run it everywhere on your website. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2016/01/edit-insertion-method-for-code.png" alt="Edit insertion method for code" class="wp-image-187651" srcset="https://www.wpbeginner.com/wp-content/uploads/2016/01/edit-insertion-method-for-code.png 680w, https://www.wpbeginner.com/wp-content/uploads/2016/01/edit-insertion-method-for-code-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>However, you can change this and select where you would like the custom field to appear. </p>



<p>For example, we will choose the &#8216;Page Specific&#8217; tab and select the &#8216;Insert Before Post&#8217; option. This way, the custom field will appear at the beginning of the blog post. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="218" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/insert-before-post.png" alt="Insert before post" class="wp-image-192436" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/insert-before-post.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/insert-before-post-300x96.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now save your changes and visit the post where you added the custom field to see it in action.</p>



<p>You can use this custom field in all your other <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog (Beginner’s Guide)">WordPress blog</a> posts as well.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="346" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/displaying-custom-field.png" alt="Displaying custom field" class="wp-image-192429" title="Custom field data displayed in a WordPress theme" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/displaying-custom-field.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/displaying-custom-field-300x153.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can also easily adjust the custom field for different blog posts. Simply create a new post or edit an existing one. </p>



<p>Then, go to the Custom Fields meta box and select your custom field from the dropdown menu and enter its Value.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="262" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/reuse-custom-field.png" alt="Reuse custom field" class="wp-image-192430" title="Reuse custom field" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/reuse-custom-field.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/reuse-custom-field-300x116.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Once you are done, simply click the &#8216;Add Custom Field&#8217; button to save your changes and then publish or update your post.</p>



<h4 class="wp-block-heading" id="cfcantfindcustomfield">Troubleshooting: Can&#8217;t Find Custom Field in Dropdown on Post Edit Screen</h4>



<p>By default, WordPress only loads 30 custom fields in the dropdown menu on the post edit screen. </p>



<p>If you are using WordPress themes and plugins that already use custom fields, then those might appear first in the dropdown menu, and you won&#8217;t be able to see your newly-created custom field.</p>



<p>To fix this issue, you will need to add the following code to your theme&#8217;s <a href="http://www.wpbeginner.com/glossary/functions-php/" title="What is functions.php File in WordPress?">functions.php</a> file or by using <a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">WPCode</a> (recommended):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
add_filter( 'postmeta_form_limit', 'meta_limit_increase' );
function meta_limit_increase( $limit ) {
    return 50;
}
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>The above code will change that limit to 50. If you still can&#8217;t see your custom field, then you can try increasing that limit even further.</p>



<h4 class="wp-block-heading" id="cfmetaboxes">Creating a User Interface for Custom Fields Using Advanced Custom Fields</h4>



<p>As you can see, once you add a custom field, you will have to select the field and enter its value each time you write a post.</p>



<p>If you have many WordPress custom fields or <a href="https://www.wpbeginner.com/plugins/21-great-plugins-to-manage-multi-author-blogs-efficiently-and-successfully/" title="Plugins to Efficiently Manage WordPress Multi-Author Blogs">multiple authors writing on your website</a>, then this is not an ideal solution.</p>



<p>Wouldn&#8217;t it be nice if you could create a user interface where users can fill in a form to add values to your custom fields?</p>



<p>In fact, this is what so many <a href="https://www.wpbeginner.com/showcase/24-must-have-wordpress-plugins-for-business-websites/" title="Must Have WordPress Plugins for Business Websites">popular WordPress plugins</a> already do. </p>



<p>For example, the SEO title and meta description box inside the popular <a href="https://aioseo.com/"  rel="noopener" title="All in One SEO - WordPress SEO Plugin and Toolkit">All in One SEO</a> plugin is a custom meta box:</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="328" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/aioseo-seo-title-and-description.png" alt="AIOSEO SEO title and description" class="wp-image-192444" title="All in One SEO Pack Meta Box" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/aioseo-seo-title-and-description.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/aioseo-seo-title-and-description-300x145.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>The easiest way to create a user interface for adding custom fields is by using the <a href="https://wordpress.org/plugins/advanced-custom-fields/"  rel="nofollow noopener" title="Advanced Custom Fields">Advanced Custom Fields</a> plugin.</p>



<p>The first thing you need to do is install and activate the <a title="Advanced Custom Fields" href="https://wordpress.org/plugins/advanced-custom-fields/"  rel="nofollow noopener">Advanced Custom Fields</a> plugin. For more details, see our step-by-step guide on <a title="Step by Step Guide to Install a WordPress Plugin for Beginners" href="http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/">how to install a WordPress plugin</a>.</p>



<p>Upon activation, you need to visit the <strong>ACF » Field Groups</strong> page and click on the &#8216;Add New&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="369" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/add-new-field-group.png" alt="Add new field group" class="wp-image-192446" title="Add new field group" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/add-new-field-group.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/add-new-field-group-300x163.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>A field group is like a container with a set of custom fields. It allows you to add multiple panels of custom fields.</p>



<p>Now, you need to provide a title for your field group and click the &#8216;+ Add Field&#8217; button in the top-right corner.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="319" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/add-new-field.png" alt="Add new field" class="wp-image-192453" title="Add new field" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/add-new-field.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/add-new-field-300x141.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now select a field type. </p>



<p>Advanced Custom Fields allows you to create all sorts of fields, including text, image upload, number, dropdown, checkboxes, and more.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="336" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/select-field-type-and-other-details.png" alt="Select field type and other details" class="wp-image-192459" title="Adding a new fielld" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/select-field-type-and-other-details.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/select-field-type-and-other-details-300x148.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can scroll down to see other options for that particular field, like field name, field label, and default value. You can change them to your own requirements.</p>



<p>You can also add multiple fields to your field group if you want. Once you are finished, just click on the &#8216;Save Changes&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="324" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-new-field-group.png" alt="View new field group" class="wp-image-192460" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-new-field-group.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/view-new-field-group-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, edit a post or create a new one, and you will see a new panel with your WordPress custom fields below the content editor.</p>



<p>For detailed step-by-step instructions, you can see our guide on how to <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-custom-meta-boxes-in-wordpress-posts-and-post-types/" title="How to Add Custom Meta Boxes in WordPress Posts and Post Types">add custom meta boxes in WordPress posts and post types</a>.</p>



<h4 class="wp-block-heading" id="aioseo-how-to-hide-empty-custom-fields-with-conditional-statements">How to Hide Empty Custom Fields With Conditional Statements</h4>



<p>So far, we have covered how to create a custom field and display it in your theme.</p>



<p>Now let&#8217;s see how to check that the custom field is not empty before displaying it. To do that, we will modify our code to first check if the field has data in it:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;?php 

$mood = get_post_meta($post-&gt;ID, 'Mood', true);

if ($mood) { ?&gt;

&lt;p&gt;Today's Mood: &lt;? echo $mood; ?&gt;&lt;/p&gt;

&lt;?php 

} else {
// do nothing;
}

?&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>Don&#8217;t forget to replace <code>Mood</code> with your own custom field name.</p>



<h4 class="wp-block-heading" id="multiplevalues">Adding Multiple Values to a Custom Field</h4>



<p>Custom fields can be reused in the same post to add multiple values. You just need to select the field again and add another value to the &#8216;Value&#8217; box.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="337" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/adding-multiple-values-to-a-custom-field.png" alt="Adding multiple values to a custom field" class="wp-image-192494" title="Adding multiple values to a custom field" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/adding-multiple-values-to-a-custom-field.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/adding-multiple-values-to-a-custom-field-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>However, the code we have used in the above examples will only be able to show a single value.</p>



<p>To display all values of a custom field, we need to modify the code and make it return the data in an array. You will need to add the following code to your theme file:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;?php 
$mood = get_post_meta($post-&gt;ID, 'Mood', false);
if( count( $mood ) != 0 ) { ?&gt;
&lt;p&gt;Today's Mood:&lt;/p&gt;
&lt;ul&gt;
&lt;?php foreach($mood as $mood) {
            echo '&lt;li&gt;'.$mood.'&lt;/li&gt;';
            }
            ?&gt;
&lt;/ul&gt;
&lt;?php 
} else { 
// do nothing; 
}
?&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>Again, don&#8217;t forget to replace <code>Mood</code> with your own custom field name.</p>



<p>In this example, you will notice that we have changed the last parameter of <code>get_post_meta</code> function to <code>false</code>. This parameter defines whether the function should return a single value or not. Setting it to <code>false</code> allows it to return the data as an array, which we then displayed in a <code>foreach</code> loop.</p>



<h4 class="wp-block-heading" id="searchpostsbycf">How to Search Posts by Custom Field in WordPress</h4>



<p>WordPress&#8217;s default search doesn&#8217;t work with any custom fields on your website. It only uses the content to find the post you or your visitors are looking for on your site.</p>



<p>However, <a href="https://searchwp.com/"  rel="noopener" title="SearchWP - Advanced WordPress Search Plugin">SearchWP </a>changes that by improving your WordPress search. It&#8217;s the <a href="https://www.wpbeginner.com/showcase/12-wordpress-search-plugins-to-improve-your-site-search/" title="WordPress Search Plugins to Improve Your Site Search">best WordPress search plugin</a> that goes beyond using the post content and indexes everything, including WordPress custom fields, PDF documents, custom tables, text, files, and more.</p>



<p>You can adjust the search algorithm without editing code using SearchWP. Simply <a title="How to Install a WordPress Plugin – Step by Step for Beginners" href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/">install the plugin</a> and then head over to <strong>SearchWP » Algorithm</strong> from your WordPress admin area.</p>



<p>After that, you need to go to the &#8216;Engines&#8217; tab and then adjust the Attribute Relevance slider. This will change the importance given to each attribute during a search.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="370" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/adjust-the-search-relevance.png" alt="Adjust the search relevance" class="wp-image-192499" title="SearchWP engines example" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/adjust-the-search-relevance.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/adjust-the-search-relevance-300x163.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For instance, you can set the Custom Fields slider to maximum and adjust sliders for other attributes accordingly. This way, SearchWP will give preference to data in custom fields when searching for content in WordPress.</p>



<p>Another advantage of using SearchWP is that works with some of the most popular custom field plugins, including Advanced Custom Fields (ACF), Meta Box, and Pods.</p>



<p>For more details, you can read our beginner-friendly guide on <a href="https://www.wpbeginner.com/plugins/improve-wordpress-search-searchwp/" title="How to Improve WordPress Search with SearchWP (Quick &amp; Easy)">how to improve WordPress search with SearchWP</a>.</p>



<h4 class="wp-block-heading" id="querypostsbycf">Displaying Posts With a Specific Custom Key</h4>



<p>WordPress allows you to display posts with custom keys and their values. For example, if you are trying to create a custom archive page to display all posts with specific custom keys, then you can use the <code>WP_Query</code> class to query posts matching those fields.</p>



<p>You can use the following code as a starting point:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
$args = array(
    'meta_key'   =&gt; 'Mood',
    'meta_value' =&gt; 'Happy'
);
$the_query = new WP_Query( $args );
 
&lt;?php 
// the query
$the_query = new WP_Query( $args ); ?&gt;
 
&lt;?php if ( $the_query-&gt;have_posts() ) : ?&gt;
 
    &lt;!-- the loop --&gt;
    &lt;?php while ( $the_query-&gt;have_posts() ) : $the_query-&gt;the_post(); ?&gt;
        &lt;h2&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
        &lt;?php the_content(); ?&gt;
 
    &lt;?php endwhile; ?&gt;
    &lt;!-- end of the loop --&gt;
 
    &lt;!-- pagination here --&gt;
 
    &lt;?php wp_reset_postdata(); ?&gt;
 
&lt;?php else : ?&gt;
    &lt;p&gt;&lt;?php _e( 'Sorry, no posts matched your criteria.' ); ?&gt;&lt;/p&gt;
&lt;?php endif; ?&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>Don&#8217;t forget to replace <code>meta_key</code> and <code>meta_value</code> parameters with your own values.</p>



<h4 class="wp-block-heading" id="addguestauthor">How to Add Guest Author Name Using Custom Fields</h4>



<p>Do you want to add a guest post but don&#8217;t want to <a href="https://www.wpbeginner.com/beginners-guide/how-to-add-new-users-and-authors-to-your-wordpress-blog/" title="How to Add New Users and Authors to Your WordPress Blog">add a new user</a> profile just for that post? An easier method is adding a guest author name as a custom field.</p>



<p>To do this, you will need to add the following code to your theme&#8217;s functions.php file or use <a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">WPCode</a> (recommended):</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
add_filter( 'the_author', 'guest_author_name' );
add_filter( 'get_the_author_display_name', 'guest_author_name' );
function guest_author_name( $name ) {
global $post;
$author = get_post_meta( $post-&gt;ID, 'guest-author', true );
if ( $author )
$name = $author;
return $name;
}
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>For more details, please see our guide on <a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/" title="Beginner’s Guide to Pasting Snippets from the Web into WordPress">pasting snippets from the web into WordPress</a>. </p>



<p>This code hooks a function to <code>the_author</code> and <code>get_the_author_display_name</code> <a title="What is Filters in WordPress?" href="https://www.wpbeginner.com/glossary/filters/">filters</a> in WordPress.</p>



<p>The function first checks for the guest author&#8217;s name. If it exists, then it replaces the author&#8217;s name with the guest author&#8217;s name.</p>



<p>Now you will need to edit the post where you want to display the guest author&#8217;s name. Go to the Custom Fields meta box, add your guest author name, and finally click on the &#8216;Add Custom Field&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="222" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/guest-author-custom-field.png" alt="Guest author custom field" class="wp-image-192517" title="Adding guest author custom field" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/guest-author-custom-field.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/guest-author-custom-field-300x98.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For more details, see our article on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-rewrite-guest-author-name-with-custom-fields-in-wordpress/" title="How to Rewrite Guest Author Name with Custom Fields in WordPress">how to rewrite guest author names with custom fields in WordPress</a>.</p>



<h4 class="wp-block-heading" id="addcontributors">How to Display Contributors to an Article Using Custom Fields</h4>



<p>On many popular blogs and <a href="https://www.wpbeginner.com/showcase/best-wordpress-newspaper-themes/" title="Best WordPress Newspaper Themes">news sites</a>, many authors contribute to writing a single article. However, WordPress only allows a single author to be associated with a post.</p>



<p>One way to solve this problem is by using the <a href="https://wordpress.org/plugins/co-authors-plus/"  rel="nofollow noopener" title="Co-Authors Plus">Co-Authors Plus</a> plugin. To learn more, see our guide on how to <a href="https://www.wpbeginner.com/plugins/allow-multiple-authors-to-be-associated-with-a-post-in-wordpress/" title="How to Add Multiple Authors (Co-Authors) for Posts in WordPress">add multiple authors to a WordPress post</a>.</p>



<p>Another method is adding contributors as a custom field.</p>



<p>First, you need to edit the post where you want to display co-authors or contributors. Then, scroll down to the Custom Fields meta box and add author names as co-author custom fields.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="311" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/add-coauthor-custom-fields.png" alt="Add coauthor custom fields" class="wp-image-192524" title="Adding co-author custom field" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/add-coauthor-custom-fields.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/add-coauthor-custom-fields-300x137.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, you need to add this code to your theme files where you want to show co-authors:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;?php 
 
$coauthors = get_post_meta($post-&gt;ID, 'co-author', false);
if( count( $coauthors ) != 0 ) { ?&gt;
&lt;ul class=&quot;coauthors&quot;&gt;
&lt;li&gt;Contributors&lt;/li&gt;
&lt;?php foreach($coauthors as $coauthors) { ?&gt;
           &lt;?php echo '&lt;li&gt;'.$coauthors.'&lt;/li&gt;' ;
            }
            ?&gt;
&lt;/ul&gt;
&lt;?php 
} else { 
// do nothing; 
}
?&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>To display author names separated by commas, you can add the following <a href="https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/" title="How to Easily Add Custom CSS to Your WordPress Site">custom CSS</a>:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
.coauthors ul { 
display:inline;
}
.coauthors li { 
display:inline;
list-style:none;
}
.coauthors li:after { 
content:","
}
.coauthors li:last-child:after {
    content: "";
}
.coauthors li:first-child:after {
    content: ":";
}
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>This is how it looked on our demo site.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="310" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/coauthors-custom-fields-preview.png" alt="Coauthors custom fields preview" class="wp-image-192530" title="Co-authors displayed using custom fields" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/coauthors-custom-fields-preview.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/coauthors-custom-fields-preview-300x137.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading" id="cfoutofloop">How to Display Custom Fields Outside the Loop in WordPress</h4>



<p>What if you need to show custom fields in the sidebar of a single post?</p>



<p>To display the custom fields outside the WordPress loop, you can add the following code to your theme files:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;?php
global $wp_query;
$postid = $wp_query-&gt;post-&gt;ID;
echo get_post_meta($postid, 'key', true);
wp_reset_query();
?&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>Don&#8217;t forget to replace <code>key</code> with your custom field name.</p>



<h4 class="wp-block-heading" id="customsidebar">Display a Custom Header, Footer, Sidebar Using Custom Fields</h4>



<p>Usually, most WordPress themes use the same header, footer, and sidebar on all pages. </p>



<p>There are also many ways to show different sidebars, headers, or footers for different pages on your website. You can see our guide on how to <a href="https://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/" title="How to Display Different Sidebar for Each Post and Page in WordPress">display a different sidebar for each WordPress post or page</a>.</p>



<p>One way to do this is by using custom fields. Just edit the post or page where you want to show a different sidebar and then add the sidebar as a custom field.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="260" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/add-sidebar-custom-field.png" alt="Add sidebar custom field" class="wp-image-192538" title="Adding custom sidebar to a post using custom field" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/add-sidebar-custom-field.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/add-sidebar-custom-field-300x115.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now you need to edit your WordPress theme file, such as single.php, where you want to display a custom sidebar. You will be looking for the following code:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;?php get_sidebar(); ?&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>Replace this line with the following code:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;?php
global $wp_query;
$postid = $wp_query-&gt;post-&gt;ID;
$sidebar = get_post_meta($postid, &quot;sidebar&quot;, true);
get_sidebar($sidebar);
wp_reset_query();
?&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>This code simply looks for the sidebar custom field and then displays it in your theme. For example, if you add <code>webpage</code> as your sidebar custom field, then the code will look for a sidebar-webpage.php file to display.</p>



<p>You will need to create the sidebar-webpage.php file in your theme folder. You can copy the code from your theme&#8217;s sidebar.php file as a starting point.</p>



<h4 class="wp-block-heading" id="feedcontent">Manipulating RSS feed Content With Custom Fields</h4>



<p>Want to display additional metadata or content to your RSS feed users? Using custom fields you can manipulate your <a href="https://www.wpbeginner.com/wp-tutorials/how-to-optimize-your-wordpress-rss-feed/" title="Tips to Optimize Your WordPress RSS Feed (Quick &amp; Easy)">WordPress RSS feed</a> and add custom content into your feeds.</p>



<p>First, you need to add the following code to your theme&#8217;s functions.php file or use <a href="https://wpcode.com/"  rel="noopener" title="WPCode - WordPress Code Snippet Plugin">WPCode</a> (recommended): </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
function wpbeginner_postrss($content) {
global $wp_query;
$postid = $wp_query-&gt;post-&gt;ID;
$coolcustom = get_post_meta($postid, 'coolcustom', true);
if(is_feed()) {
if($coolcustom !== '') {
$content = $content.&quot;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&quot;.$coolcustom.&quot;&lt;/div&gt;
&quot;;
}
else {
$content = $content;
}
}
return $content;
}
add_filter('the_excerpt_rss', 'wpbeginner_postrss');
add_filter('the_content', 'wpbeginner_postrss');
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>Now, just create a custom field called &#8216;coolcustom&#8217; and add any value you like. You can use it to display advertisements, images, text, or anything you want.</p>



<p>For more details, please see our guide on <a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/" title="Beginner’s Guide to Pasting Snippets from the Web into WordPress">how to copy and paste code from the web into WordPress</a>.</p>



<h4 class="wp-block-heading" id="feedtitle">How to Manipulate RSS Feed Title With Custom Fields</h4>



<p>Sometimes you may want to add extra text to a post title for RSS feed users. For example, this can be handy if you are publishing a sponsored post or a guest post.</p>



<p>First, you need to add the following code to your theme&#8217;s functions.php file or use <a href="https://wpcode.com/"  rel="noopener" title="WPCode - WordPress Code Snippet Plugin">WPCode</a> to <a href="https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/" title="How to Easily Add Custom Code in WordPress (Without Breaking Your Site)">add the custom code snippet</a> without breaking your website:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
function wpbeginner_titlerss($content) {
global $wp_query;
$postid = $wp_query-&gt;post-&gt;ID;
$gpost = get_post_meta($postid, 'guest_post', true);
$spost = get_post_meta($postid, 'sponsored_post', true);

if($gpost !== '') {
$content = 'Guest Post: '.$content;
}
elseif ($spost !== ''){
$content = 'Sponsored Post: '.$content;
}
else {
$content = $content;
}
return $content;
}
add_filter('the_title_rss', 'wpbeginner_titlerss');
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>Next, you need to edit the post where you want to display the extra text in the title field.</p>



<p>Then, add guest_post and sponsored_post as custom fields.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="243" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/add-guest-post-custom-field.png" alt="Add guest post custom field" class="wp-image-196384" title="Sponsored and guest post custom fields" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/add-guest-post-custom-field.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/add-guest-post-custom-field-300x107.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If either of these two custom fields is found with a value &#8220;true&#8221;, then the code will add the appropriate text before the title. This technique can be used in many ways to fit whatever you like.</p>



<p>Want to learn more cool RSS feed hacks? See our guide on how to <a title="How to Add Content and Completely Manipulate Your WordPress RSS Feeds" href="https://www.wpbeginner.com/wp-tutorials/how-to-add-content-and-completely-manipulate-your-wordpress-rss-feeds/">add content and manipulate your WordPress RSS feeds</a>.</p>



<h4 class="wp-block-heading" id="expirepost">How to Set Expiration Date for Posts in WordPress Using Custom Fields</h4>



<p>Want to set an expiration date for some posts on your WordPress site? This comes in handy when you want to publish content only for a specific period like running surveys or limited-time offers.</p>



<p>One way to do this is by manually removing the post content or by using a plugin like <a href="https://www.wpbeginner.com/plugins/how-to-expire-posts-or-partial-post-content-in-wordpress/" title="Post Expirator">Post Expirator</a>.</p>



<p>Another option is using custom fields to automatically expire posts after a specific time. You will need to edit your theme files and modify the WordPress loop like this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;?php
if (have_posts()) :
while (have_posts()) : the_post();
$expirationtime = get_post_meta($post-&gt;ID, &quot;expiration&quot;, false);
if( count( $expirationtime ) != '' ) {
if (is_array($expirationtime)) {
$expirestring = implode($expirationtime);
}

$secondsbetween = strtotime($expirestring)-time();
if ( $secondsbetween &gt;= 0 ) {
echo 'This post will expire on ' .$expirestring.'';
the_content();
} else {
echo &quot;Sorry this post expired!&quot;
}
} else {
the_content();
}
endwhile;
endif;
?&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p><strong>Note:</strong> You will need to edit this code to match your theme.</p>



<p>After adding this code, you can add the expiration custom field to the post you want to expire. Make sure you add the time in this format <strong>mm/dd/yyyy 00:00:00</strong>.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="265" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/adding-an-expiration-date-using-custom-field.png" alt="Adding an expiration date using custom field" class="wp-image-192547" title="Adding an expiration date using custom field" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/adding-an-expiration-date-using-custom-field.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/adding-an-expiration-date-using-custom-field-300x117.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading" id="styleposts">How to Style Individual Posts Using Custom Fields</h4>



<p>Want to change the look of an individual post using CSS? WordPress automatically assigns each post its own class, which you can use to add custom CSS.</p>



<p>However, by using custom fields, you can add your own custom classes and then use them to style posts differently.</p>



<p>First, you need to edit a post that you would like to style differently. Go to the Custom Fields box and add the post-class custom field.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="262" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/post-class-custom-field.png" alt="Post class custom field" class="wp-image-192548" title="Post class custom field" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/post-class-custom-field.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/post-class-custom-field-300x116.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you need to edit your WordPress theme files and add this code at the beginning of the WordPress loop:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;?php $custom_values = get_post_meta($post-&gt;ID, 'post-class'); ?&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>Now you need to find the line with the <code>post_class()</code> function. </p>



<p>Here is how it looked in our demo theme:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;article id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class(); ?&gt;&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>You must change this line to include your custom field value, like this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
&lt;article id=&quot;post-&lt;?php the_ID(); ?&gt;&quot; &lt;?php post_class($custom_values); ?&gt;&gt;
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>Now if you examine the post&#8217;s source code using the <a href="https://www.wpbeginner.com/wp-tutorials/basics-of-inspect-element-with-your-wordpress-site/" title="Basics of Inspect Element: Customizing WordPress for DIY Users">Inspect tool</a>, then you will see your custom field CSS class added to the post-class.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="266" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/post-class-preview.png" alt="Post class preview" class="wp-image-192550" title="Custom field post class" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/post-class-preview.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/post-class-preview-300x117.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now can use this CSS class to add custom CSS and style your post differently.</p>



<p>We hope this article helped you learn more about WordPress custom fields. You may also want to see our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-additional-custom-meta-fields-to-custom-taxonomies/" title="How to Add Custom Meta Fields to Custom Taxonomies in WordPress">how to add custom meta fields to custom taxonomies in WordPress</a> and the <a href="https://www.wpbeginner.com/beginners-guide/best-drag-and-drop-page-builders-for-wordpress/" title="Best Drag and Drop WordPress Page Builders Compared">best WordPress page builder plugins</a> to help you design your website the way you want.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/">WordPress Custom Fields 101: Tips, Tricks, and Hacks</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Add Express Checkout Buttons in WooCommerce</title>
		<link>http://www.wpwife.com/woocommerce/how-to-add-express-checkout-buttons-in-woocommerce</link>
		<comments>http://www.wpwife.com/woocommerce/how-to-add-express-checkout-buttons-in-woocommerce#comments</comments>
		<pubDate>Fri, 21 Jul 2023 10:00:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[express checkout buttons]]></category>
		<category><![CDATA[funnelkit]]></category>
		<category><![CDATA[funnelkit automations]]></category>
		<category><![CDATA[funnelkit builder]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[woocommerce]]></category>
		<category><![CDATA[woocommerce checkout page]]></category>
		<category><![CDATA[woocommerce plugins]]></category>
		<category><![CDATA[woocommere store]]></category>
		<category><![CDATA[woofunnels]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=186473</guid>
		<description><![CDATA[
<p>Are you looking to add an express checkout button to your online store? Express checkout helps streamline the checkout process and improves the overall shopping experience for your customers. It can also boost conversions and reduce cart abandonment. In this article, we will show you&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-express-checkout-buttons-in-woocommerce/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-express-checkout-buttons-in-woocommerce/">How to Add Express Checkout Buttons in WooCommerce</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Are you looking to add an express checkout button to your online store? </p>



<p>Express checkout helps streamline the checkout process and improves the overall shopping experience for your customers. It can also boost conversions and reduce cart abandonment. </p>



<p>In this article, we will show you how to add express checkout buttons in WooCommerce. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/how-to-add-express-checkout-buttons-in-woocommerce.png" alt="How to add express checkout buttons in WooCommerce" class="wp-image-186872" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/how-to-add-express-checkout-buttons-in-woocommerce.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/how-to-add-express-checkout-buttons-in-woocommerce-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading" id="aioseo-why-add-express-checkout-in-woocommerce">Why Add Express Checkout in WooCommerce? </h4>



<p>Adding express checkout to your <a href="https://www.wpbeginner.com/wp-tutorials/woocommerce-tutorial-ultimate-guide/" title="WooCommerce Made Simple: A Step-by-Step Tutorial [+ Resources]">WooCommerce</a> store provides a better shopping experience for your customers.</p>



<p>It allows customers to go directly to the payment page and skip the <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-a-shopping-cart-in-wordpress-with-bigcommerce/" title="How to Create a Shopping Cart in WordPress with BigCommerce">shopping cart</a> or checkout pages. They also won&#8217;t have to go to a payment provider page or fill out a checkout form to complete their purchases. </p>



<p>Express checkout buttons make the entire buying process quicker. Customers can simply click the buttons and log in to pay for the products they wish to buy in an instant. As a result, you may see a boost in conversions and <a href="https://www.wpbeginner.com/wp-tutorials/ways-to-recover-woocommerce-abandoned-cart-sales/" title="Ways to Recover WooCommerce Abandoned Cart Sales">fewer abandoned carts</a>. </p>



<p>Adding express checkout also helps mobile users where their screen sizes are small. Customers will just tap the buttons to quickly purchase the products. </p>



<p>However, WooCommerce doesn&#8217;t offer an express checkout option by default. You will need to use a <a href="https://www.wpbeginner.com/plugins/20-best-free-woocommerce-plugins-for-wordpress/" title="Best WooCommerce Plugins for Your Store (Most are FREE)">WooCommerce plugin</a> to add the feature to your online store. </p>



<p>That said, let&#8217;s see how you can add express checkout buttons in WooCommerce. </p>



<h4 class="wp-block-heading" id="aioseo-method-1-add-express-checkout-buttons-using-funnelkit">Setting Up FunnelKit on Your WooCommerce Store</h4>



<p><a href="https://www.wpbeginner.com/refer/funnelkit/" title="FunnelKit"  rel="noopener nofollow">FunnelKit</a> is the best <a href="https://www.wpbeginner.com/showcase/best-woocommerce-sales-funnel-plugins/" title="Best WooCommerce Sales Funnel Plugins to Boost Your Conversions">WooCommerce sales funnel plugin</a> on the market. It lets you add express checkout buttons and create different funnel pages for your online store. </p>



<p>The best thing about using the plugin is that it works with <a href="https://www.wpbeginner.com/plugins/best-stripe-payment-plugins-for-wordpress/" title="6 Best Stripe Payment Plugins for WordPress (2023)">Stripe</a>, Apple Pay, Google Pay, PayPal Express, Amazon Pay, and other payment gateways for express checkout. This way, you don&#8217;t have to add each payment provider to your online store using third-party plugins or extensions. </p>



<p>FunnelKit also provides user-friendly templates and lets you do <a href="https://www.wpbeginner.com/plugins/how-to-ab-test-featured-images-in-wordpress/" title="How to A/B Split Test Featured Images in WordPress">A/B testing</a>. You can easily customize your funnels using different drag-and-drop page builders. Plus, there are multiple pre-built templates and automation features for your marketing campaigns. </p>



<figure class="wp-block-image size-full"><a href="https://www.wpbeginner.com/refer/funnelkit/"  rel="nofollow noopener"><img decoding="async" width="680" height="333" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/funnelkit.PNG" alt="FunnelKit" class="wp-image-164650" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/funnelkit.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/funnelkit-300x147.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></a></figure>


<div class="wpb-alert style-yellow">

<p><strong>Note:</strong> For this tutorial, we will be using the <a href="https://www.wpbeginner.com/refer/funnelkit/" title="FunnelKit"  rel="noopener nofollow">FunnelKit Pro plugin</a> because it includes premium templates and more customization options. You can also use the free <a href="https://wordpress.org/plugins/funnel-builder/"  rel="noopener nofollow" title="Funnel Builder for WordPress by FunnelKit">Funnel Builder for WordPress by FunnelKit</a> plugin to add express checkout buttons in WooCommerce.  </p>

</div>


<p>First, you will need to install and activate the FunnelKit plugin. If you need help, then you can follow our guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.  </p>



<p>Upon activation, you will see the FunnelKit setup wizard. Go ahead and click the &#8216;Get Started&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="315" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/start-funnelkit-setup-wizard.png" alt="Start FunnelKit setup wizard" class="wp-image-186858" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/start-funnelkit-setup-wizard.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/start-funnelkit-setup-wizard-300x139.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you will need to enter your license key. You can find the key in the <a href="https://myaccount.funnelkit.com/"  rel="noopener nofollow" title="FunnelKit account area">FunnelKit account area</a>.</p>



<p>Simply click the &#8216;Activate&#8217; button after entering the license key. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="280" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/enter-funnelkit-license-key.png" alt="Enter FunnelKit license key" class="wp-image-186859" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/enter-funnelkit-license-key.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/enter-funnelkit-license-key-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, FunnelKit will ask you to install essential plugins. These include WooCommerce, Stripe, <a href="https://www.wpbeginner.com/refer/funnelkit-marketing-automation-engine-crm/"  rel="noopener nofollow" title="FunnelKit Marketing Automation Engine &amp; CRM">FunnelKit Automations</a>, and <a href="https://www.wpbeginner.com/refer/funnelkit-cart/"  rel="noopener nofollow" title="FunnelKit Cart">FunnelKit Cart</a>. </p>



<p>The best part is that you just have to click the &#8216;Install and Activate&#8217; button, and FunnelKit will take care of the rest. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="228" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/install-essential-plugins.png" alt="Install essential plugins" class="wp-image-186861" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/install-essential-plugins.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/install-essential-plugins-300x101.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After the plugins are active, the final step is to enter your email address.  </p>



<p>Once that&#8217;s done, simply click the &#8216;Submit &amp; Finish&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="243" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/enter-email-and-finish-setup.png" alt="Enter email and finish setup" class="wp-image-186863" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/enter-email-and-finish-setup.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/enter-email-and-finish-setup-300x107.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You will now see a success message. You are ready to create funnels using the plugin and add express checkout buttons to your WooCommerce store.</p>



<p>Go ahead and click the &#8216;Go to Funnels&#8217; button to continue.  </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="319" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/close-the-congratulations-message.png" alt="Close the congratulations message" class="wp-image-186867" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/close-the-congratulations-message.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/close-the-congratulations-message-300x141.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading">Enabling Payment Gateways in WooCommerce</h4>



<p>Before moving forward, make sure you have set up at least one payment service in your WooCommerce store. </p>



<p>To do that, simply go to <strong>WooCommerce » Settings</strong> from your WordPress dashboard and click on the &#8216;Payments&#8217; tab. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="332" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/enable-payment-services-in-woocommerce.png" alt="Enable payment services in WooCommerce" class="wp-image-186854" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/enable-payment-services-in-woocommerce.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/enable-payment-services-in-woocommerce-300x146.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can click the toggle to enable the <a href="https://www.wpbeginner.com/showcase/best-woocommerce-payment-gateways-wordpress/" title="Best WooCommerce Payment Gateways for WordPress">payment gateway</a> of your choice and click the &#8216;Finish set up&#8217; button to complete the configuration. </p>



<p>To learn more, you can follow our guide on <a href="https://www.wpbeginner.com/plugins/how-to-allow-users-to-choose-a-payment-method-on-wordpress-forms/#Offering-Multiple-Payment-Methods-in-WooCommerce" title="How to Allow Users to Choose a Payment Method on WordPress Forms">how to allow users to choose payment methods in WooCommerce</a>.</p>



<h4 class="wp-block-heading">Adding Express Checkout Buttons to WooCommerce</h4>



<p>Once you have enabled your preferred payment gateways, you can head to the <strong>FunnelKit » Store Checkout</strong> page from your WordPress admin panel.</p>



<p>From here, simply click the &#8216;Create Store Checkout&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="398" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/create-store-checkout.png" alt="Create store checkout" class="wp-image-186692" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/create-store-checkout.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/create-store-checkout-300x176.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, FunnelKit will show you professionally-designed templates for your checkout page. It will also let you create a checkout page from scratch. </p>



<p>However, we recommend using a template and quickly customizing it according to your requirements. </p>



<p>Simply hover over a template you&#8217;d like to use and click the &#8216;Preview&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="353" src="https://www.wpbeginner.com/wp-content/uploads/2021/06/previewing-funnelkit-templates.png" alt="Previewing FunnelKit's WooCommerce templates" class="wp-image-177698" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/06/previewing-funnelkit-templates.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/06/previewing-funnelkit-templates-300x156.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For this tutorial, we will use the Livewire template. </p>



<p>Next, go ahead and click the &#8216;Import This Funnel&#8217; button at the top. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="313" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/import-the-funnel-template.png" alt="Import the funnel template" class="wp-image-186696" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/import-the-funnel-template.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/import-the-funnel-template-300x138.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Depending on the template you use, FunnelKit may ask you to install additional plugins like <a href="https://www.wpbeginner.com/refer/elementor-pro/"  rel="noopener nofollow" title="Elementor Pro">Elementor</a> to edit the checkout page. </p>



<p>Next, you will need to enter a name for your store checkout and click the &#8216;Add&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="301" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/enter-a-name-for-your-checkout-page.png" alt="Enter a name for your checkout page" class="wp-image-186698" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/enter-a-name-for-your-checkout-page.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/enter-a-name-for-your-checkout-page-300x133.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you will see all the steps that are included in the template. </p>



<p>You can simply click the &#8216;Edit&#8217; button for the Checkout page to continue. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="361" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/edit-the-checkout-page.png" alt="Edit the checkout page" class="wp-image-186699" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/edit-the-checkout-page.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/edit-the-checkout-page-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can switch to the &#8216;Optimizations&#8217; tab. From here, simply enable the &#8216;Express Checkout Buttons&#8217; option. </p>



<p>FunnelKit will also let you choose the position of the buttons from the following options:</p>



<ul>
<li>Top of the checkout page</li>



<li>Before/after the product switcher</li>



<li>Before/after the order summary</li>



<li>Above the payment gateways</li>
</ul>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="281" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/enable-express-checkout.png" alt="Enable express checkout" class="wp-image-186700" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/enable-express-checkout.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/enable-express-checkout-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you are done, simply click the &#8216;Save Changes&#8217; button. </p>



<p>That&#8217;s it, you have successfully added express checkout buttons to your <a href="https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/" title="How to Start an Online Store (Step by Step)">online store</a>. </p>



<p>If you want to edit the appearance of the checkout page, then you can switch to the &#8216;Design&#8217; tab and click the &#8216;Edit Template&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="379" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/edit-the-templatge.png" alt="Edit the template" class="wp-image-186704" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/edit-the-templatge.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/edit-the-templatge-300x167.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can learn more by following our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-customize-woocommerce-checkout-page/" title="How to Customize WooCommerce Checkout Page (The Easy Way)">how to customize the WooCommerce checkout page</a>.</p>



<p>Once you have made your changes, simply visit your online store to view the express checkout buttons in action.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="397" src="https://www.wpbeginner.com/wp-content/uploads/2023/05/express-checkout-buttons-preview.png" alt="Express checkout buttons preview" class="wp-image-186706" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/05/express-checkout-buttons-preview.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/05/express-checkout-buttons-preview-300x175.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Additionally, FunnelKit helps you <a href="https://www.wpbeginner.com/wp-tutorials/how-to-upsell-products-in-woocommerce/" title="How to Upsell Products in WooCommerce (5 Easy Ways)">upsell products in WooCommerce</a>. This way, you can boost sales by encouraging users to buy more products. </p>



<p>You can also set up <a href="https://www.wpbeginner.com/wp-tutorials/how-to-send-automated-emails-in-wordpress/" title="How to Send Automated Emails in WordPress">automated emails in WooCommerce</a> using FunnelKit Automations, a sister product of FunnelKit. This plugin lets you create automated workflows and send email campaigns to customers. </p>



<p>We hope this article helped you learn about how to add express checkout buttons in WooCommerce. You may also want to see our list of the <a href="https://www.wpbeginner.com/plugins/20-best-free-woocommerce-plugins-for-wordpress/" title="32 Best WooCommerce Plugins for Your Store (Most are FREE)">best WooCommerce plugins for your store</a> and <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-a-woocommerce-popup-to-increase-sales/" title="How to Create a WooCommerce Popup to Increase Sales (6 Proven Methods)">how to create a WooCommerce popup to increase sales</a>. </p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-express-checkout-buttons-in-woocommerce/">How to Add Express Checkout Buttons in WooCommerce</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/woocommerce/how-to-add-express-checkout-buttons-in-woocommerce/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Setup Cloudflare Free CDN in WordPress (Step by Step)</title>
		<link>http://www.wpwife.com/tutorials/how-to-setup-cloudflare-free-cdn-in-wordpress-step-by-step</link>
		<comments>http://www.wpwife.com/tutorials/how-to-setup-cloudflare-free-cdn-in-wordpress-step-by-step#comments</comments>
		<pubDate>Wed, 19 Jul 2023 17:00:06 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[Cloudflare]]></category>
		<category><![CDATA[how to use cloudflare with wordpress]]></category>
		<category><![CDATA[set up cloudflare in wordpress]]></category>
		<category><![CDATA[SiteGround]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[wordpress cdn]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=20077</guid>
		<description><![CDATA[
<p>Do you want to use the free Cloudflare CDN on your WordPress site? Cloudflare is one of the best WordPress CDN services available in the market. They offer a free CDN that speeds up your website along with a suite of powerful security features for&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-setup-cloudflare-free-cdn-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-setup-cloudflare-free-cdn-in-wordpress/">How to Setup Cloudflare Free CDN in WordPress (Step by Step)</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to use the free Cloudflare CDN on your WordPress site?</p>



<p>Cloudflare is one of the <a href="https://www.wpbeginner.com/showcase/best-wordpress-cdn-services/" title="Best WordPress CDN Services (Compared)">best WordPress CDN</a> services available in the market. They offer a free CDN that speeds up your website along with a suite of powerful security features for small business websites.</p>



<p>The challenge is that many entry-level users are not able to use Cloudflare because they think it is hard to set up.</p>



<p>In this guide, we will walk you through a complete Cloudflare setup in WordPress to help you improve your website speed.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/how-to-setup-cloudflare-free-cdn-in-wordpress-og.png" alt="How to Setup Cloudflare Free CDN in WordPress (Step by Step)" class="wp-image-197142" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/how-to-setup-cloudflare-free-cdn-in-wordpress-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/how-to-setup-cloudflare-free-cdn-in-wordpress-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading" id="whatiscdn">What Is a CDN? </h4>



<p>A CDN or content delivery network is a system of distributed servers that helps deliver your website files faster to users based on their location.</p>



<p>Typically, a <a href="https://www.wpbeginner.com/hosting/" title="Best Web Hosting Companies">web hosting service</a> serves your website visitors from a single location. All the users access the same server, no matter where they are located.</p>



<p>This can cause a delay in content delivery for users living further away from your website&#8217;s central hosting server.</p>



<p>That&#8217;s why CDNs set up multiple edge servers in different locations around the globe.</p>



<p>These CDN servers cache static content from your website&#8217;s origin server and present it to users when they visit your <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a>.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="313" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarecdndiagram-1.png" alt="Content Delivery Network (CDN)" class="wp-image-197140" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarecdndiagram-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarecdndiagram-1-300x138.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When there is a user request, the CDN server closest to the user&#8217;s location will handle it.</p>



<p>For example, if someone in the USA wants to access a UK-hosted website, then a CDN server in the USA will serve that request, not the main server in the UK.</p>



<p>With a CDN, all the user requests are handled by the nearest CDN servers. This reduces the physical distance between the visitors and your website&#8217;s server.</p>



<p>As a result, a CDN improves your <a href="https://www.wpbeginner.com/wordpress-performance-speed/" title="The Ultimate Guide to Boost WordPress Speed &amp; Performance">website performance and speed</a> for all users regardless of their geographic location.</p>



<p>A faster website also improves the user experience and can give your website a slight boost in <a href="https://www.wpbeginner.com/wordpress-seo/" title="Ultimate WordPress SEO Guide for Beginners (Step by Step)">SEO rankings</a>. Using a CDN also reduces the load on your primary server and protects it from crashing during traffic spikes.</p>



<p>If you want to learn more, then see our guide on <a href="https://www.wpbeginner.com/beginners-guide/why-you-need-a-cdn-for-your-wordpress-blog-infographic/" title="Why You Need a CDN for your WordPress Blog? [Infographic]">why you need a CDN for your WordPress blog</a>.</p>



<h4 class="wp-block-heading" id="cloudflarecdn">What Is Cloudflare CDN?</h4>



<figure class="wp-block-image size-full"><a href="https://www.cloudflare.com/"  rel="noreferrer noopener nofollow"><img decoding="async" width="680" height="382" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarelogo.jpg" alt="Cloudflare CDN" class="wp-image-197146" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarelogo.jpg 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarelogo-300x169.jpg 300w" sizes="(max-width: 680px) 100vw, 680px" /></a></figure>



<p><a href="https://www.cloudflare.com/"  rel="nofollow noopener" title="Cloudflare">Cloudflare</a> is one of the most popular free CDN providers available on the internet. It is a large network of globally-distributed servers that automatically cache static content and deliver dynamic content quickly.</p>



<p>On top of a CDN service, Cloudflare is also a cloud-based <a href="https://www.wpbeginner.com/plugins/best-wordpress-firewall-plugins-compared/" title="Best WordPress Firewall Plugins Compared">website firewall</a> and a distributed proxy server. It monitors all incoming traffic to your website and blocks suspicious traffic even before it reaches your server.</p>



<p>They offer a free basic plan that&#8217;s suitable for <a href="https://www.wpbeginner.com/wp-tutorials/how-to-make-a-small-business-website-step-by-step/" title="How to Make a Small Business Website – Step by Step">small business websites</a> and blogs. They also offer paid plans starting at $20 per month.</p>



<p>Cloudflare is an excellent choice for small businesses looking for a free CDN. However, if you want to fully utilize all of Cloudflare&#8217;s features, then you will need the Business plan, which costs $200 per month.</p>


<div class="wpb-alert style-yellow">

<p><strong>Note:</strong> We do not use Cloudflare on WPBeginner. Instead, we use <a href="https://www.wpbeginner.com/refer/sucuri/"  rel="nofollow noopener" title="Sucuri">Sucuri</a> as a website firewall and CDN. This firewall has the double benefit of improving speed and security. You can learn more in our comparison of <a href="https://www.wpbeginner.com/opinion/sucuri-vs-cloudflare-pros-and-cons-which-one-is-better/" title="Sucuri vs CloudFlare (Pros and Cons) – Which One is Better?">Sucuri vs. Cloudflare</a>.</p>

</div>


<p>With that being said, let&#8217;s take a look at how to set up Cloudflare Free CDN in WordPress. You can use the quick links below to jump to the different parts of the tutorial:</p>



<div class="wp-block-aioseo-table-of-contents"><ol><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-setup-cloudflare-free-cdn-in-wordpress/#settingupcloudflaremanually">Setting Up Cloudflare CDN in WordPress</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-setup-cloudflare-free-cdn-in-wordpress/#aioseo-configuring-cloudflare-with-the-quick-start-guide">Configuring Cloudflare With the Quick Start Guide</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-setup-cloudflare-free-cdn-in-wordpress/#configurecloudflare">Configuring Additional Important Cloudflare Settings</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-setup-cloudflare-free-cdn-in-wordpress/#optimizecloudflareforwp">Optimizing Cloudflare for WordPress Using a Plugin</a></li></ol></div>



<h4 class="wp-block-heading" id="settingupcloudflaremanually">Setting Up Cloudflare CDN in WordPress</h4>



<p>To begin, you need to visit the <a href="http://www.cloudflare.com/"  rel="nofollow noopener" title="Cloudflare">Cloudflare website</a> and click on the &#8216;Sign Up&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="395" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresignup.png" alt="Visit Cloudflare website" class="wp-image-197148" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresignup.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresignup-300x174.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next page, you need to enter your <a href="https://www.wpbeginner.com/beginners-guide/how-to-create-a-free-business-email-address-in-5-minutes-step-by-step/" title="How to Create a Free Business Email Address (in 5 Minutes)">email address</a> and password to create a Cloudflare account.</p>



<p>Simply enter the information required, and then click on the &#8216;Sign up&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="274" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaregetstartedwithcloudflare.png" alt="Create Cloudflare account" class="wp-image-197150" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaregetstartedwithcloudflare.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaregetstartedwithcloudflare-300x121.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you finish signing up, you will see a thank you page confirming that your Cloudflare account has been set up.</p>



<p>The next step is to add your website to Cloudflare. You should click the &#8216;Add a website or application&#8217; button to get started.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="380" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaddawebsiteorapplication-1.png" alt="The Cloudflare Thank You Page" class="wp-image-197250" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaddawebsiteorapplication-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaddawebsiteorapplication-1-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now enter your website into the &#8216;Enter your site&#8217; field.</p>



<p>Make sure you only type your site&#8217;s <a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-what-is-a-domain-name-and-how-do-domains-work/" title="Beginner’s Guide: What is a Domain Name and How Do Domains Work?">domain name</a>, such as <em>example.com</em>. You don&#8217;t need to type the full URL or any extra characters.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="229" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareenteryoursite.png" alt="Enter Your Website's Domain Name" class="wp-image-197254" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareenteryoursite.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareenteryoursite-300x101.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you will be asked to choose the type of Cloudflare plan you want.</p>



<p>For this tutorial, we will choose the free Cloudflare plan. Then, click the &#8216;Continue&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="413" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarefreeplan.png" alt="Select Cloudflare free plan" class="wp-image-197256" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarefreeplan.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarefreeplan-300x182.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, Cloudflare will show you a list of all DNS records their systems found. These will include your subdomains as well.</p>



<p>The DNS records you want to be passed through Cloudflare should have an orange cloud icon. The DNS records that will bypass Cloudflare will have a gray cloud icon.</p>



<p>You need to review the list to make sure that your primary domain is active on Cloudflare with an orange cloud icon. Simply click the &#8216;Proxy status&#8217; toggle to change the status.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="313" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarednsmanagement.png" alt="Verify DNS Records to Set up Cloudflare" class="wp-image-197267" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarednsmanagement.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarednsmanagement-300x138.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Once you have verified your DNS records, just click on the &#8216;Continue&#8217; button at the bottom.</p>



<p>During the next step of your setup, Cloudflare will ask you to update your nameservers. You will be asked to change your nameservers and point them to Cloudflare nameservers.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="379" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarechangeyournameservers.png" alt="Change to Cloudflare nameservers" class="wp-image-197415" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarechangeyournameservers.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarechangeyournameservers-300x167.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>


<div class="wpb-alert style-yellow">

<p><strong>Note:</strong> Changing nameservers can take some time to propagate throughout the internet. During this time, your website may become inaccessible to some users.</p>

</div>


<p>You can change nameservers from your <a href="https://www.wpbeginner.com/beginners-guide/how-to-choose-the-best-domain-registrar/" title="How to Choose the Best Domain Registrar (Compared)">domain registrar</a> account, like <a href="https://www.wpbeginner.com/refer/domain-com/"  rel="nofollow noopener" title="Domain.com">Domain.com</a>.</p>



<p>Or, if you got a <a href="https://www.wpbeginner.com/beginners-guide/how-to-register-a-domain-name-simple-tip-to-get-it-for-free/" title="How to Register a Domain Name (+ simple tip to get it for FREE)">free domain</a> from your web hosting provider like <a href="https://www.wpbeginner.com/refer/bluehost/"  rel="noopener nofollow" title="Bluehost">Bluehost</a>, then you will have to change the name server by logging in to your hosting account.</p>



<p>For the sake of this tutorial, we will be showing you how to change the nameservers from the Bluehost control panel.</p>



<p>While the process is similar across hosting companies, you can always ask your hosting provider for detailed instructions for their control panel.</p>



<p>Once you are logged in to your <a href="https://www.wpbeginner.com/hosting/bluehost/" title="Bluehost">Bluehost</a> cPanel dashboard, go to the &#8216;Domains&#8217; section, and select your domain name. After that, click on the &#8216;Name Servers&#8217; tab and the &#8216;Edit&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="330" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarebluehosteditnameservers2.png" alt="Edit nameservers in hosting cPanel" class="wp-image-197421" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarebluehosteditnameservers2.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarebluehosteditnameservers2-300x146.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you need to select &#8216;Custom&#8217; and enter the nameservers provided by Cloudflare.</p>



<p>Then, click the &#8216;Save&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="361" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaddcloudflarenameservers.png" alt="Save new Cloudflare nameservers" class="wp-image-197423" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaddcloudflarenameservers.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaddcloudflarenameservers-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you need to go back to the Cloudflare setup page, and click the &#8216;Done, check nameservers&#8217; button to finish the setup.</p>



<p>It will now check your new nameservers automatically.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="289" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarechecknameservers.png" alt="Check Cloudflare nameservers" class="wp-image-197425" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarechecknameservers.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarechecknameservers-300x128.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>That&#8217;s it! It will take a few minutes to update your domain nameservers and activate Cloudflare.</p>



<p>Once activated, you will see the success message in your Cloudflare dashboard.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="194" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresuccessmessage.png" alt="Cloudflare success message" class="wp-image-197427" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresuccessmessage.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresuccessmessage-300x86.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>In the meantime, the Cloudflare Quick Start Guide will open automatically, and you can use it to customize your Cloudflare settings. We will show you how in the next section.</p>


<div class="wpb-alert style-yellow">

<p><strong>Note</strong>: The above screenshots show the <a rel="nofollow noopener"  title="Bluehost" href="https://www.wpbeginner.com/refer/bluehost/" data-shortcode="true">Bluehost</a> control panel. Your nameserver settings may look different if you are using a different hosting provider.</p>

</div>


<h4 class="wp-block-heading" id="aioseo-configuring-cloudflare-with-the-quick-start-guide">Configuring Cloudflare With the Quick Start Guide</h4>



<p>The Cloudflare Quick Start Guide should have opened automatically after you clicked on the &#8216;Done, check nameservers&#8217; button above. This setup wizard will help you improve the security and performance of your website.</p>



<p>The first setting is &#8216;Automatic HTTPS Rewrites&#8217;.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="408" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarequickstart1.png" alt="Cloudflare Automatic HTTPS Rewrites" class="wp-image-197430" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarequickstart1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarequickstart1-300x180.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will help you avoid the <a href="https://www.wpbeginner.com/plugins/how-to-fix-the-mixed-content-error-in-wordpress-step-by-step/" title="How to Fix the Mixed Content Error in WordPress (Step by Step)">mixed content error in WordPress</a>. It does this by automatically changing &#8216;http&#8217; to &#8216;https&#8217; in the URLs of all resources and links on your site that can be served with a secure &#8216;https&#8217; URL.</p>



<p>This setting is on by default. We recommend you leave it on and click the &#8216;Save&#8217; button.</p>



<p>The next setting is &#8216;Always Use HTTPS&#8217;.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="368" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarealwaysusehttps.png" alt="Always Use HTTPS" class="wp-image-197432" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarealwaysusehttps.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarealwaysusehttps-300x162.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Some users have reported issues when using this setting with Cloudflare. This setting is disabled by default, and we recommend you leave it that way. We will show you how to redirect from HTTP to HTTPS using the <a href="https://aioseo.com/"  rel="noopener" title="All in One SEO - WordPress SEO Plugin and Toolkit">All in One SEO</a> plugin later in this article.</p>



<p>Now you can click the &#8216;Save&#8217; button to move on to the next option.</p>



<p>The next setting is Brotli compression.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="374" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarebrotlicompression.png" alt="Brotli Compression" class="wp-image-197434" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarebrotlicompression.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarebrotlicompression-300x165.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Cloudflare can use Brotli compression to unlock 15-20% speed improvements. This setting is on by default, and we recommend you leave it on.</p>



<p>Make sure you click the &#8216;Save&#8217; button to store this setting.</p>



<p>Now you will see a summary of what you have configured with the Quick Start Guide.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="408" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarequickstartsummary.png" alt="Cloudflare Quick Start Summary" class="wp-image-197436" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarequickstartsummary.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarequickstartsummary-300x180.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You should see:</p>



<ul>
<li>Automatic HTTPS Rewrites: ON</li>



<li>Always Use HTTPS: OFF</li>



<li>Brotli: ON</li>
</ul>



<p>You have now completed the Quick Start Guide and can click the &#8216;Finish&#8217; button. However, there are still some additional important settings that need to be configured.</p>



<h4 class="wp-block-heading" id="configurecloudflare">Configuring Additional Important Cloudflare Settings</h4>



<p>Your basic Cloudflare setup is complete, but there are a few essential settings you need to configure to keep your WordPress site secure.</p>



<p><strong>1. Secure Your WordPress Login Page</strong></p>



<p>You can set up page rules to customize how Cloudflare works on specific pages on your site. This is especially useful for securing critical pages such as the <a href="https://www.wpbeginner.com/beginners-guide/how-to-find-your-wordpress-login-url/" title="Beginner’s Guide: How to Find Your WordPress Login URL">login page</a> and wp-admin area.</p>



<p>The Cloudflare free account allows you to set up 3 page rules. If you want to add more page rules, then you need to pay $5 per month for 5 extra rules.</p>



<p>First, you need to click the &#8216;Rules&#8217; option in the menu on the left of the page. After that, you can click the &#8216;Create Page Rule&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="388" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepagerules.png" alt="Cloudflare Page Rules" class="wp-image-197438" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepagerules.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepagerules-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now you can set up 3 different page rules. You can start by creating a rule that secures your WordPress login page.</p>



<p>Simply add the following settings below to secure your website:</p>



<ul>
<li>Page URL: example.com/wp-login.php*</li>



<li>Settings: Security Level &#8211; High</li>
</ul>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="378" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresecurewplogin.png" alt="Secure WordPress login page" class="wp-image-197440" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresecurewplogin.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresecurewplogin-300x167.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you are done, just click &#8216;Save and Deploy&#8217; to store and activate the rule.</p>



<p><strong>2. Exclude the WordPress Dashboard from Cloudflare</strong></p>



<p>You will be returned to the Page Rules page, where you can see your first rule listed.</p>



<p>Now you can create a second rule to exclude the WordPress dashboard from Cloudflare caching and enable high security.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="254" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarecreatepagerule2.png" alt="Click the Create Page Rule Button" class="wp-image-197442" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarecreatepagerule2.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarecreatepagerule2-300x112.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You&#8217;ll need to click on the &#8216;Create New Rule&#8217; button to create your second rule.</p>



<p>After that, you need to type the following settings into the rule. You can click the &#8216;+ Add a Setting&#8217; button to add new rows for additional settings:</p>



<ul>
<li>Page URL: example.com/wp-admin*</li>



<li>Settings: Security Level &#8211; High</li>



<li>Cache Level &#8211; Bypass</li>



<li>Disable Performance</li>



<li>Disable Apps</li>
</ul>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="390" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareruletoexcludewordpressdashboard.png" alt="Exclude WordPress dashboard " class="wp-image-197444" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareruletoexcludewordpressdashboard.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareruletoexcludewordpressdashboard-300x172.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you are done, make sure you click &#8216;Save and Deploy&#8217; to add the new rule.</p>



<p><strong>3. Configure SSL Certificate Settings</strong></p>



<p>Another important setting is the SSL certificate available in the &#8216;SSL/TLS&#8217; menu on the left.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="282" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareencryptionmodefull.png" alt="Set SSL certificate settings" class="wp-image-197451" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareencryptionmodefull.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareencryptionmodefull-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Make sure to click the &#8216;Full&#8217; radio button if you are already using SSL.</p>



<p>If you don&#8217;t have an SSL certificate, then see our guide on <a href="https://www.wpbeginner.com/beginners-guide/how-to-get-a-free-ssl-certificate-for-your-wordpress-website/" title="How to Get a Free SSL Certificate for Your WordPress Website (Beginner’s Guide)">how to get a free SSL certificate</a> for your website.</p>



<p>Once you are done, Cloudflare will provide the essential green padlock in your visitors&#8217; address bar to signify that your website is secure.</p>



<p><strong>4. Redirect from HTTP to HTTPS Using All in One SEO</strong></p>



<p>We mentioned earlier that we don&#8217;t recommend using Cloudflare&#8217;s &#8216;Always Use HTTPS&#8217; feature. A great alternative is to use the <a href="https://aioseo.com/"  rel="noopener" title="All in One SEO">All in One SEO</a> plugin. It&#8217;s the <a href="https://www.wpbeginner.com/showcase/9-best-wordpress-seo-plugins-and-tools-that-you-should-use/" title="Best WordPress SEO Plugins and Tools That You Should Use">best SEO plugin</a> for WordPress, used by over 3 million sites.</p>



<p>The first thing you need to do is activate and install the All in One SEO plugin. For more details, see our guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>



<p>After that, navigate to <strong>All in One SEO » General Settings</strong> and then enter your license key into the &#8216;License Key&#8217; box and click &#8216;Connect&#8217;.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="195" src="https://www.wpbeginner.com/wp-content/uploads/2015/12/enter-aioseo-license-key.png" alt="Enter AIOSEO license key" class="wp-image-120196" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/12/enter-aioseo-license-key.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/12/enter-aioseo-license-key-300x86.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can find your license key in your account profile on the All in One SEO website.</p>



<p>Next, navigate to <strong>All in One SEO » Redirects</strong> and then click the &#8216;Full Site Redirects&#8217; menu navigation option.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="247" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaioseofullsiteredirect.png" alt="AIOSEO Full Site Redirect" class="wp-image-197447" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaioseofullsiteredirect.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaioseofullsiteredirect-300x109.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You will need to scroll down the page until you find the &#8216;Canonical Settings&#8217; toggle. You should click this toggle so that it turns blue.</p>



<p>Next, turn on the &#8216;Redirect from HTTP to HTTPS&#8217; toggle. This will create a redirect from HTTP to HTTPS, making sure that your visitors always have a secure connection to your website.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="226" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaioseoforcehttps.png" alt="Using AIOSEO to Force HTTPS" class="wp-image-197449" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaioseoforcehttps.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareaioseoforcehttps-300x100.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you are done, make sure to click the &#8216;Save Changes&#8217; button at the bottom or top of the screen to store this setting.</p>



<h4 class="wp-block-heading" id="optimizecloudflareforwp">Optimizing Cloudflare for WordPress Using a Plugin</h4>



<p>Cloudflare offers a dedicated WordPress plugin for one-click WordPress-optimized settings.</p>



<p>The plugin lets you quickly set up Cloudflare on your WordPress site, add web application firewall (WAF) rulesets, automatically purge the cache, and more.</p>



<p>To get started, install and activate the <a href="https://wordpress.org/plugins/cloudflare/"  rel="noopener nofollow" title="Cloudflare Plugin">Cloudflare plugin</a> on your website. For more details, see our step-by-step guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>



<p>Once done, you need to visit <strong>Settings » Cloudflare</strong> in your admin panel to configure the Cloudflare settings.</p>



<p>On the settings page, you will see a &#8216;Create Your Free Account&#8217; button and a sign-in option for existing accounts. Simply click the &#8216;Sign in here&#8217; link.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="440" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginsignin.png" alt="Cloudflare plugin settings" class="wp-image-197453" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginsignin.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginsignin-300x194.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you will need to enter your Cloudflare email and API key.</p>



<p>Click the &#8216;Get your API key from here&#8217; link.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="362" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginenterapicredentials.png" alt="Entering API Credentials Into the Cloudflare Plugin" class="wp-image-197455" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginenterapicredentials.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginenterapicredentials-300x160.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will bring up a popup for your account area on the Cloudflare website.</p>



<p>Make sure you are on your &#8216;My Profile&#8217; page, and then click on the &#8216;API Tokens&#8217; tab in the left sidebar.</p>



<p>After that, go to the &#8216;Global API Key&#8217; section and click on the &#8216;View&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="406" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareviewglobalapikey.png" alt="Get global API key" class="wp-image-197717" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareviewglobalapikey.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareviewglobalapikey-300x179.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will open a popup and display your API key.</p>



<p>Simply click on the key to copy it.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="270" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareclicktocopyapikey.png" alt="Click to Copy the Global API Key" class="wp-image-197719" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareclicktocopyapikey.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflareclicktocopyapikey-300x119.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you need to come back to your WordPress dashboard and enter your email address and API key.</p>



<p>Then, click the &#8216;Save API Credentials&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="324" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresaveapicredentials.png" alt="Save Cloudflare API Credentials in WordPress" class="wp-image-197721" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresaveapicredentials.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflaresaveapicredentials-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, the Cloudflare settings will appear on your dashboard.</p>



<p>From here, you can apply a single-click WordPress optimization, purge the cache, enable automatic cache, and more.</p>



<p>To optimize your WordPress site, just click the &#8216;Apply&#8217; button next to &#8216;Apply Default Settings&#8217;.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="291" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginapplydefaultsettings.png" alt="Apply to optimize WordPress" class="wp-image-197726" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginapplydefaultsettings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginapplydefaultsettings-300x128.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, click on the &#8216;Settings&#8217; menu option.</p>



<p>Here you will find more site optimization settings.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="363" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginsettingsspeed.png" alt="Cloudflare for WordPress Settings" class="wp-image-197729" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginsettingsspeed.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginsettingsspeed-300x160.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can scroll down on this screen to find the &#8216;Security&#8217; section.</p>



<p>By default, the security level is medium. To improve your website&#8217;s security, you can select &#8216;High&#8217; from the dropdown list.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="381" src="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginsettingssecurity.png" alt="Change WordPress security level" class="wp-image-197731" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginsettingssecurity.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/09/cloudflarepluginsettingssecurity-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>We hope this article helped you to learn how to set up Cloudflare free CDN in WordPress. You may also want to see our ultimate <a href="https://www.wpbeginner.com/wordpress-security/" title="The Ultimate WordPress Security Guide – Step by Step">WordPress security guide</a> and our expert picks for the <a href="https://www.wpbeginner.com/plugins/best-wordpress-security-plugins-compared/" title="Best WordPress Security Plugins to Protect Your Site (Compared)">best WordPress security plugins</a> to further protect your website.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-setup-cloudflare-free-cdn-in-wordpress/">How to Setup Cloudflare Free CDN in WordPress (Step by Step)</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-setup-cloudflare-free-cdn-in-wordpress-step-by-step/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Disable Automatic Update Email Notification in WordPress</title>
		<link>http://www.wpwife.com/tutorials/how-to-disable-automatic-update-email-notification-in-wordpress</link>
		<comments>http://www.wpwife.com/tutorials/how-to-disable-automatic-update-email-notification-in-wordpress#comments</comments>
		<pubDate>Mon, 17 Jul 2023 17:00:04 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[disable auto update email notification]]></category>
		<category><![CDATA[manage notification emails]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[wordpress update email]]></category>
		<category><![CDATA[wordpress update email notification]]></category>
		<category><![CDATA[wordpress updates]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=37795</guid>
		<description><![CDATA[
<p>Do you want to disable automatic update email notifications in WordPress? By default, WordPress sends email notifications for automatic updates of WordPress plugins, themes, and the core itself. These notification emails can get annoying. In this article, we will show you how to easily disable&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/">How to Disable Automatic Update Email Notification in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to disable automatic update email notifications in WordPress?</p>



<p>By default, WordPress sends email notifications for automatic updates of WordPress plugins, themes, and the core itself. These notification emails can get annoying. </p>



<p>In this article, we will show you how to easily disable automatic update email notifications in WordPress.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/how-to-disable-automatic-update-email-notification-in-wordpress-og.png" alt="Disabling automatic update email notifications in WordPress" class="wp-image-190416" title="Disabling automatic update email notifications in WordPress" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/how-to-disable-automatic-update-email-notification-in-wordpress-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/how-to-disable-automatic-update-email-notification-in-wordpress-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading">About Automatic Update Notifications in WordPress</h4>



<p>WordPress is an open-source <a href="https://www.wpbeginner.com/showcase/best-cms-platforms-compared/" title="Best and Most Popular CMS Platforms (Compared)">content management platform</a> that is regularly maintained and updated.</p>



<p>Some of these updates are automatically installed, and you will receive an email notification that your site has been updated.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="360" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/disableupdatesnotificationemail.png" alt="Email notification preview after an auto-update" class="wp-image-190420" title="Email notification preview after an auto-update" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/disableupdatesnotificationemail.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/disableupdatesnotificationemail-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Similarly, WordPress also allows you to <a title="How to Enable Automatic Updates for WordPress Plugins" href="https://www.wpbeginner.com/plugins/how-to-enable-automatic-updates-for-wordpress-plugins/">enable automatic updates for WordPress plugins</a> and themes. This means that you can spend less time updating plugins and more time growing your business.</p>



<p>You can enable automatic updates for plugins that you trust by visiting the <strong>Plugins » All Plugins</strong> page in your WordPress admin dashboard.</p>



<p>Simply click on the &#8216;Enable auto-updates&#8217; link next to the plugin that you want to update itself.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="310" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/enablepluginautoupdate.png" alt="Enable automatic updates for WordPress plugins" class="wp-image-190421" title="Enable automatic updates for WordPress plugins" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/enablepluginautoupdate.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/enablepluginautoupdate-300x137.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For <a href="https://www.wpbeginner.com/showcase/best-wordpress-multi-purpose-themes/" title="Best WordPress Multipurpose Themes">WordPress themes</a>, you can visit the <strong>Appearance » Themes</strong> page and click on a theme. </p>



<p>This will bring up a theme information popup where you must click on &#8216;Enable auto-updates&#8217;.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="359" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/enableautoupdatesthemes.jpg" alt="Enable theme auto-updates" class="wp-image-190424" title="Enable theme auto-updates" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/enableautoupdatesthemes.jpg 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/enableautoupdatesthemes-300x158.jpg 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>WordPress will send you an email notification when any of your plugins, theme, or WordPress core is updated.</p>



<p>This can get annoying, particularly for users who manage multiple <a href="https://www.wpbeginner.com/guides/" title="Ultimate Guide: How to Make a Website – Step by Step Guide (Free)">WordPress websites</a>. Wouldn&#8217;t it be nice if you could control and turn off these email notifications?</p>



<p>Let&#8217;s take a look at how to easily disable automatic update email notifications in WordPress. You can use the quick links below to jump to the method you want to use:</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/#method-1-disable-automatic-update-email-code">Method 1: Disable Automatic Update Email Notification Using Code (Recommended)</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/#method-2-disable-automatic-update-email-plugin">Method 2: Disable Automatic Update Email Notification Using a Plugin</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/#aioseo-rolling-back-wordpress-updates-if-something-goes-wrong">Rolling Back WordPress Updates if Something Goes Wrong</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/#aioseo-improving-wordpress-email-deliverability">Improving WordPress Email Deliverability</a></li></ul></div>



<h4 class="wp-block-heading" id="method-1-disable-automatic-update-email-code">Method 1: Disable Automatic Update Email Notification Using Code (Recommended)</h4>



<p>This method requires you to add code to your WordPress files. If you haven&#8217;t done this before, then take a look at our beginner&#8217;s guide on <a title="Beginner’s Guide to Pasting Snippets from the Web into WordPress" href="https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/">pasting snippets from the web into WordPress</a>.</p>



<p>You can manually add the code below to your theme&#8217;s <a href="https://www.wpbeginner.com/glossary/functions-php/" title="Functions Glossary">functions.php</a> file. But this can be tricky since a mistake can bring down your whole website. Plus, if you update your theme, then any custom code snippets will be erased.</p>



<p>We will show you a better approach below, which is using a code snippets plugin.</p>



<p><strong>1. Disable Auto Update Notification Emails for WordPress Core, Themes, and Plugins</strong></p>



<p>Luckily, there is an easy and safe way to disable auto update notification emails in WordPress, and that&#8217;s using the <a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">WPCode</a> plugin. </p>



<figure class="wp-block-image size-full"><a href="https://wpcode.com/"  rel="noopener"><img decoding="async" width="680" height="360" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/wpcodewebsite.jpg" alt="WPCode WordPress code snippets plugin" class="wp-image-190426" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/wpcodewebsite.jpg 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/wpcodewebsite-300x159.jpg 300w" sizes="(max-width: 680px) 100vw, 680px" /></a></figure>



<p>WPCode lets you easily add custom code snippets in WordPress without editing your theme&#8217;s functions.php file. </p>



<p>Plus, it has a full code library inside the plugin that includes ready-to-use, verified code snippets for popular feature requests like disabling automatic update emails, <a href="https://www.wpbeginner.com/wp-tutorials/the-right-way-to-remove-wordpress-version-number/" title="The RIGHT Way to Remove WordPress Version Number">removing the WordPress version number</a>, disabling comments, and more. </p>



<p>First, you need to install and activate the free <a href="https://wordpress.org/plugins/insert-headers-and-footers"  title="WPCode Free Code Snippet Plugin for WordPress" rel="noopener">WPCode</a> plugin. For step-by-step instructions, see our tutorial on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin - Step by Step for Beginners">how to install a WordPress plugin</a>. </p>



<p>Once the plugin is activated, you need to go to <strong>Code Snippets <strong>»</strong> Library</strong> from your WordPress admin dashboard. </p>



<p>Then, search for the &#8216;Disable Automatic Updates Emails&#8217; snippet and click on the &#8216;Use snippet&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="360" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/wpcodelibrary.png" alt="Search for the Disable Automatic Updates Emails snippet in WPCode" class="wp-image-190425" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/wpcodelibrary.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/wpcodelibrary-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>WPCode will then automatically add the code and set the proper insertion method. </p>



<p>The snippet has three filters, with one for each type of auto-update email: WordPress core, WordPress plugins, and WordPress themes. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="308" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/wpcodedisablenotisnippet.png" alt="Disable Automatic Updates Emails snippet in WPCode" class="wp-image-190427" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/wpcodedisablenotisnippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/wpcodedisablenotisnippet-300x136.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you don&#8217;t want to use a particular filter, simply add a <code>//</code> at the beginning of the filter line. </p>



<p>For example, if you still want to get auto-update emails for WordPress plugins, add a <code>//</code> to the plugin, and the filter will stop it from executing.  </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="371" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/editdisablenotifilters.png" alt="Edit filters you don't want to execute in WPCode" class="wp-image-190428" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/editdisablenotifilters.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/editdisablenotifilters-300x164.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, all you have to do is toggle the switch from &#8216;Inactive&#8217; to &#8216;Active&#8217;. </p>



<p>Then, click the &#8216;Update&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="358" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/activedisablenotisnippet.png" alt="Switch the code snippet to Active and click Update in WPCode" class="wp-image-190429" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/activedisablenotisnippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/activedisablenotisnippet-300x158.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now you will no longer get automatic update emails from WordPress. </p>



<p><strong>2. Disable Auto Update Notification Emails for Core Updates</strong></p>



<p>You can also use WPCode to disable notification emails for automatic WordPress core updates. Instead of choosing an existing code snippet, you will need to add this code as a custom snippet:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
add_filter( 'auto_core_update_send_email', 'wpb_stop_auto_update_emails', 10, 4 );

function wpb_stop_update_emails( $send, $type, $core_update, $result ) {
if ( ! empty( $type ) && $type == 'success' ) {
return false;
}
return true;
}
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p>For more instructions, you can see our guide on how to <a href="https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/" title="How to Easily Add Custom Code in WordPress (Without Breaking Your Site)">add custom code in WordPress</a>. </p>



<p><strong>3. Disable Auto Update Notification Emails for Plugins</strong></p>



<p>Just add the following code to disable notification emails for automatic updates of WordPress plugins:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
add_filter( 'auto_plugin_update_send_email', '__return_false' );
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<p><strong>4. Disable Notification Emails for WordPress Theme Updates</strong></p>



<p>Finally, you can add the following code to disable notification emails for automatic updates of WordPress themes:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
add_filter( 'auto_theme_update_send_email', '__return_false' );
</pre><div class="wpcode-syntax-footer">
		<div class="wpcode-syntax-code-footer-left">Hosted with ❤️ by <strong><a href="https://wpcode.com/" >WPCode</a></strong></div>
		<div class="wpcode-syntax-code-footer-right">
			<svg width="65" height="16" viewBox="0 0 65 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M38.0415 7.99972C38.0415 6.44437 38.4062 5.38018 39.128 4.59879C39.8499 3.80995 40.8769 3.42297 42.1941 3.42297C42.8117 3.42297 43.4071 3.54949 43.9206 3.80251C44.4564 4.05553 44.8582 4.39786 45.1782 4.82204C45.2452 4.9039 45.2601 4.99321 45.2601 5.09739C45.2601 5.2239 45.2155 5.31321 45.1336 5.39507C45.0517 5.47693 44.9624 5.52158 44.8359 5.52158C44.6871 5.52158 44.5829 5.4546 44.4936 5.35042C44.2555 5.03042 43.9429 4.75507 43.5113 4.53925C43.1094 4.32344 42.6555 4.21925 42.1643 4.21925C41.1224 4.21925 40.3336 4.53925 39.7755 5.17925C39.2248 5.81925 38.942 6.68995 38.942 7.96995C38.942 9.30948 39.2173 10.2025 39.7531 10.7979C40.2889 11.3932 41.0927 11.7132 42.1643 11.7132C42.6331 11.7132 43.0573 11.6313 43.4889 11.4379C43.8908 11.2444 44.2331 10.9913 44.4936 10.6267C44.5755 10.5225 44.6871 10.4555 44.8359 10.4555C44.9624 10.4555 45.0517 10.5002 45.1336 10.582C45.2155 10.6639 45.2601 10.7755 45.2601 10.8797C45.2601 10.9616 45.2378 11.0509 45.1782 11.1327C44.8806 11.5569 44.4713 11.8993 43.9206 12.1523C43.3699 12.4053 42.7894 12.5318 42.1717 12.5318C40.8322 12.5318 39.8052 12.1523 39.0982 11.4006C38.3987 10.6788 38.0415 9.59228 38.0415 7.99972Z" fill="#1F2937"></path><path d="M46.9268 11.7654C46.4356 11.237 46.1826 10.4258 46.1826 9.36164C46.1826 8.29745 46.4208 7.50862 46.9045 6.98024C47.3956 6.45187 48.0803 6.19141 48.9733 6.19141C49.8663 6.19141 50.551 6.44443 51.0422 6.98024C51.5333 7.50862 51.764 8.29745 51.764 9.36164C51.764 10.4258 51.5259 11.237 51.0422 11.7654C50.551 12.2937 49.8663 12.5765 48.9733 12.5765C48.1026 12.5765 47.418 12.3012 46.9268 11.7654ZM47.0608 9.36164C47.0608 10.9765 47.7008 11.7877 48.9808 11.7877C50.2608 11.7877 50.9008 10.9765 50.9008 9.36164C50.9008 7.74676 50.2608 6.93559 48.9808 6.93559C47.6933 6.93559 47.0608 7.76908 47.0608 9.36164Z" fill="#1F2937"></path><path d="M52.583 9.3839C52.583 7.25553 53.476 6.31786 55.2472 6.31786C55.6491 6.31786 56.0137 6.39972 56.3337 6.57088C56.6537 6.74204 56.9067 6.93553 57.0556 7.18855V3.84716C57.0556 3.72065 57.1002 3.63135 57.1821 3.54949C57.2639 3.46762 57.3532 3.42297 57.4798 3.42297C57.6063 3.42297 57.6956 3.46762 57.7774 3.54949C57.8593 3.63135 57.9039 3.72065 57.9039 3.84716V9.95693C57.9039 10.8053 57.6658 11.4453 57.1821 11.8918C56.7132 12.3383 56.0732 12.569 55.2844 12.569C54.4137 12.569 53.7291 12.2937 53.2602 11.7579C52.8137 11.2369 52.583 10.4481 52.583 9.3839ZM53.4314 9.3839C53.4314 10.9988 54.0491 11.81 55.3067 11.81C55.8425 11.81 56.2667 11.6611 56.5867 11.3411C56.9067 11.0211 57.0556 10.5746 57.0556 9.95693V8.25274C57.0332 8.23042 57.0109 8.18576 56.9886 8.12623C56.9663 8.05925 56.9067 7.97739 56.7951 7.85088C56.6909 7.72437 56.5793 7.59786 56.4528 7.48623C56.3263 7.38204 56.1551 7.29274 55.9616 7.21088C55.7458 7.12902 55.5374 7.08437 55.2993 7.08437C54.6816 7.08437 54.2351 7.27786 53.8928 7.67972C53.5802 8.08158 53.4314 8.57274 53.4314 9.3839Z" fill="#1F2937"></path><path d="M58.9312 9.36193C58.9312 8.3424 59.1693 7.55356 59.653 7.00286C60.1367 6.45216 60.8065 6.16937 61.6772 6.16937C62.0195 6.16937 62.3395 6.21402 62.5925 6.29588C62.8679 6.37774 63.106 6.48937 63.2772 6.63821C63.4484 6.78705 63.6195 6.93588 63.746 7.12937C63.8725 7.30054 63.9842 7.49402 64.0437 7.7024C64.1107 7.91821 64.1479 8.08193 64.1925 8.25309C64.2372 8.42426 64.2372 8.59542 64.2372 8.76658C64.2372 8.89309 64.2372 8.99728 64.2372 9.06426C64.2372 9.13123 64.2149 9.21309 64.1702 9.31728C64.1479 9.42147 64.0884 9.48844 63.9991 9.53309C63.9172 9.57774 63.8279 9.60007 63.7014 9.60007H59.8316C59.8316 10.2624 60.0028 10.7908 60.3674 11.1777C60.7321 11.5573 61.2232 11.7731 61.8409 11.7731C62.1832 11.7731 62.4809 11.7284 62.7116 11.6243C62.9498 11.5201 63.2028 11.3936 63.4335 11.2001C63.5153 11.1331 63.6046 11.1182 63.6716 11.1182C63.7758 11.1182 63.8651 11.1629 63.947 11.2224C64.0139 11.3043 64.0512 11.3936 64.0512 11.4977C64.0512 11.6019 64.0065 11.7136 63.9023 11.7954C63.8205 11.8773 63.6865 11.9889 63.5377 12.0931C63.3888 12.1973 63.1507 12.2866 62.8307 12.3908C62.5107 12.495 62.1684 12.5396 61.8037 12.5396C60.8884 12.5396 60.1814 12.2866 59.6902 11.7508C59.1916 11.2522 58.9312 10.4484 58.9312 9.36193ZM59.8093 8.87077H63.3888C63.3888 8.61774 63.3665 8.37961 63.307 8.17123C63.2623 7.95542 63.1805 7.76937 63.0539 7.57588C62.9274 7.3824 62.7563 7.23356 62.5181 7.12937C62.28 7.02519 62.0046 6.95821 61.6846 6.95821C61.1116 6.95821 60.68 7.12937 60.3377 7.4717C60.0251 7.80658 59.8316 8.27542 59.8093 8.87077Z" fill="#1F2937"></path><path d="M19.229 4.18977C19.229 3.97395 19.3109 3.78791 19.4671 3.63907C19.616 3.49023 19.8095 3.40837 20.0253 3.40837C20.2188 3.40837 20.3899 3.47535 20.5164 3.57954C20.643 3.68372 20.7323 3.81023 20.7695 3.94419L22.3248 9.51814L23.8355 3.96651C23.8802 3.79535 23.962 3.66884 24.1109 3.56465C24.2597 3.46047 24.4085 3.41581 24.5574 3.41581C24.7285 3.41581 24.8774 3.46047 25.0039 3.56465C25.1304 3.66884 25.242 3.79535 25.2792 3.96651L26.7899 9.51814L28.3453 3.92186C28.3899 3.79535 28.4718 3.66884 28.5983 3.55721C28.7248 3.45302 28.8737 3.38605 29.0895 3.38605C29.3053 3.38605 29.4764 3.45302 29.6253 3.60186C29.7741 3.7507 29.8411 3.92186 29.8411 4.13023C29.8411 4.21209 29.8188 4.3014 29.7964 4.36093L27.5118 11.9591C27.4671 12.1079 27.3853 12.2567 27.2364 12.3386C27.1099 12.4428 26.9611 12.4874 26.7899 12.4874C26.6188 12.4874 26.4699 12.4428 26.3434 12.3386C26.2169 12.2344 26.1276 12.1079 26.0904 11.9367L24.5574 6.4893L23.0244 11.9963C22.9797 12.1674 22.8755 12.294 22.749 12.3981C22.6225 12.5023 22.4513 12.547 22.2802 12.547C22.109 12.547 21.9602 12.5023 21.8337 12.3981C21.7071 12.294 21.5955 12.1674 21.5583 12.0186L19.2737 4.42791C19.2513 4.36093 19.229 4.27907 19.229 4.18977Z" fill="#1F2937"></path><path d="M30.9351 11.8101V4.18967C30.9351 3.97386 31.0169 3.81014 31.1509 3.6613C31.2997 3.51246 31.4932 3.4306 31.709 3.4306H34.2467C35.0802 3.4306 35.7425 3.6613 36.2485 4.13014C36.762 4.59898 37.0374 5.27618 37.0374 6.15432C37.0374 7.04735 36.7844 7.70967 36.2709 8.17851C35.7574 8.64735 35.0802 8.87805 34.269 8.87805H32.4978V11.8176C32.4978 12.0334 32.4309 12.2194 32.282 12.3683C32.1332 12.5171 31.962 12.5841 31.7239 12.5841C31.4858 12.5841 31.322 12.5022 31.1732 12.3534C31.002 12.1897 30.9351 12.0185 30.9351 11.8101ZM32.4755 7.48642H34.1202C34.5444 7.48642 34.8644 7.35991 35.1025 7.12177C35.3406 6.89107 35.4448 6.54874 35.4448 6.12456C35.4448 5.70037 35.3406 5.35805 35.1025 5.12735C34.8644 4.89665 34.5444 4.78502 34.1425 4.78502H32.4978V7.48642H32.4755V7.48642Z" fill="#1F2937"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14.3916 15.9999H1.64367C0.720884 15.9999 -0.000976562 15.278 -0.000976562 14.3627V1.63709C-0.000976562 0.721738 0.720884 -0.00012207 1.64367 -0.00012207H14.3916C15.3069 -0.00012207 16.0362 0.721738 16.0362 1.63709V14.3627C16.0362 15.278 15.3069 15.9999 14.3916 15.9999ZM3.96553 13.0231C3.88367 13.0231 3.77205 13.0008 3.69019 12.9785C3.30321 12.8296 3.11716 12.4055 3.266 12.0185L6.61484 3.44546C6.76367 3.06592 7.18786 2.87244 7.57484 3.02127C7.96181 3.17011 8.14786 3.5943 7.99902 3.98127L4.66507 12.5543C4.56088 12.852 4.26321 13.0231 3.96553 13.0231ZM8.76554 11.9366C8.91437 12.0855 9.10786 12.1524 9.30135 12.1524C9.49484 12.1524 9.68833 12.0855 9.83716 11.9366L12.4567 9.33941C12.9255 8.87058 12.9255 8.08174 12.4567 7.6129L9.83716 4.99337C9.56181 4.69569 9.09298 4.69569 8.7953 4.99337C8.49763 5.26872 8.49763 5.73755 8.7953 6.03523L11.2065 8.46127L8.77298 10.8873C8.46042 11.1701 8.46042 11.6389 8.76554 11.9366Z" fill="#1F2937"></path></svg>
			<a href="https://library.wpcode.com/use-snippet/" >1-click Use in WordPress</a>
		</div>
		</div></div>


<h4 class="wp-block-heading" id="method-2-disable-automatic-update-email-plugin">Method 2: Disable Automatic Update Email Notification Using a Plugin</h4>



<p>Next, we will show you how to disable automatic update email notifications using two different email plugins.</p>



<p><strong>1. Manage Notification Emails</strong></p>



<p>The first thing you need to do is install and activate the <a title="Manage Notification E-mails" href="https://wordpress.org/plugins/manage-notification-emails/"  rel="noopener nofollow">Manage Notification Emails</a> plugin. For more details, see our step-by-step guide on <a title="Step by Step Guide to Install a WordPress Plugin for Beginners" href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/">how to install a WordPress plugin</a>.</p>



<p>Upon activation, you need to visit the <strong>Settings » Notification emails</strong> page. This is where the plugin allows you to manage all WordPress notification emails, including auto-update notifications.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="268" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/managenotiemailplugin.png" alt="Disable email notifications" class="wp-image-190430" title="Disable email notifications" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/managenotiemailplugin.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/managenotiemailplugin-300x118.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Simply scroll down to the auto-update options and uncheck the box next to the notifications you want to disable.</p>



<p>Finally, don&#8217;t forget to click on the &#8216;Save Changes&#8217; button to store your settings.</p>



<p><strong>2. WP Mail SMTP</strong></p>



<p>Another plugin you can use to disable automatic update email notifications is <a title="WP Mail SMTP" href="https://wpmailsmtp.com/"  rel="noopener">WP Mail SMTP</a>. It&#8217;s the best SMTP service for WordPress and ensures your emails are delivered to your inbox.</p>



<p>WP Mail SMTP lets you easily manage the emails sent by WordPress through its Email Controls. However, you will need the <a title="WP Mail SMTP Pro" href="https://wpmailsmtp.com/pricing/"  rel="noopener">WP Mail SMTP Pro</a> license to unlock the Email Controls option.</p>



<p>Next, you will need to install and activate WP Mail SMTP Pro on your website. You can check out our guide on <a title="How to Install a WordPress Plugin – Step by Step for Beginners" href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/">how to install a WordPress plugin</a> for more details.</p>



<p>Once the plugin is active, navigate to <strong>WP Mail SMTP » Settings</strong> from your WordPress admin panel and click the &#8216;Email Controls&#8217; tab.</p>



<p>After that, scroll down to the &#8216;Automatic Updates&#8217; section and disable email notifications for plugins, themes, WP core status, and full log.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="429" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/wpsmtpautoupdateoff.png" alt="Disable Update Email Notifications in WP Mail SMTP" class="wp-image-190431" title="Disable Update Email Notifications in WP Mail SMTP" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/wpsmtpautoupdateoff.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/wpsmtpautoupdateoff-300x189.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you are done, don&#8217;t forget to click the &#8216;Save Settings&#8217; button.</p>



<p>That&#8217;s all. You have successfully disabled WordPress auto-update email notifications for your website.</p>



<h4 class="wp-block-heading" id="aioseo-rolling-back-wordpress-updates-if-something-goes-wrong">Rolling Back WordPress Updates if Something Goes Wrong</h4>



<p>Because <a href="https://www.wpbeginner.com/showcase/24-must-have-wordpress-plugins-for-business-websites/" title="Must Have WordPress Plugins for Business Websites">WordPress plugins</a> run on many independent <a title="How to Choose the Best WordPress Hosting in 2021 (Compared)" href="https://www.wpbeginner.com/wordpress-hosting/">WordPress hosting</a> and server configurations, sometimes a plugin update may break a feature on your website or make it inaccessible.</p>



<p>This is easy to troubleshoot and fix. First, you need to figure out which plugin has caused the issue by <a title="How to Easily Deactivate WordPress Plugins (Beginner’s Guide)" href="https://www.wpbeginner.com/beginners-guide/how-to-easily-deactivate-wordpress-plugins/">deactivating all WordPress plugins</a> and reactivating them one by one.</p>



<p>Once you have isolated the plugin causing the issue, you can use the <a title="WP Rollback" href="https://wordpress.org/plugins/wp-rollback/"  rel="noopener nofollow">WP Rollback</a> plugin. It allows you to switch to the previous version of a WordPress plugin or theme.</p>



<p>For details, you can see our guide on <a title="How to Rollback WordPress Plugins (Version Control for Beginners)" href="https://www.wpbeginner.com/plugins/how-to-rollback-wordpress-plugins-version-control-for-beginners/">how to roll back WordPress plugins and themes</a> with step-by-step instructions.</p>



<h4 class="wp-block-heading" id="aioseo-improving-wordpress-email-deliverability">Improving WordPress Email Deliverability</h4>



<p>Even if you disable WordPress auto-update emails, there are other WordPress notification emails that you may not want to miss.</p>



<p>For instance, if you run a <a title="WooCommerce Made Simple: A Step-by-Step Tutorial [+ Resources]" href="https://www.wpbeginner.com/wp-tutorials/woocommerce-tutorial-ultimate-guide/">WooCommerce</a> store, then you will want to receive notifications when a new order is placed.</p>



<p>Similarly, if you <a title="How to Create and Sell Online Courses with WordPress (Step by Step)" href="https://www.wpbeginner.com/wp-tutorials/how-to-create-online-course-in-wordpress/">sell an online course</a> or run a <a title="Ultimate Guide to Creating a WordPress Membership Site" href="https://www.wpbeginner.com/wp-tutorials/ultimate-guide-to-creating-a-wordpress-membership-site/">membership website</a>, then you might want to receive email alerts when new users sign up.</p>



<p>You will also want to make sure that emails sent to users are delivered, including forgotten password emails, payment receipt emails, and order confirmation notifications.</p>



<p>To send emails, WordPress uses the PHP mail function. This function is easily misused by spammers, and your emails may end up in the spam folder.</p>



<p>To make sure all your important WordPress notification emails reach your users&#8217; inboxes, you will need a proper <a title="7 Best SMTP Service Providers with High Email Deliverability (2021)" href="https://www.wpbeginner.com/showcase/best-smtp-service-providers-with-high-email-deliverability/">SMTP service</a> to send emails.</p>



<p>This is where the <a href="https://wpmailsmtp.com/"  title="WP Mail SMTP - Fix WordPress Email Deliverability" rel="noopener">WP Mail SMTP</a> plugin comes in. It uses an SMTP service to send all your WordPress notification emails.</p>



<p>You can use it with a paid SMTP service provider or a <a title="How to Use Free SMTP Server to Send WordPress Emails (4 Methods)" href="https://www.wpbeginner.com/wp-tutorials/how-to-use-a-free-smtp-server-to-send-wordpress-emails/">free SMTP service</a> like Gmail combined with the <a href="https://wordpress.org/plugins/wp-mail-smtp"  title="Free version of WP Mail SMTP plugin" rel="noopener">free version of the WP Mail SMTP plugin</a>.</p>



<p>For more details, see our guide on <a title="How to Set up WP Mail SMTP with Any Host (Ultimate Guide)" href="https://www.wpbeginner.com/plugins/how-to-set-up-wp-mail-smtp-with-any-host-ultimate-guide/">How to set up WP Mail SMTP</a> on your WordPress site.</p>



<p>We hope this article helped you learn how to disable automatic update email notifications in WordPress. You may also want to see our guide on <a title="How to Create a Free Business Email Address (in 5 Minutes)" href="https://www.wpbeginner.com/beginners-guide/how-to-create-a-free-business-email-address-in-5-minutes-step-by-step/">how to get a free business email address</a> and our comparison of the <a href="https://www.wpbeginner.com/showcase/best-email-marketing-services/" title="Best Email Marketing Services for Small Business">best email marketing services</a> to grow your sales.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/">How to Disable Automatic Update Email Notification in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-disable-automatic-update-email-notification-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Create a Mailchimp Subscribe Form in WordPress With Custom Fields</title>
		<link>http://www.wpwife.com/tutorials/how-to-create-a-mailchimp-subscribe-form-in-wordpress-with-custom-fields</link>
		<comments>http://www.wpwife.com/tutorials/how-to-create-a-mailchimp-subscribe-form-in-wordpress-with-custom-fields#comments</comments>
		<pubDate>Mon, 17 Jul 2023 10:01:55 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[Mailchimp]]></category>
		<category><![CDATA[mailchimp addon]]></category>
		<category><![CDATA[mailchimp subscriber count]]></category>
		<category><![CDATA[subscribe form]]></category>
		<category><![CDATA[subscription]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[using mailchimp with wordpress]]></category>
		<category><![CDATA[wpforms]]></category>
		<category><![CDATA[wpforms lite]]></category>
		<category><![CDATA[wpforms templates]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=193121</guid>
		<description><![CDATA[
<p>Are you looking to add a Mailchimp subscribe form to your WordPress website? Mailchimp is a popular email marketing tool that offers a form builder. However, this builder has limited features and customization options. Adding a custom subscribe form gives you more flexibility and helps&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-mailchimp-subscribe-form-wordpress-custom-fields/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-mailchimp-subscribe-form-wordpress-custom-fields/">How to Create a Mailchimp Subscribe Form in WordPress With Custom Fields</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Are you looking to add a Mailchimp subscribe form to your WordPress website? </p>



<p><a href="https://www.wpbeginner.com/refer/mailchimp/" title="MailChimp"  rel="noopener nofollow">Mailchimp</a> is a popular email marketing tool that offers a form builder. However, this builder has limited features and customization options. Adding a custom subscribe form gives you more flexibility and helps grow your email list.</p>



<p>In this article, we will show you how to create a Mailchimp subscribe form in WordPress with custom fields. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/how-to-create-mailchimp-subscribe-form-in-wordpress.png" alt="How to create Mailchimp subscribe form in WordPress" class="wp-image-193384" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/how-to-create-mailchimp-subscribe-form-in-wordpress.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/how-to-create-mailchimp-subscribe-form-in-wordpress-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading">Why Add a Custom Mailchimp Subscribe Form in WordPress?</h4>



<p>Adding a subscription form to your <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a> is a great way of communicating with your users. </p>



<p>You can send newsletters, new product releases, announcements, and other information while creating a direct connection with your audience. </p>



<p><a href="https://www.wpbeginner.com/refer/mailchimp/"  rel="noopener nofollow" title="MailChimp">Mailchimp</a> is one of the most popular <a href="https://www.wpbeginner.com/showcase/best-email-marketing-services/" title="Best Email Marketing Services for Small Business">email marketing services</a>. It helps you build an email list, send emails, and set up automated email campaigns. Plus, it also offers a form builder that you can use to create a subscription form and embed it on your website. </p>



<p>However, Mailchimp&#8217;s form builder is very basic and doesn&#8217;t offer a lot of customization options. You get limited form fields to choose from, and there are no settings to change color, font, and more. It also adds <a rel="nofollow noopener"  title="MailChimp" href="https://www.wpbeginner.com/refer/mailchimp/" data-shortcode="true">Mailchimp</a> branding at the bottom.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="310" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/mailchimp-subscribe-form-preview.png" alt="Mailchimp subscribe form preview" class="wp-image-193258" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/mailchimp-subscribe-form-preview.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/mailchimp-subscribe-form-preview-300x137.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Creating a custom Mailchimp subscribe form gives you more flexibility and control. You can add all types of form fields, edit their appearance, add <a href="https://www.wpbeginner.com/showcase/best-wordpress-conditional-logic-plugins/" title="Best WordPress Conditional Logic Plugins">conditional logic</a> to show fields based on the user&#8217;s responses, and more.  </p>



<p>That being said, let&#8217;s look at how you can create a Mailchimp subscription form with custom fields. </p>



<h4 class="wp-block-heading">How to Create a Mailchimp Subscribe Form in WordPress</h4>



<p>The easiest way of adding a Mailchimp subscribe form in WordPress is by using <a href="https://wpforms.com/"  title="WPForms - Drag &amp; Drop WordPress Form Builder" rel="noopener">WPForms</a>. It is the <a href="https://www.wpbeginner.com/plugins/5-best-contact-form-plugins-for-wordpress-compared/" title="Best Contact Form Plugins for WordPress Compared">best contact form plugin for WordPress</a> that&#8217;s used by over 5 million professionals. </p>



<p>WPForms is a beginner-friendly plugin that offers a drag-and-drop form builder, prebuilt templates, and lots of customization options. The best part is it easily integrates with Mailchimp. </p>


<div class="wpb-alert style-yellow">

<p><strong>Note: </strong>For this tutorial, we will be using the WPForms Pro version because it includes the Mailchimp addon and custom form fields. There is also the <a href="https://wordpress.org/plugins/wpforms-lite"  title="Free version of WPForms Contact Form builder plugin" rel="noopener">WPForms Lite</a> version that is available for free, but it doesn&#8217;t offer a Mailchimp integration.  </p>

</div>


<h4 class="wp-block-heading">Step 1: Connect Mailchimp With WPForms</h4>



<p>First, you will need to install and activate the WPForms plugin. If you need help, then please see our guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>. </p>



<p>Upon activation, you will need to go to <strong>WPForms » Settings</strong> and add the license key. You can find the key in your WPForms account area. </p>



<p>After entering the license key, go ahead and click the &#8216;Verify Key&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="286" src="https://www.wpbeginner.com/wp-content/uploads/2023/04/wpforms-license-key.png" alt="Adding a license key to the WPForms form builder plugin" class="wp-image-180945" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/04/wpforms-license-key.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/04/wpforms-license-key-300x126.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you will need to install the Mailchimp addon. </p>



<p>You can do that by going to <strong>WPForms » Addons</strong> from the WordPress admin panel. From here, navigate to the Mailchimp addon and click the &#8216;Install Addon&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="357" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/install-mailchimp-addon.png" alt="Install Mailchimp addon" class="wp-image-193304" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/install-mailchimp-addon.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/install-mailchimp-addon-300x158.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>The addon should now install and activate. </p>



<p>Once that&#8217;s done, simply go to <strong>WPForms » Settings</strong> from your WordPress dashboard and switch to the &#8216;Integrations&#8217; tab. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="360" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/integrate-mailchimp-with-wpforms.png" alt="Integrate MailChimp with WPForms" class="wp-image-193305" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/integrate-mailchimp-with-wpforms.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/integrate-mailchimp-with-wpforms-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can expand the Mailchimp settings and then click the &#8216;+ Add New Account&#8217; button under Mailchimp. </p>



<p>As soon as you do that, you will see more options. To integrate Mailchimp, you must enter the API key and account nickname. This will allow WPForms to communicate with your Mailchimp account.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="338" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/see-more-mailchimp-integration-options.png" alt="See more Mailchimp integration options" class="wp-image-193306" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/see-more-mailchimp-integration-options.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/see-more-mailchimp-integration-options-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Creating Mailchimp API Keys for WPForms Integration</strong> </p>



<p>To create an API key to connect WPForms, you will first need to log in to your Mailchimp account. </p>



<p>Once you are logged in, simply click on your avatar in the top right corner and select the &#8216;Account &amp; billing&#8217; option. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="358" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/click-your-mailchimp-avatar.png" alt="Click your Mailchimp avatar" class="wp-image-193310" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/click-your-mailchimp-avatar.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/click-your-mailchimp-avatar-300x158.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next page, you will see different account settings. </p>



<p>Simply click the &#8216;Extras&#8217; dropdown menu and then select the &#8216;API keys&#8217; option.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="303" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/open-api-keys-page.png" alt="Open API keys page" class="wp-image-193311" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/open-api-keys-page.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/open-api-keys-page-300x134.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can copy an existing API key to use for your WPForms integration. </p>



<p>If you haven&#8217;t generated a key previously, then simply click the &#8216;Create A Key&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="241" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/create-a-new-key.png" alt="Create a new key" class="wp-image-193315" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/create-a-new-key.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/create-a-new-key-300x106.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can enter a name for your new API key. </p>



<p>Once that&#8217;s done, just click the &#8216;Generate Key&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="361" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-a-name-for-api-key.png" alt="Enter a name for API key" class="wp-image-193317" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-a-name-for-api-key.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-a-name-for-api-key-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you will see the new API key. </p>



<p>Go ahead and copy the key and click the &#8216;Done&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="335" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/copy-the-api-key-1.png" alt="Copy the API key" class="wp-image-193320" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/copy-the-api-key-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/copy-the-api-key-1-300x148.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now return to the browser tab or window with your WPFroms integration settings.</p>



<p>From here, simply paste the key into the &#8216;API Key&#8217; field. You can also add a Mailchimp account nickname to remember which account you are connected to.  </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="323" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-your-mailchimp-api-key.png" alt="Enter your Mailchimp API key" class="wp-image-193321" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-your-mailchimp-api-key.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-your-mailchimp-api-key-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After entering the key, go ahead and click the &#8216;Connect to Mailchimp&#8217; button. </p>



<p>You should now see a green &#8216;Connected&#8217; button next to the Mailchimp settings, showing that the email marketing tool is successfully integrated with WPForms. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="305" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/see-mailchimp-connection.png" alt="See Mailchimp connection" class="wp-image-193323" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/see-mailchimp-connection.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/see-mailchimp-connection-300x135.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading">Step 2: Design a Mailchimp Subscribe Form With Custom Fields </h4>



<p>Now that you have integrated Mailchimp with WPForms, the next step is to create a subscription form with custom fields. </p>



<p>First, you will need to go to <strong>WPForms » Add New</strong> from the WordPress dashboard. Next, you can enter a name at the top and select a form template.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="380" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/select-a-form-template.png" alt="Select a form template" class="wp-image-193326" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/select-a-form-template.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/select-a-form-template-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>WPFomrs offers lots of prebuilt form templates, so you can quickly pick one and customize it. </p>



<p>It even offers form templates for Mailchimp. For instance, you can create a signup contact form, newsletter signup form, or email marketing form. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="258" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/mailchimp-form-templates.png" alt="Mailchimp form templates" class="wp-image-193327" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/mailchimp-form-templates.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/mailchimp-form-templates-300x114.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For this tutorial, we will choose the Mailchimp Newsletter Signup Form template. </p>



<p>On the next screen, you will see the WPForms drag-and-drop form builder. Here, you can customize the form and add custom fields from the menu on the left. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="370" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/add-custom-form-fields.png" alt="Add custom form fields" class="wp-image-193330" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/add-custom-form-fields.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/add-custom-form-fields-300x163.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>The default form template will come with a Name and Email field. </p>



<p>However, you can simply drag any form field and drop it onto the template. There are fields to add text, dropdown options, multiple choice, phone number, address, date and time, website, password, and more. </p>



<p>For instance, if you are using a <a href="https://www.wpbeginner.com/showcase/best-business-phone-services/" title="Best Business Phone Services for Small Business">business phone service</a>, then you can add a Phone field. This will help you send <a href="https://www.wpbeginner.com/wp-tutorials/how-to-send-sms-messages-to-your-wordpress-users/" title="How to Send SMS Messages to Your WordPress Users">SMS messages</a> or reach out to subscribers via phone calls.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="386" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/adding-custom-form-fields.png" alt="Adding custom form fields" class="wp-image-193332" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/adding-custom-form-fields.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/adding-custom-form-fields-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can add a checkbox field and allow users to select their interests. This way, you can segment your subscribers and send them targeted emails. </p>



<p>Next, you can further edit each form field in the template. Simply choose a field, and you will see more options in the left panel. </p>



<p>For example, we changed the options in the Checkboxes form field. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="325" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/customize-each-form-field.png" alt="Customize each form field" class="wp-image-193359" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/customize-each-form-field.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/customize-each-form-field-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can also edit the label of the form field, make it a required field, add images to the checkbox options, and more. </p>



<p>Once you have finished adding custom form fields, switch to the &#8216;Settings&#8217; tab from the left menu. In the General settings, you can change the form&#8217;s name and description, add tags, edit the submit button text, and more. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="303" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/general-form-settings.png" alt="General form settings Mailchimp" class="wp-image-193363" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/general-form-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/general-form-settings-300x134.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can switch to the &#8216;Confirmations&#8217; tab and choose what subscribers will see once they submit a form.</p>



<p>WPForms lets you show a message, a specific page like a <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-a-thank-you-page-in-wordpress/" title="How to Create a Thank You Page in WordPress">thank you page</a>, or redirect users to a URL. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="285" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/confirmation-settings-mailchimp-form.png" alt="Confirmation settings Mailchimp form" class="wp-image-193365" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/confirmation-settings-mailchimp-form.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/confirmation-settings-mailchimp-form-300x126.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can go to the &#8216;Marketing&#8217; tab from the left panel and then select Mailchimp. </p>



<p>From here, simply click the &#8216;Add New Connection&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="261" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/add-new-mailchimp-connection.png" alt="Add new Mailchimp connection" class="wp-image-193366" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/add-new-mailchimp-connection.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/add-new-mailchimp-connection-300x115.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, a small popup will open where you will need to enter the Mailchimp nickname. </p>



<p>After entering it, go ahead and click the &#8216;OK&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="311" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-connection-nickname.png" alt="Enter connection nickname" class="wp-image-193367" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-connection-nickname.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-connection-nickname-300x137.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can pick the Mailchimp account that you connected to earlier. </p>



<p>Simply click the &#8216;Select Account&#8217; dropdown menu and choose your account. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="313" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/select-your-mailchimp-account.png" alt="Select your Mailchimp account" class="wp-image-193368" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/select-your-mailchimp-account.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/select-your-mailchimp-account-300x138.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, more options will appear. </p>



<p>You can go ahead and select the audience from the dropdown menu to which the new subscribers will be added.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="326" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/select-audience-and-action.png" alt="Select audience and action" class="wp-image-193369" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/select-audience-and-action.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/select-audience-and-action-300x144.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>There are different actions to choose from, but we will select the &#8216;Subscribe&#8217; option for this tutorial. This will add the user as a new contact to your Mailchimp account. </p>



<p>Next, you can scroll down to see additional settings. For instance, there is an option to choose the WPForms field where users can enter their email addresses. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="321" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/additional-mailchimp-settings-in-wpforms.png" alt="Additional Mailchimp settings in WPForms" class="wp-image-193370" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/additional-mailchimp-settings-in-wpforms.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/additional-mailchimp-settings-in-wpforms-300x142.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You also have options to add tags to new subscribers and a note to the user&#8217;s profile.</p>



<p>If you scroll down further, then you will see more optional settings. For instance, you can enable double opt-in, mark the subscriber as VIP, update their profile if the contact is already in an audience, and more. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="282" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/more-mailchimp-settings-in-wpforms.png" alt="More Mailchimp settings in WPForms" class="wp-image-193371" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/more-mailchimp-settings-in-wpforms.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/more-mailchimp-settings-in-wpforms-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, you are ready to add your Mailchimp subscribe form to your <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog (Beginner’s Guide)">WordPress blog</a> or website. </p>



<p>In the WPForms form builder, you will see an &#8216;Embed&#8217; option at the top. Go ahead and click on the &#8216;Save&#8217; button to store your changes, and then click the &#8216;Embed&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="237" src="https://www.wpbeginner.com/wp-content/uploads/2018/05/save-and-embed-your-form.png" alt="Save and embed your form" class="wp-image-169712" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/05/save-and-embed-your-form.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/05/save-and-embed-your-form-300x105.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, a popup will open where you will need to select an existing page or create a new page. </p>



<p>For this tutorial, we will use the &#8216;Create New Page&#8217; option. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="323" src="https://www.wpbeginner.com/wp-content/uploads/2022/08/emebd-a-form-in-page.png" alt="Embed a form in page" class="wp-image-136743" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/08/emebd-a-form-in-page.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/08/emebd-a-form-in-page-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you will need to enter a name for your new page. </p>



<p>Once that&#8217;s done, simply click the &#8216;Let&#8217;s Go!&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="309" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-name-for-form-embed-page.png" alt="Enter name for form embed page" class="wp-image-193378" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-name-for-form-embed-page.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/enter-name-for-form-embed-page-300x136.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you will see a preview of your form in the <a href="https://www.wpbeginner.com/beginners-guide/14-tips-for-mastering-the-wordpress-visual-editor/" title="Tips for Mastering the WordPress Content Editor">WordPress content editor</a>. </p>



<p>You can then click the &#8216;Publish&#8217; button at the top to make your Mailchimp subscribe form live. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="355" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/view-preivew-of-subscribe-form.png" alt="View preview of subscribe form" class="wp-image-193379" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/view-preivew-of-subscribe-form.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/view-preivew-of-subscribe-form-300x157.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You have now successfully created a Mailchimp subscribe form with custom fields. </p>



<p>You can go ahead and visit your website to see the form in action. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="369" src="https://www.wpbeginner.com/wp-content/uploads/2023/06/mailchimp-subscribe-form-with-custom-fields-preview.png" alt="Mailchimp subscribe form with custom fields preview" class="wp-image-193380" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/06/mailchimp-subscribe-form-with-custom-fields-preview.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/06/mailchimp-subscribe-form-with-custom-fields-preview-300x163.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can also do a lot more with Mailchimp and WordPress. For instance, you can integrate it with <a href="https://optinmonster.com/"  title="OptinMonster - Lead Generation &amp; Conversion Optimization Tool" rel="noopener">OptinMonster</a> and show your subscribe forms in popup campaigns.</p>



<p>To learn more, please see our <a href="https://www.wpbeginner.com/wp-tutorials/ultimate-guide-to-using-mailchimp-and-wordpress/" title="Ultimate Guide to Using Mailchimp and WordPress">ultimate guide to using Mailchimp and WordPress</a>. </p>



<p>We hope this article helped you learn how to create a Mailchimp subscribe form in WordPress with custom fields. You may also want to see our guide on <a href="https://www.wpbeginner.com/beginners-guide/12-tested-and-easy-ways-to-grow-your-email-list-faster/" title="Tested and Easy Ways to Grow Your Email List Faster">easy ways to grow your email list faster</a> and<a href="https://www.wpbeginner.com/wp-tutorials/how-to-open-a-wordpress-popup-form-on-click-of-link-or-image/" title="How to Open a WordPress Popup Form On Click of Link or Image"> </a>our expert picks for the <a href="https://www.wpbeginner.com/showcase/24-must-have-wordpress-plugins-for-business-websites/" title="Must Have WordPress Plugins for Business Websites">must have WordPress plugins</a> to grow your website. </p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-mailchimp-subscribe-form-wordpress-custom-fields/">How to Create a Mailchimp Subscribe Form in WordPress With Custom Fields</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-create-a-mailchimp-subscribe-form-in-wordpress-with-custom-fields/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Restrict Content on WordPress to Patreon Members</title>
		<link>http://www.wpwife.com/tutorials/how-to-restrict-content-on-wordpress-to-patreon-members</link>
		<comments>http://www.wpwife.com/tutorials/how-to-restrict-content-on-wordpress-to-patreon-members#comments</comments>
		<pubDate>Fri, 14 Jul 2023 10:00:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[memberpress]]></category>
		<category><![CDATA[patreon]]></category>
		<category><![CDATA[patron plugin pro]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=163605</guid>
		<description><![CDATA[
<p>Do you want to restrict content on WordPress to Patreon members? By adding patron-only content to your website, you can encourage visitors to join your Patreon and increase your profits. It&#8217;s also a great way to get Patreon users to visit your website, which will&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-restrict-content-on-wordpress-to-patreon-members/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-restrict-content-on-wordpress-to-patreon-members/">How to Restrict Content on WordPress to Patreon Members</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to restrict content on WordPress to Patreon members?</p>



<p>By adding patron-only content to your website, you can encourage visitors to join your Patreon and increase your profits. It&#8217;s also a great way to get Patreon users to visit your website, which will boost your traffic and can increase revenue further.</p>



<p>In this article, we will show you how to restrict content on WordPress to Patreon members.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/restric-content-on-wordpress-to-patreon-members-og.png" alt="How to restrict content on WordPress to Patreon members" class="wp-image-163606" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/restric-content-on-wordpress-to-patreon-members-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/restric-content-on-wordpress-to-patreon-members-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading"><strong>Why Restrict Content on WordPress to Patreon Members?</strong></h4>



<p>If you are a content creator, then you may want to earn money from your writing, music, <a href="https://www.wpbeginner.com/wp-tutorials/step-by-step-guide-how-to-start-a-podcast-with-wordpress/" title="How to Start a Podcast (and Make it Successful) ">podcasts</a>, stock photos, and other content.</p>



<p>Patreon allows you to sell memberships and then give those people access to different content based on their subscriptions.</p>



<p>Patreon is also a great way to build relationships with your fans. For example, you can automatically send a welcome note to new patrons.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-welcome-note.png" alt="An example of a custom Patreon welcome note" class="wp-image-163610" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-welcome-note.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-welcome-note-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can also create private <a href="https://www.wpbeginner.com/wp-tutorials/how-to-embed-discord-widget-into-wordpress/" title="How to Embed Discord Widget into WordPress">Discord</a> servers or <a href="https://www.wpbeginner.com/plugins/how-to-create-chat-rooms-using-wordpress-for-your-users/" title="How to Create Chat Rooms in WordPress for Your Users">chat rooms</a> where members can talk to each other and even message you directly. </p>



<p>After creating a Patreon, it&#8217;s a good idea to publish members-only content to your WordPress website. This encourages visitors to join your Patreon in order to unlock exclusive WordPress content.</p>



<p>This can also <a href="https://www.wpbeginner.com/beginners-guide/how-to-increase-your-blog-traffic/" title="How to Increase Your Blog Traffic – The Easy Way (Proven Tips)">increase your blog traffic</a> since patrons will need to visit your WordPress site to see the exclusive content. </p>



<p>That said, let&#8217;s see how you can restrict content on WordPress to Patreon members.</p>



<h4 class="wp-block-heading"><strong>How to Create a Patreon Account for Your WordPress Website</strong></h4>



<p>If you don&#8217;t already have an account, then head over to the Patreon website and click on the &#8216;Create on Patreon&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="350" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/create-patreon-account-.png" alt="Creating a Patreon account for your fans" class="wp-image-163611" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/create-patreon-account-.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/create-patreon-account--300x154.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now type in your <a href="https://www.wpbeginner.com/beginners-guide/how-to-create-a-free-business-email-address-in-5-minutes-step-by-step/" title="How to Create a Free Business Email Address (in 5 Minutes)">email address</a> and create a password. If you prefer, then you can also register using your existing Google or <a href="https://www.wpbeginner.com/plugins/how-to-add-login-with-facebook-in-wordpress/" title="How to Add Login with Facebook in WordPress">Facebook login</a>.</p>



<p>After entering this information, the setup wizard will ask some questions about how you plan to use Patreon. Simply follow the onscreen instructions to build an engaging and informative Patreon page.</p>



<p>With that done, you can use the Patreon tools to customize your page, add membership tiers, set up billing, and more.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="351" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/creating-patreon-page.png" alt="How to create a Patreon page using the built-in tools" class="wp-image-163612" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/creating-patreon-page.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/creating-patreon-page-300x155.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you are happy with how your Patreon page looks, you are ready to add it to your WordPress website. </p>



<h4 class="wp-block-heading"><strong>How to Connect WordPress to Your Patreon Account</strong></h4>



<p>The easiest way to create Patreon-only content is by using <a href="https://www.wpbeginner.com/refer/codebard-patron-plugin-pro/"  rel="noopener nofollow" title="Patron Plugin Pro">Patron Plugin Pro.</a> This plugin allows you to restrict access to individual pages and posts or even lock all the content from a specific tag or category.</p>



<p>You can also automatically lock and unlock content based on a schedule. This allows you to create free trials, <a href="https://www.wpbeginner.com/plugins/how-to-add-automatically-drip-content-in-your-wordpress-site/" title="How to Add Automatic Drip Content in Your WordPress Site">automatically drip content</a>, and more.</p>



<p>First, you will need to install and activate Patron Plugin Pro. If you need help, then please see our guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>



<p>Upon activation, you will need to connect the plugin to your Patreon account. To do this, go to <strong>Patreon Settings » Patreon Settings</strong>, and then click on &#8216;Connect site&#8217;.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="297" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-connecting-account-.png" alt="Connecting your Patreon account to WordPress" class="wp-image-163613" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-connecting-account-.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-connecting-account--300x131.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you are ready, select &#8216;Start connection wizard&#8217;.</p>



<p>On the next screen, you need to click on &#8216;Let&#8217;s start!&#8217;</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="226" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-connection-wizard.png" alt="Connecting a WordPress website to Patreon" class="wp-image-163614" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-connection-wizard.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-connection-wizard-300x100.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To connect Patreon to your <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a>, you will need to create an OAuth client.</p>



<p>If you are happy to do this, then click on &#8216;Allow&#8217;.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="276" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/create-oauth-client.png" alt="How to connect Patreon and WordPress using an OAuth client" class="wp-image-163615" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/create-oauth-client.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/create-oauth-client-300x122.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If prompted, type in the login information for your Patreon account.</p>



<p>After a few moments, Patron Plugin Pro will take you back to the main WordPress dashboard. Your Patreon account is now connected to WordPress.</p>



<p>Before you restrict any content, it&#8217;s a good idea to look at the plugin&#8217;s settings by going to <strong>Patreon Settings » Patron Settings</strong>.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="358" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-plugin-settings.png" alt="The Patron Plugin Pro plugin from CodeBard" class="wp-image-163616" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-plugin-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-plugin-settings-300x158.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>The default settings should work well for most websites, but it&#8217;s still worth checking whether you need to make any changes.</p>



<p>If you do customize the settings, then scroll to the bottom of the screen and click on the &#8216;Update Settings&#8217; button. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="279" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-update-settings.png" alt="Updating your Patreon settings using the Patron Pro Plugin" class="wp-image-163617" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-update-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-update-settings-300x123.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading"><strong>How to Restrict Content to Patreon Members</strong></h4>



<p>The easiest way to create patron-only content is by restricting access to entire content types, categories, or tags. For example, you might lock all content that has the &#8216;Patreon&#8217; tag.</p>



<p>To do this, simply select &#8216;Patreon Plugin Pro&#8217; from the left-hand menu and then click on the &#8216;Content Locking&#8217; tab.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="310" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-content-locking.png" alt="Restricting content in WordPress to Patreon members" class="wp-image-163618" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-content-locking.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-content-locking-300x137.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Here, you must click to expand the &#8216;Make post types Patron only&#8217; section.</p>



<p>To start, open the &#8216;Select Post Type&#8217; dropdown and choose the content you want to restrict, such as page, post, media, or some other content type.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="234" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-post-type.png" alt="Restricting content categories to Patreon members" class="wp-image-163619" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-post-type.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-post-type-300x103.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Then, open the new &#8216;All&#8217; dropdown and choose whether you want to restrict this content type based on format or <a href="https://www.wpbeginner.com/plugins/how-to-add-categories-and-tags-for-wordpress-pages/" title="How to Add Categories and Tags for WordPress Pages">categories and tags</a>.</p>



<p>Depending on your selection, you will get access to some additional settings. For example, if you select &#8216;Tag&#8217;, then you will need to choose the tag you want to make Patreon-only. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="191" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-restrict-tags.png" alt="Restricting tags to Patreon members in WordPress" class="wp-image-163620" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-restrict-tags.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-restrict-tags-300x84.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Finally, open the &#8216;Select how to lock&#8217; dropdown and choose how you want to lock and unlock the content.</p>



<p>The easiest option is &#8216;Lock all posts of this type&#8217;. However, you can also lock the most recent example of this content and use the older content as a preview for non-members. </p>



<p>You can also unlock or lock content after a certain number of days has passed. This allows you to offer exclusive early access to Patreon members.</p>



<p>Similarly, you can use this feature to create a free trial. For example, you might make your latest <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-online-course-in-wordpress/" title="How to Create and Sell Online Courses with WordPress (Step by Step)">online course</a> available to non-patrons for the first 24 hours. This can create a buzz around the launch while also encouraging people to join your Patreon so that they don&#8217;t lose access after 24 hours. </p>



<p>Based on your selection, you will see some additional options.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="205" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-locking-delay.png" alt="Locking your WordPress content using an automated delay" class="wp-image-163621" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-locking-delay.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-locking-delay-300x90.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Most importantly, you will need to enter a minimum $ value membership tier.</p>



<p>This should be linked to the cost of your memberships. For example, if your Silver tier is $5, then typing &#8216;$5&#8217; will unlock this content for everyone with a Silver or higher membership.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="241" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-minimum-fee-.png" alt="Setting a fee for restricted content in WordPress" class="wp-image-163622" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-minimum-fee-.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-minimum-fee--300x106.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you are happy with how the content locking is set up, click on &#8216;Add post type to gating.&#8217;</p>



<p>To lock more content, simply follow the same process described above. When you have finished, don&#8217;t forget to scroll to the bottom of the screen and click on &#8216;Save.&#8217;</p>



<h4 class="wp-block-heading"><strong>How to Restrict Specific Pages and Posts to Patreon Members</strong></h4>



<p>Another option is to mark individual pages and posts as Patreon-exclusive. This allows you to control exactly what content your patrons have access to.</p>



<p>To start, simply open the page or post in the <a href="https://www.wpbeginner.com/beginners-guide/14-tips-for-mastering-the-wordpress-visual-editor/" title="Tips for Mastering the WordPress Content Editor">WordPress content editor</a>.</p>



<p>Next, you will need to set some rules about who can access this content. In the right-hand menu, scroll to the &#8216;Patreon Level&#8217; section and choose from the dropdown menu.</p>



<p>You can either select a Patreon level or choose &#8216;Any Patreon&#8217;. For example, you might select &#8216;Any Patreon&#8217; if this is entry-level content that all members should have access to or if you have only created a single Patreon tier.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="304" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-level-settings.png" alt="Restricting content based on Patreon levels in the WordPress post and page editor" class="wp-image-163624" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-level-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-level-settings-300x134.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Often, you will want to give new patrons access to your entire back catalog of members-only content. Another option is to restrict access to people who were already patrons when the content was published.</p>



<p>This is useful for creating time-sensitive Patreon promotions, such as exclusive holiday content or a &#8216;limited edition&#8217; video.</p>



<p>To add this restriction, find the &#8216;Require a pledge active at the time….&#8217; section and check its &#8216;Yes&#8217; box.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="284" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/require-pledge-active.png" alt="Requiring an active Patreon pledge" class="wp-image-163625" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/require-pledge-active.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/require-pledge-active-300x125.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Another option is to show or lock the content automatically based on a schedule. This is perfect for offering exclusive early access to Patreon members.</p>



<p>To lock and unlock content automatically, find the &#8216;Advanced Locking&#8217; section. Here, open the dropdown that shows &#8216;No change&#8217; by default and choose an option from the list.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="296" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-advanced-locking.png" alt="Patreon's advanced content locking settings" class="wp-image-163626" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-advanced-locking.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-advanced-locking-300x131.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can then use the new settings to configure the automatic locking and unlocking.</p>



<p>By default, the plugin will show the following message to all non-Patreon members: &#8216;To view this content, you must be a member of (name) content at (cost) or more.&#8217;</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="275" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-default-message.png" alt="Showing a message to non-patron visitors" class="wp-image-163627" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-default-message.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-default-message-300x121.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You may want to add your own message for non-Patreon members. For example, you might say why the content is restricted or why they should buy a Patreon subscription. </p>



<p>To add a message, scroll to the &#8216;Custom Patron-Only Banner&#8217; section and click on the &#8216;Non-Patrons Only&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="333" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-message-tags.png" alt="Creating a custom message for Patreon members" class="wp-image-163631" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-message-tags.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-message-tags-300x147.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This adds some opening and closing tags to the small text editor.</p>



<p>Simply type your message in between these tags. You can also <a href="https://www.wpbeginner.com/beginners-guide/beginners-guide-on-how-to-add-a-link-in-wordpress/" title="Beginner’s Guide on How to Add a Link in WordPress">add links</a>, formatting, and more in exactly the same way you create content in the WordPress page or post editor.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-custom-message.png" alt="Advertising Patreon on your WordPress website" class="wp-image-163632" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-custom-message.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-custom-message-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you are happy with the settings, simply click on the &#8216;Publish&#8217; or &#8216;Update&#8217; button.</p>



<p>If you visit this content while logged into your admin account, then you won&#8217;t see any changes. However, if you visit it in an incognito browser tab, then you will see the content restriction in action.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="384" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-restricted-content.png" alt="Viewing restricted content as a non-Patron member" class="wp-image-163844" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-restricted-content.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-restricted-content-300x169.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading"><strong>How to Add a Patreon Button to Your WordPress Posts</strong></h4>



<p>Adding Patreon-exclusive content to your <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog (Beginner’s Guide)">WordPress blog</a> is a great start. However, it&#8217;s also a good idea to promote your Patreon on other areas of your website. This will help turn visitors into paying patrons.</p>



<p>Patron Plugin Pro can automatically add a &#8216;Become a Patron&#8217; button to all your posts. Visitors can simply click this button to visit your Patreon page. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="382" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/codebard-patreon-button.png" alt="Adding a Patreon button to any WordPress post" class="wp-image-163633" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/codebard-patreon-button.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/codebard-patreon-button-300x169.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To start, select &#8216;Patron Plugin Pro&#8217; from the left-hand menu, then select the &#8216;Quickstart&#8217; tab.</p>



<p>Since we already connected the plugin to Patreon, you should see your account in the &#8216;Site&#8217;s Patreon user&#8217; field.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="316" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-plugin-quickstart.png" alt="CodeBard's Patron Plugin Pro settings" class="wp-image-163634" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-plugin-quickstart.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patron-plugin-quickstart-300x139.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you don&#8217;t see the right URL, then you can add it now.</p>



<p>After that, you are ready to configure how the <a href="https://www.wpbeginner.com/plugins/how-to-add-buttons-in-wordpress-without-using-shortcodes/" title="How to Add Call to Action Buttons in WordPress (without Code)">call to action button</a> acts.</p>



<p>By default, the plugin opens your Patreon page in the same tab. This takes visitors away from your WordPress website, so we recommend opening the link in a new tab instead.</p>



<p>To do this, select &#8216;Yes&#8217; under &#8216;Open pages in new window&#8217;.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="292" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-new-window.png" alt="How to open a Patreon link in a new tab on your WordPress website" class="wp-image-163635" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-new-window.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-new-window-300x129.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>The plugin adds the standard Patreon button to your website by default. This helps visitors recognize the button and understand that you have a Patreon page.</p>



<p>If you prefer, then you customize the button with your own branding using the settings under &#8216;Use a custom button&#8217;. When you are happy with the changes you&#8217;ve made, don&#8217;t forget to click on &#8216;Save&#8217;.</p>



<p>Next, click on the &#8216;Post Button&#8217; tab to change how the button looks.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-post-button.png" alt="Customizing the Patreon button on your WordPress blog or website" class="wp-image-163636" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-post-button.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-post-button-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>By default, the button includes the following heading: &#8216;Liked it? Take a second to support {authorname} on Patreon!&#8217;</p>



<p>To replace this with your own messaging, simply go ahead and type into the &#8216;Message over Buttons in Posts&#8217; field.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="353" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-custom-message.png" alt="Customizing the message above a Patreon button" class="wp-image-163637" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-custom-message.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-custom-message-300x156.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can also change the message&#8217;s alignment, adjust its size, and add margins.</p>



<p>If you want to remove the message instead, then find the &#8216;Show a message over Buttons in Posts&#8217; section. Here, simply click the &#8216;No&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="274" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/hide-patreon-message.png" alt="Removing the custom message from a Patreon button in WordPress" class="wp-image-163638" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/hide-patreon-message.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/hide-patreon-message-300x121.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you make any changes, then don&#8217;t forget to click on &#8216;Save&#8217;.</p>



<p>Now, you can visit any post on your website to see the Patreon button live.</p>



<h4 class="wp-block-heading"><strong>How to Add a Patreon Button to the WordPress Sidebar</strong></h4>



<p>If you prefer, then you can remove the Patreon button from your blog posts and add it to the sidebar or similar section instead.</p>



<p>In this way, you can show the button on other areas of your website, such as the product pages in your <a href="https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/" title="How to Start an Online Store (Step by Step)">online store</a>.</p>



<p>To start, you will want to remove the button from your WordPress posts so that you don&#8217;t show multiple Patreon buttons on the same page.</p>



<p>To do this, select the &#8216;Post Button&#8217; tab and find the &#8216;Show Button under Posts&#8217; section. Here, go ahead and select the &#8216;No&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="270" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/hide-patreon-button.png" alt="Adding a Patreon button to your WordPess website using the CodeBard plugin" class="wp-image-163639" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/hide-patreon-button.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/hide-patreon-button-300x119.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>With that done, click on &#8216;Save&#8217;.</p>



<p>Next, click on the &#8216;Sidebar Widgets&#8217; tab. Here, you can customize the message that appears next to the button, including changing the font size and adding margins.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="378" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/sidebar-widget-patreon.png" alt="Adding a Patreon button to the WordPress sidebar" class="wp-image-163640" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/sidebar-widget-patreon.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/sidebar-widget-patreon-300x167.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you do make any changes, then don&#8217;t forget to click on the &#8216;Save&#8217; button.</p>



<p>With that setup done, you can add the Patreon button to any widget-ready area by going to <strong>Appearance » Widgets</strong>. Here, click on the blue &#8216;+&#8217; button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="299" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/adding-patreon-widget.png" alt="Adding a Patreon block to any widget-ready area of your WordPress theme" class="wp-image-163641" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/adding-patreon-widget.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/adding-patreon-widget-300x132.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Note:</strong> If you are using a <a href="https://www.wpbeginner.com/showcase/best-wordpress-full-site-editing-themes/" title="Best Block Themes for Full Site Editing in WordPress">block WordPress theme</a>, then you will need to go to <strong>Appearance » Editor</strong> instead.</p>



<p>In the panel that appears, start typing in &#8216;Patreon Sidebar Site Widget&#8217;.</p>



<p>When the right block appears, drag and drop it onto the area where you want to show the Patreon button.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="330" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-button-widget.png" alt="Promoting your Patreon to the people who visit your website" class="wp-image-163642" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-button-widget.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-button-widget-300x146.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now type an optional title into the &#8216;Title&#8217; field.</p>



<p>This will appear above the Patreon button in the theme&#8217;s sidebar or similar section.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="376" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-title-widget.png" alt="Adding a title to a Patreon button WordPress" class="wp-image-163643" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-title-widget.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-title-widget-300x166.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>With that done, click on &#8216;Update&#8217;.</p>



<p>Now if you visit your WordPress blog or website, you will see the Patreon button in the widget-ready area.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="364" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-widget-theme.png" alt="An example of a Patreon button, on a WordPress website" class="wp-image-163645" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-widget-theme.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/patreon-widget-theme-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading"><strong>Bonus: How to Create a Patreon Alternative Using WordPress</strong></h4>



<p>Patreon has helped countless creators monetize their content and <a href="https://www.wpbeginner.com/beginners-guide/make-money-online/" title="Proven Ways to Make Money Online Blogging with WordPress">make money online</a>, but the platform also takes a significant cut of your earnings. </p>



<p>Depending on your Patreon plan, you will lose between 5%-12% of everything you earn on Patreon, plus payment processing and payout fees.</p>



<p>Depending on your location, you may also have to pay additional fees, including Value-added tax, Goods and services tax, Québec sales tax (QST), and US Sales tax.</p>



<p>All of this can really add up.</p>



<p>You will also need to follow all of Patreon&#8217;s terms and conditions and other guidelines. If you break any rules, then Patreon will censor your content and may even delete your account. If this happens, then paying members will lose access to your content, which reflects badly on your brand and can damage your reputation.</p>



<p>With that being said, many WordPress website owners are looking for a Patreon alternative.</p>



<p>That&#8217;s where <a href="https://www.wpbeginner.com/refer/memberpress/"  rel="noopener nofollow" title="MemberPress">MemberPress</a> comes in.</p>



<figure class="wp-block-image size-full"><a href="https://www.wpbeginner.com/refer/memberpress/"  rel="nofollow noopener"><img decoding="async" width="680" height="281" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/memberpress-membership-plugin.png" alt="The MemberPress membership plugin" class="wp-image-163646" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/memberpress-membership-plugin.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/memberpress-membership-plugin-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></a></figure>



<p><a rel="nofollow noopener"  title="MemberPress" href="https://www.wpbeginner.com/refer/memberpress/" data-shortcode="true">MemberPress</a> is the <a href="https://www.wpbeginner.com/plugins/5-best-wordpress-membership-plugins-compared/" title="Best WordPress Membership Plugins (Compared)">best membership plugin for WordPress</a>. </p>



<p>It allows you to create unlimited membership levels for your WordPress website and then restrict access to your content based on the person&#8217;s membership level.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="273" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/memberpress-membership-tiers.png" alt="Membership tiers, in the MemberPress WordPress plugin" class="wp-image-163647" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/memberpress-membership-tiers.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/memberpress-membership-tiers-300x120.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>In this way, you can create members-only videos, <a href="https://www.wpbeginner.com/beginners-guide/how-to-add-ebook-downloads-in-wordpress/" title="How to Add Ebook Downloads in WordPress">eBooks</a>, blog posts, online courses, <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-a-download-link-in-wordpress/" title="How to Easily Add a Download Link in WordPress">downloadable files</a>, and more.</p>



<p>You can even assign different content to different membership levels, which encourages members to upgrade their subscriptions.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="250" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/membership-levels-wordpress.png" alt="Different membership levels on a WordPress members website" class="wp-image-163648" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/membership-levels-wordpress.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/membership-levels-wordpress-300x110.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This is exactly how the Patreon tier model works, without any of the extra transaction fees. Since MemberPress doesn&#8217;t take a cut of your earnings, you get to keep more of the money you make.</p>



<p>For more on this topic, please see our detailed guide on <a href="https://www.wpbeginner.com/beginners-guide/how-much-does-it-cost-to-start-a-membership-site/" title="How Much Does it Cost to Start a Membership Site?">how much it costs to start a membership site</a>.</p>



<p>With MemberPress, you also have the freedom to create your own <a href="https://www.wpbeginner.com/beginners-guide/how-to-add-a-privacy-policy-in-wordpress/" title="How to Add a Privacy Policy in WordPress">privacy policy</a>, rules, and terms and conditions. This gives you more flexibility to create unique and engaging content for your fans, which will make it easier to grow your business.</p>



<p>To help you get started, we have created an <a href="https://www.wpbeginner.com/wp-tutorials/ultimate-guide-to-creating-a-wordpress-membership-site/" title="Ultimate Guide to Creating a WordPress Membership Site">ultimate guide to building a WordPress membership site</a> using MemberPress.</p>



<p>We hope this article helped you learn how to restrict content on WordPress to Patreon members. You may also want to read our guide to the <a href="https://www.wpbeginner.com/plugins/best-social-media-plugins-for-wordpress/" title="Best Social Media Plugins for WordPress">best social media plugins for WordPress</a> to grow your online following and learn <a href="https://www.wpbeginner.com/plugins/how-to-run-a-giveaway-contest-in-wordpress-with-rafflepress/" title="How to Run a Giveaway / Contest in WordPress with RafflePress">how to run a giveaway/contest in WordPress</a>.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-restrict-content-on-wordpress-to-patreon-members/">How to Restrict Content on WordPress to Patreon Members</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-restrict-content-on-wordpress-to-patreon-members/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Cloak Affiliate Links on Your WordPress Site</title>
		<link>http://www.wpwife.com/tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site</link>
		<comments>http://www.wpwife.com/tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site#comments</comments>
		<pubDate>Thu, 13 Jul 2023 19:34:34 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[affiliate link management plugins]]></category>
		<category><![CDATA[cloak links in wordpress]]></category>
		<category><![CDATA[link cloaking plugins for wordpress]]></category>
		<category><![CDATA[link shortener plugins for WordPress]]></category>
		<category><![CDATA[pretty links]]></category>
		<category><![CDATA[thirstyaffiliates]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=27907</guid>
		<description><![CDATA[
<p>Are you looking for a way to cloak affiliate links on your WordPress site? Cloaking your affiliate links in WordPress provides clean and easy-to-read links, which can increase the likelihood of clicks and conversions. It can also increase user trust. In this article, we will&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/">How to Cloak Affiliate Links on Your WordPress Site</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Are you looking for a way to cloak affiliate links on your WordPress site?</p>



<p>Cloaking your affiliate links in WordPress provides clean and easy-to-read links, which can increase the likelihood of clicks and conversions. It can also increase user trust.</p>



<p>In this article, we will show you how to easily cloak affiliate links in WordPress.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/how-to-cloak-affiliate-links-on-your-wordpress-site-og.png" alt="Cloaking affiliate links in WordPress" class="wp-image-192561" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/how-to-cloak-affiliate-links-on-your-wordpress-site-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/how-to-cloak-affiliate-links-on-your-wordpress-site-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 class="wp-block-heading">What Is Affiliate Link Cloaking, and Why Do You Need It?</h4>



<p>Link cloaking is a technique used to make long <a href="https://www.wpbeginner.com/plugins/how-to-add-affiliate-links-in-wordpress-with-thirstyaffiliates/" title="How to Add Affiliate Links in WordPress with ThirstyAffiliates">affiliate links</a> into shorter and branded links on your <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a>.</p>



<p>Often, affiliate links are lengthy, hard to remember, and show your affiliate username or ID like this:</p>



<p><em>http://www.affiliatesite.com/products/?product_id=123&amp;affiliate=123</em></p>



<p>With link cloaking, you can shorten your ugly affiliate links into branded URLs like this:</p>



<p><em>http://www.yoursite.com/refer/productname</em></p>



<p>This can make your links look more trustworthy and professional to your audience, encouraging more clicks.</p>



<p>If you use affiliate links to <a href="https://www.wpbeginner.com/beginners-guide/make-money-online/" title="Proven Ways to Make Money Online Blogging with WordPress">make money from your WordPress blog</a>, then you should cloak links, as doing this can increase your click-through rate and conversions.</p>



<p>Many link-cloaking plugins will also help you measure the performance of your <a href="https://www.wpbeginner.com/beginners-guide/affiliate-marketing-guide-for-beginners-step-by-step/" title="The Ultimate Affiliate Marketing Guide for Beginners – Step by Step">affiliate marketing</a> strategies and optimize them for better results.</p>



<p>Cloaking affiliate links also adds an additional layer of security by masking the actual affiliate URL. This can protect your affiliate accounts and earnings from fraud or theft.</p>



<p>This can also help prevent your links from being blocked by social media sites or search engines,<a href="https://www.wpbeginner.com/beginners-guide/ultimate-wordpress-seo-guide-for-beginners-step-by-step/" title="Ultimate WordPress SEO Guide for Beginners (Step by Step)"> increasing the search visibility</a> of your affiliate content.</p>



<p>Having said that, let&#8217;s see how you can easily cloak affiliate links on your WordPress website, step by step.</p>



<h4 class="wp-block-heading">How to Cloak Affiliate Links in WordPress</h4>



<p>There are many link-cloaking plugins that you can use in WordPress, including <a href="https://www.wpbeginner.com/wp-tutorials/pretty-links-vs-thirstyaffiliates-which-is-right-for-your-site/" title="Pretty Links vs ThirstyAffiliates: Which is Right for Your Site?">Pretty Links and Thirsty Affiliates</a>. Both plugins are great, but we will use Pretty Links for this tutorial since it&#8217;s a little more beginner-friendly for this use case.</p>



<p>You can easily cloak affiliate links in WordPress using Pretty Links. It is one of the <a href="https://www.wpbeginner.com/showcase/10-best-affiliate-marketing-tools-and-plugins-for-wordpress/" title="Best Affiliate Marketing Tools and Plugins for WordPress">best affiliate marketing tools for WordPress</a> that lets you add, manage, and cloak affiliate links.</p>



<p><strong>Install and Activate Pretty Links</strong></p>



<p>First, you need to install and activate the <a href="https://www.wpbeginner.com/deals/pretty-links-pro-coupon/" title="Pretty Links Pro Coupon">Pretty Links</a> plugin. For detailed instructions, please see our beginner&#8217;s guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>


<div class="wpb-alert style-yellow">

<p><strong>Note:</strong> Pretty Links also has a <a href="https://wordpress.org/plugins/pretty-link/"  rel="noopener nofollow" title="Pretty Links Free Plugin">free version</a> that can cloak links. However, we will be using the Pro version in the tutorial to unlock more features.</p>

</div>


<p><strong>Create Your Cloaked Link</strong></p>



<p>Upon activation, you need to head over to the <strong>Pretty Links » Add New</strong> page from the WordPress admin sidebar to create an affiliate link.</p>



<p>Once you are there, you can start by typing a name for your link into the &#8216;Add Title&#8217; option.</p>



<p>After that, you must select a link type from the &#8216;Redirection&#8217; dropdown menu to create short and branded links for your affiliate program. </p>



<p>If you choose &#8216;Cloaked&#8217;, then the target URL will be hidden in your user&#8217;s browser, and they will only see your cloaked link. Some affiliate programs don&#8217;t allow this, so you will need to check first.</p>



<p>Another option is &#8216;307 Temporary&#8217;. It will replace the original URL with your new affiliate link and tell search engines that this link may change in the future. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="364" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-cloaked-as-redirection-option-1.png" alt="Add a title for your affiliate link and choose the Cloaked option as the redirection type" class="wp-image-192758" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-cloaked-as-redirection-option-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-cloaked-as-redirection-option-1-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, simply copy and paste your affiliate link into the &#8216;Target URL&#8217; field.</p>



<p>Once you have done that, type the <a href="https://www.wpbeginner.com/glossary/slug/" title="Slug">slug</a> you want to use for your cloaked link into the &#8216;Pretty Link&#8217; field. </p>



<p>For example, if you want your cloaked link to be like the example below, then you will need to type the &#8216;/refer/bluetooth-speakers&#8217; text into the &#8216;Pretty Link&#8217; field. You will then get a link like this:</p>



<p><em>www.example.com/refer/bluetooth-speakers</em></p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="286" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-cloaked-affiliate-link.png" alt="Add cloaked affiliate link" class="wp-image-192519" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-cloaked-affiliate-link.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/add-cloaked-affiliate-link-300x126.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Choose Attributes for Your Cloaked Link</strong></p>



<p>After that, simply switch to the &#8216;Advanced&#8217; tab from the sidebar on the left. </p>



<p>From here, you can add different attributes to your affiliate link by checking the box next to these options.</p>



<p>For instance, if you want to add a <a href="https://www.wpbeginner.com/beginners-guide/how-to-add-nofollow-links-in-wordpress/" title="How to Add Nofollow Links in WordPress (Simple Guide for Beginners)">nofollow attribute</a> to the external link, then simply check the box next to &#8216;No Follow&#8217;. This means that search engines won&#8217;t pass on any link authority to the site you are linking to. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="289" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-link-attributes.png" alt="Add attributes to the cloaked affiliate link" class="wp-image-192526" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-link-attributes.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/add-link-attributes-300x128.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can also check the &#8216;Sponsored&#8217; box to tell search engines that your link is a paid advertisement. </p>



<p>Plus, checking the &#8216;Parameter Forwarding&#8217; box can be handy if you want to pass a coupon code or customer ID to your cloaked link. </p>



<p>It&#8217;s also a good idea to check the box next to &#8216;Tracking&#8217; so that you can view your affiliate link performance in the Pretty Links reports. </p>



<p><strong>Configure Pro Settings for Your Cloaked Link</strong></p>



<p>Once you have done that, you need to switch to the &#8216;Pro&#8217; tab from the sidebar on the left. Now, you can set an expiry date for the affiliate link by checking the &#8216;Expire&#8217; option.</p>



<p>This will expand a tab on your screen where you can set an expiry date for the link after a specific date or number of link clicks.</p>



<p>For example, if you choose the &#8216;Clicks&#8217; option from the &#8216;Expire After&#8217; dropdown menu and type 5 into the &#8216;Clicks&#8217; field, then your affiliate link will immediately expire once 5 visitors have clicked on the link.</p>



<p>You can also type a URL for the expired redirect into the &#8216;URL&#8217; field. This will be the link that users will be redirected to if they click on the expired affiliate link.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="375" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/set-expiry-date-for-link.png" alt="Set an expiry date for the cloaked affiliate link" class="wp-image-192533" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/set-expiry-date-for-link.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/set-expiry-date-for-link-300x165.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can type the keywords that you would like to be replaced with your affiliate link into the &#8216;Keywords&#8217; field.</p>



<p>This means that whenever the keyword you choose is written in your <a href="https://www.wpbeginner.com/beginners-guide/what-is-the-difference-between-posts-vs-pages-in-wordpress/" title="What is the Difference Between Posts vs. Pages in WordPress">WordPress post or page</a>, the plugin will automatically add its affiliate link to the keyword.</p>



<p>You can also easily replace another URL with your affiliate link by typing it into the &#8216;URL Replacements&#8217; field.</p>



<p>Now, whenever Pretty Links finds this URL on your website, it will replace it with the cloaked link. </p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="227" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-keyword.png" alt="Choose a keyword and replacement URL" class="wp-image-192539" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-keyword.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/choose-keyword-300x100.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Once you are done, simply click the &#8216;Update&#8217; button in the Publish section to store your changes.</p>



<p>After that, you need to click the &#8216;Publish&#8217; button in the same section to publish your cloaked affiliate link.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="271" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/save-affiliate-link.png" alt="Save affiliate link" class="wp-image-192541" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/save-affiliate-link.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/save-affiliate-link-300x120.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Add Your Cloaked Link to a WordPress Post or Page</strong></p>



<p>Now, you can visit a WordPress post or page where you want to add the cloaked affiliate link.</p>



<p>Once you are there, simply select the text that you want to link on top of and then click the &#8216;Pretty Links&#8217; icon in the block toolbar at the top.</p>



<p>This will open up a link prompt on your screen, where you can search for the cloaked affiliate link using its title or the link itself.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="292" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-affiliate-link-in-block-editor.png" alt="Add affiliate link in the block editor" class="wp-image-192549" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/add-affiliate-link-in-block-editor.png 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/add-affiliate-link-in-block-editor-300x129.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Upon adding the link, just click the &#8216;Publish&#8217; or &#8216;Update&#8217; button at the top to store your settings.</p>



<p>Now, you can visit your website and click on the affiliate link. You will now see the cloaked URL redirecting you to the affiliate product page.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2015/05/preview-for-cloaked-affiliate-link.jpg" alt="Preview for cloaked links" class="wp-image-192759" srcset="https://www.wpbeginner.com/wp-content/uploads/2015/05/preview-for-cloaked-affiliate-link.jpg 680w, https://www.wpbeginner.com/wp-content/uploads/2015/05/preview-for-cloaked-affiliate-link-300x161.jpg 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>We hope this article helped you learn how to easily cloak affiliate links in WordPress. You may also want to see our tutorial on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-an-affiliate-product-box-no-coding-required/" title="How to Create an Affiliate Product Box (No Coding Required)">how to create an affiliate product box in WordPress</a> and our expert picks for the <a href="https://www.wpbeginner.com/showcase/best-wordpress-themes-for-affiliate-marketing/" title="Best WordPress Themes for Affiliate Marketing">best WordPress themes for affiliate marketing</a>.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/">How to Cloak Affiliate Links on Your WordPress Site</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-cloak-affiliate-links-on-your-wordpress-site/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Start a Blog in WordPress</title>
		<link>http://www.wpwife.com/tutorials/how-to-start-a-blog-in-wordpress</link>
		<comments>http://www.wpwife.com/tutorials/how-to-start-a-blog-in-wordpress#comments</comments>
		<pubDate>Thu, 06 Jul 2023 07:18:29 +0000</pubDate>
		<dc:creator><![CDATA[Team WPLift]]></dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[Tips & Tutorials]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[WordPress Tips & Tutorials]]></category>

		<guid isPermaLink="false">https://wplift.com/?p=132109</guid>
		<description><![CDATA[
<p>Do you have something worthy on your mind to share with the world today? Absolutely the best way to go about it is to pen your thoughts in the right direction on the right platform that can help you reach out to the very people who would love to read your piece d&#8217;art! What better <span>[...]</span></p>
<p><a href="https://wplift.com/how-to-start-a-wordpress-blog">Read More...</a></p>
<p>The post <a rel="nofollow" href="https://wplift.com/how-to-start-a-wordpress-blog">How to Start a Blog in WordPress</a> appeared first on <a rel="nofollow" href="https://wplift.com/">Learn WordPress with WPLift</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you have something worthy on your mind to share with the world today? Absolutely the best way to go about it is to pen your thoughts in the right direction on the right platform that can help you reach out to the very people who would love to read your piece d’art! What better <span class="more-dots">[...]</span></p>
<p><a class="btn btn-secondary understrap-read-more-link" href="https://wplift.com/how-to-start-a-wordpress-blog">Read More...</a></p>
<p>The post <a rel="nofollow" href="https://wplift.com/how-to-start-a-wordpress-blog">How to Start a Blog in WordPress</a> appeared first on <a rel="nofollow" href="https://wplift.com/">Learn WordPress with WPLift</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-start-a-blog-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Add a Contact Form Popup in WordPress</title>
		<link>http://www.wpwife.com/tutorials/how-to-add-a-contact-form-popup-in-wordpress</link>
		<comments>http://www.wpwife.com/tutorials/how-to-add-a-contact-form-popup-in-wordpress#comments</comments>
		<pubDate>Sat, 08 Apr 2023 08:42:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[how to add a lightbox popup with facebook like box]]></category>
		<category><![CDATA[how to add a lightbox with gravity form]]></category>
		<category><![CDATA[lightbox popup link in wordpress]]></category>
		<category><![CDATA[modal popup link]]></category>
		<category><![CDATA[optinmonster]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=20662</guid>
		<description><![CDATA[
<p>Are you looking for an easy way to show a contact form popup on your WordPress website? Contact forms are great for communicating with your visitors. Placing them in a popup makes it even easier for your customers to contact you about your products and&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-a-contact-form-popup-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-a-contact-form-popup-in-wordpress/">How to Add a Contact Form Popup in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Are you looking for an easy way to show a contact form popup on your WordPress website?</p>



<p>Contact forms are great for communicating with your visitors. Placing them in a popup makes it even easier for your customers to contact you about your products and services.</p>



<p>In this article, we will show you how to add a contact form popup in WordPress.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/how-to-add-a-contact-form-popup-in-wordpress.png" alt="How to add a contact form popup in WordPress" class="wp-image-160178" title="How to Create a Contact Form Popup in WordPress" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/how-to-add-a-contact-form-popup-in-wordpress.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/how-to-add-a-contact-form-popup-in-wordpress-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4>Why Use a Contact Form Popup?</h4>



<p>Every <a title="Ultimate Guide: How to Make a Website" href="https://www.wpbeginner.com/guides/">WordPress website</a> or <a title="How to Start a WordPress Blog the RIGHT WAY in 7 Easy Steps" href="https://www.wpbeginner.com/start-a-wordpress-blog/">blog</a> needs a contact form so users can reach out with questions, feedback, or problems.</p>



<p>However, if your contact form is only on a single page, then it&#8217;s hard for people to find it.</p>



<p>As a result, your users may end up leaving your site before contacting you, and you could lose potential leads and conversions.</p>



<p>A contact form popup helps solve this issue by allowing your visitors to quickly view the form by clicking a button, so they can get in touch with you from whatever page they&#8217;re on.</p>



<p>It helps keep people on your website, as they don&#8217;t have to exit the page they are viewing. You can also <a title="17 Tested and Easy Ways to Grow Your Email List Faster" href="https://www.wpbeginner.com/beginners-guide/12-tested-and-easy-ways-to-grow-your-email-list-faster/">grow your email list</a> using a contact form popup.</p>



<p>That said, you will first need to create a contact form and then place it in a popup to display on your web pages. Don&#8217;t worry, we will guide you on creating a contact form and adding it to a popup in WordPress.</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-a-contact-form-popup-in-wordpress/#create-contact-form">How to Create a WordPress Contact Form</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-a-contact-form-popup-in-wordpress/#add-contact-form-popup">Add a Contact Form Popup to Your WordPress Site</a></li></ul></div>



<h4 id="create-contact-form">How to Create a WordPress Contact Form</h4>



<p>First, you will need to select a <a title="5 Best Contact Form Plugins for WordPress Compared" href="https://www.wpbeginner.com/plugins/5-best-contact-form-plugins-for-wordpress-compared/">WordPress contact form plugin</a>.</p>



<p>There are many free and paid options you can choose from, but we recommend using <a title="WPForms" href="https://wpforms.com/"  rel="noopener">WPForms</a> as it&#8217;s the best option.</p>



<p>WPForms is a beginner-friendly form plugin and offers a drag &amp; drop builder that allows you to <a title="How to Create a Contact Form in WordPress (Step by Step)" href="https://www.wpbeginner.com/beginners-guide/how-to-create-a-contact-form-in-wordpress/">create a contact form in WordPress</a> in just a few clicks. It also offers prebuilt form templates and lots of customization options.</p>



<p>For this tutorial, we will use the <a title="WPForms Lite" href="https://wordpress.org/plugins/wpforms-lite/"  rel="noopener">WPForms Lite</a> version because it is free and offers a contact form template.</p>



<p>However, you can also use its premium version to unlock more features. For instance, <a title="WPForms Pro" href="https://wpforms.com/pricing/"  rel="noopener">WPForms Pro</a> offers multiple form templates, more customization options, powerful addons, and lets you collect online payments.</p>



<p>To start, you will first need to install and activate the WPForms Lite plugin. If you need help, then see our step-by-step guide on <a title="Step by Step Guide to Install a WordPress Plugin for Beginners" href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/">how to install a WordPress plugin</a>.</p>



<p>Once the plugin is active, you are now ready to create your contact form. All you have to do is go to <strong>WPForms » Add New</strong> from your WordPress dashboard.</p>



<figure class="wp-block-image size-full"><img width="680" height="271" src="https://www.wpbeginner.com/wp-content/uploads/2022/02/add-a-new-form.png" alt="Add a new form" class="wp-image-113295" title="Add new form in WPForms" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/02/add-a-new-form.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/02/add-a-new-form-300x120.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, WPForms will ask you to enter a name for your form and select a template. </p>



<p>Go ahead and select the &#8216;Simple Contact Form&#8217; template.</p>



<figure class="wp-block-image size-full"><img width="680" height="342" src="https://www.wpbeginner.com/wp-content/uploads/2022/06/simple-contact-us.png" alt="The WPForms Simple Contact template" class="wp-image-129673" title="Give a name and select contact form template" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/06/simple-contact-us.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/06/simple-contact-us-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can add fields in the form using the drag-and-drop builder.</p>



<p>Simply drag the fields you want to add to the form from the options given in the menu on your left. You can also reorder the positions of each field in the form.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2019/10/wpforms-contact-template.png" alt="A contact form template" class="wp-image-134644" title="Drag and drop form fields" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/10/wpforms-contact-template.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/10/wpforms-contact-template-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>WPForms also lets you customize each field in the contact form.</p>



<p>For example, if you click on the Name field, then you&#8217;ll get different options, such as changing its label and format. You can even add a description or mark any field as required.</p>



<figure class="wp-block-image size-full"><img width="680" height="282" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/edit-each-field-in-the-contact-form.png" alt="Edit each field in the contact form" class="wp-image-160121" title="Edit each fields label and format" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/edit-each-field-in-the-contact-form.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/edit-each-field-in-the-contact-form-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Once you are done, go ahead and click the &#8216;Settings&#8217; option to configure the form notification and confirmation.</p>



<p>In the General settings, you can rename the form, change the submit button text, enable <a title="How to Block Contact Form Spam in WordPress (5 Proven Ways)" href="https://www.wpbeginner.com/plugins/how-to-block-contact-form-spam-in-wordpress/">anti-spam protection</a>, and more.</p>



<figure class="wp-block-image size-full"><img width="680" height="337" src="https://www.wpbeginner.com/wp-content/uploads/2022/06/wpforms-settings-general.png" alt="Editing the WPForms settings" class="wp-image-129214" title="Change your form settings" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/06/wpforms-settings-general.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/06/wpforms-settings-general-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can go to the Notifications settings option. By default, the notifications are sent to the <a title="How to Change the WordPress Admin Email (3 Methods)" href="https://www.wpbeginner.com/beginners-guide/how-to-change-the-wordpress-admin-email/">admin email</a> that is set up on your WordPress website.</p>



<p>However, you can send your contact form notification to any email address you want. If you wish to receive notifications on multiple emails, then separate each email with a comma.</p>



<p>For the email subject line, WPForms uses the form name you entered earlier. However, you can edit the text of the subject line to whatever you wish.</p>



<figure class="wp-block-image size-full"><img width="680" height="322" src="https://www.wpbeginner.com/wp-content/uploads/2018/02/edit-notification-settings.png" alt="Edit notification settings" class="wp-image-148655" title="Notification settings in WPForms" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/02/edit-notification-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/02/edit-notification-settings-300x142.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, go ahead and click the Confirmations option.</p>



<p>WPForms will use &#8216;Message&#8217; as the default confirmation type, where your visitors will see a thank you message upon submitting a form.</p>



<figure class="wp-block-image size-full"><img width="680" height="281" src="https://www.wpbeginner.com/wp-content/uploads/2018/02/edit-survey-form-confirmation-settings.png" alt="Edit form confirmation settings" class="wp-image-148651" title="Confirmations settings in WPForms" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/02/edit-survey-form-confirmation-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/02/edit-survey-form-confirmation-settings-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>However, you can change the message type and redirect users to a specific page on your website when they complete a form.</p>



<p>Once you are done creating a contact form, make sure to click the &#8216;Save&#8217; button at the top right corner to save your changes.</p>



<figure class="wp-block-image size-full"><img width="680" height="352" src="https://www.wpbeginner.com/wp-content/uploads/2022/08/embed-your-form.png" alt="Embed your form" class="wp-image-137651" title="Hit the Save button to store your settings" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/08/embed-your-form.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/08/embed-your-form-300x155.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, click the &#8216;Embed&#8217; option in the top corner next to the Save button. </p>



<p>When a new window appears, select the &#8216;use a shortcode&#8217; option.</p>



<figure class="wp-block-image size-full"><img width="680" height="311" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/click-the-use-a-shortcode-link.png" alt="Click the use a shortcode link" class="wp-image-160123" title="Click the use a shortcode link" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/click-the-use-a-shortcode-link.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/click-the-use-a-shortcode-link-300x137.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>WPForms will display a shortcode for your contact form as soon as you click the link. We suggest that you keep this tab/window open as you will need it in the next step, where we&#8217;ll show you how to add your contact form in a popup.</p>



<h4 id="add-contact-form-popup">Add a Contact Form Popup to Your WordPress Site</h4>



<p>To create a contact form popup, you will need a <a title="Which is the Best WordPress Popup Plugin? (Performance + Quality Compared)" href="https://www.wpbeginner.com/plugins/which-is-the-best-wordpress-popup-plugin-performance-quality-compared/">WordPress popup plugin</a>.</p>



<p>We recommend using <a title="OptinMonster" href="https://optinmonster.com/"  rel="noopener">OptinMonster</a> as it is the best lead generation and conversion optimization plugin for WordPress. Over 1.2 million websites use the powerful tool.</p>



<p>For this tutorial, we will use the <a title="OptinMonster Pro version" href="https://optinmonster.com/pricing/"  rel="noopener">OptinMonster Pro version</a>, which includes a clutter-free template and advanced display rules to show the popup.</p>



<p>You will first need to sign up for an account by going to the OptinMonster website. Simply visit the website and click the &#8216;Get OptinMonster Now&#8217; button.</p>



<figure class="wp-block-image size-full"><a href="https://optinmonster.com/"  rel="noopener"><img width="680" height="360" src="https://www.wpbeginner.com/wp-content/uploads/2021/02/optinmonster.png" alt="OptinMonster" class="wp-image-143960" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/02/optinmonster.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/02/optinmonster-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></a></figure>



<p>Next, you will need to install and activate the <a title="free OptinMonster plugin" href="https://wordpress.org/plugins/optinmonster/"  rel="noopener">free OptinMonster plugin</a> on your website. For more details, follow our guide on <a title="How to Install a WordPress Plugin – Step by Step for Beginners" href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/">how to install a WordPress plugin</a>.</p>



<p>After the plugin is active, you will see the setup wizard. Go ahead and click the &#8216;Connect Your Existing Account&#8217; button.</p>



<figure class="wp-block-image size-full"><img width="680" height="330" src="https://www.wpbeginner.com/wp-content/uploads/2011/09/connect-your-existing-account.png" alt="Connect your existing account" class="wp-image-138245" title="Connect your OptinMonster account" srcset="https://www.wpbeginner.com/wp-content/uploads/2011/09/connect-your-existing-account.png 680w, https://www.wpbeginner.com/wp-content/uploads/2011/09/connect-your-existing-account-300x146.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>A popup window will now appear, and OptinMonster will ask to connect to your account. </p>



<p>Simply click the &#8216;Connect To WordPress&#8217; button.</p>



<figure class="wp-block-image size-full"><img width="680" height="188" src="https://www.wpbeginner.com/wp-content/uploads/2019/12/connect-optinmonster-to-wordpress.png" alt="Connect OptinMonster to WordPress" class="wp-image-144574" title="Click the Connect to WordPress button" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/12/connect-optinmonster-to-wordpress.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/12/connect-optinmonster-to-wordpress-300x83.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now that your account is connected, the next thing is to create a new campaign for your contact form popup.</p>



<p>You can start by going to <strong>OptinMonster » Campaigns</strong> and then clicking the &#8216;Create Your First Campaign&#8217; button.</p>



<figure class="wp-block-image size-full"><img width="680" height="210" src="https://www.wpbeginner.com/wp-content/uploads/2013/09/create-first-campaign.png" alt="Create first OptinMonster campaign" class="wp-image-112296" title="Create a new campaign" srcset="https://www.wpbeginner.com/wp-content/uploads/2013/09/create-first-campaign.png 680w, https://www.wpbeginner.com/wp-content/uploads/2013/09/create-first-campaign-300x93.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you will have to select a campaign type. </p>



<p>Since we will create a contact form popup, select &#8216;Popup&#8217; as your Campaign Type.</p>



<figure class="wp-block-image size-full"><img width="680" height="355" src="https://www.wpbeginner.com/wp-content/uploads/2013/10/choose-a-campaign-type-and-template.png" alt="Choose a campaign type and template" class="wp-image-124845" title="Choose popup as campaign type" srcset="https://www.wpbeginner.com/wp-content/uploads/2013/10/choose-a-campaign-type-and-template.png 680w, https://www.wpbeginner.com/wp-content/uploads/2013/10/choose-a-campaign-type-and-template-300x157.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, scroll down to choose a template for your popup. OptinMonster offers over 75 attractive and highly converting designs for your popups.</p>



<p>You can select any template that you like. Next, enter a name for your campaign and click the &#8216;Start Building&#8217; button.</p>



<figure class="wp-block-image size-full"><img width="680" height="351" src="https://www.wpbeginner.com/wp-content/uploads/2019/12/enter-a-name-for-your-campaign.png" alt="Enter a name for your campaign" class="wp-image-144061" title="Enter a name for your campaign" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/12/enter-a-name-for-your-campaign.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/12/enter-a-name-for-your-campaign-300x155.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now using the drag-and-drop builder in OptinMonster, you can edit your popup template. </p>



<p>You will now see different Blocks appear in the menu on your left. Simply head over to the &#8216;WPForms&#8217; block and drag and drop it on your template.</p>



<figure class="wp-block-image size-full"><img width="680" height="323" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/add-the-wpforms-block-in-popup.png" alt="Add the WPForms block in popup" class="wp-image-160162" title="Drag the HTML block to the template" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/add-the-wpforms-block-in-popup.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/add-the-wpforms-block-in-popup-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you&#8217;ll need to click the &#8216;Form Selection&#8217; dropdown menu from the block settings in the left menu and select the &#8216;Add Shortcode Manually&#8217; option. </p>



<p>From here, enter your WPForms contact form shortcode in the block. To find the code, go back to your WPForms embed settings and copy the shortcode.</p>



<figure class="wp-block-image size-full"><img width="680" height="355" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/enter-contact-form-shortcode.png" alt="Enter contact form shortcode" class="wp-image-160163" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/enter-contact-form-shortcode.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/enter-contact-form-shortcode-300x157.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>An important thing to note is that you won&#8217;t see a preview of the contact form in the template when you add the shortcode.</p>



<p>This is normal, as your contact form will appear when the campaign is published.</p>



<figure class="wp-block-image size-full"><img width="680" height="364" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/see-contact-form-shortcode.png" alt="See contact form shortcode" class="wp-image-160164" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/see-contact-form-shortcode.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/see-contact-form-shortcode-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can go to the Display Rules tab at the top to choose when the popup should appear on your website.</p>



<p>By default, OptinMonster will set it to when the time on the page is 5 seconds, and the popup will appear on any page.</p>



<p>However, you can change the display rule settings and select different triggers and targeting options.</p>



<p>We suggest using the <a title="MonsterLink (On Click)" href="https://optinmonster.com/features/monsterlinks/"  rel="noopener">MonsterLink (On Click)</a> targeting. This way, your popup will appear when a visitor clicks a link or a button.</p>



<figure class="wp-block-image size-full"><img width="680" height="359" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/select-monsterlink-display-rule.png" alt="Select MonsterLink display rule" class="wp-image-160165" title="Select MonsterLink targeting" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/select-monsterlink-display-rule.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/select-monsterlink-display-rule-300x158.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can click the &#8216;Copy MonsterLink Code&#8217; button and add it to any text, image, or button on your website. </p>



<p>For more details, you can follow our <a title="Beginner’s Guide on How to Add a Link in WordPress" href="https://www.wpbeginner.com/beginners-guide/beginners-guide-on-how-to-add-a-link-in-wordpress/">beginner&#8217;s guide on how to add a link in WordPress</a>.</p>



<figure class="wp-block-image size-full"><img width="680" height="284" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/cope-the-monsterlink-code.png" alt="Copy the MonsterLink code" class="wp-image-160166" title="Copy your MonsterLink code" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/cope-the-monsterlink-code.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/cope-the-monsterlink-code-300x125.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Your MonsterLink code will look like this in HTML:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
&lt;a href=&quot;https://app.monstercampaigns.com/c/ep6f5qtakxauowbj8097/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Subscribe Now!&lt;/a&gt;
</pre></div>


<p>However, to embed the link on your WordPress blog post or page, you just need the URL from the code.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
https://app.monstercampaigns.com/c/ep6f5qtakxauowbj8097/
</pre></div>


<p>For example, let&#8217;s say you want to add a contact us button on your site. You can start by editing any page or post and go to your <a title="How to Disable Gutenberg and Keep the Classic Editor in WordPress" href="https://www.wpbeginner.com/plugins/how-to-disable-gutenberg-and-keep-the-classic-editor-in-wordpress/">WordPress editor</a>. Next, click the (+) plus sign at the top and add a &#8216;Buttons&#8217; block.</p>



<figure class="wp-block-image size-full"><img width="680" height="331" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/add-a-button-block.png" alt="Add a button block" class="wp-image-160168" title="Add a button block" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/add-a-button-block.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/add-a-button-block-300x146.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can enter a text for your button and then click the link icon. </p>



<p>Now add the MonsterLink URL to your button.</p>



<figure class="wp-block-image size-full"><img width="680" height="327" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/enter-the-monsterlink-in-the-button.png" alt="Enter the MonsterLink in the button" class="wp-image-160169" title="Embed the MonsterLink to a button" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/enter-the-monsterlink-in-the-button.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/enter-the-monsterlink-in-the-button-300x144.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Once you have done that, publish your WordPress post or page. The MonsterLink will now be added to your contact us button.</p>



<p>Next, head back to your OptinMonster campaign to complete the configuration.</p>



<p>After selecting MonsterLink as your target and showing it on any page, you can click the &#8216;Next&#8217; button at the bottom.</p>



<figure class="wp-block-image size-full"><img width="680" height="384" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/complete-display-rules-setup.png" alt="Complete display rules setup" class="wp-image-160170" title="Display rule conditions" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/complete-display-rules-setup.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/complete-display-rules-setup-300x169.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you will see options to change the campaign view type, add a MonsterEffect animation, and play a sound when the popup appears. </p>



<p>Go ahead and click the &#8216;Next&#8217; button when you are satisfied with the settings.</p>



<figure class="wp-block-image size-full"><img width="680" height="354" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/setup-additional-display-rule-settings.png" alt="Setup additional display rule settings" class="wp-image-160171" title="Display rule actions" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/setup-additional-display-rule-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/setup-additional-display-rule-settings-300x156.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, OptinMonster will show a summary of your Display Rule settings.</p>



<p>This helps to ensure you have correctly set up when your campaigns will appear on your website.</p>



<figure class="wp-block-image size-full"><img width="680" height="277" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/view-display-rules-summary.png" alt="View display rules summary" class="wp-image-160172" title="Display rule summary" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/view-display-rules-summary.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/view-display-rules-summary-300x122.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, you are ready to take your campaign live and publish your contact form popup. To do that, go to the &#8216;Publish&#8217; tab at the top.</p>



<p>Next, you can click the &#8216;Preview&#8217; button before publishing your campaign. This will show you a live preview of how your popup will look on your website.</p>



<p>When you are happy with the appearance of your campaign, change the &#8216;Publish Status&#8217; from Draft to Publish.</p>



<figure class="wp-block-image size-full"><img width="680" height="276" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/change-the-publish-status.png" alt="Change the publish status" class="wp-image-160173" title="Publish your contact form popup" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/change-the-publish-status.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/change-the-publish-status-300x122.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can exit the OptinMonster campaign builder and check the status of your campaign from your WordPress dashboard as well.</p>



<p>Simply click the &#8216;Status&#8217; dropdown menu on your right and change the status from Pending to Published. </p>



<figure class="wp-block-image size-full"><img width="680" height="305" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/change-the-campaign-status.png" alt="Change the campaign status" class="wp-image-160174" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/change-the-campaign-status.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/change-the-campaign-status-300x135.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Don&#8217;t forget to save the changes. </p>



<p>Next, go to the contact us button you created earlier with MonsterLink and see the contact form popup in action.</p>



<figure class="wp-block-image size-full"><img width="680" height="354" src="https://www.wpbeginner.com/wp-content/uploads/2014/07/contact-form-popup-preview.png" alt="Contact form popup preview" class="wp-image-160176" title="Live example of contact form plugin" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/07/contact-form-popup-preview.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/07/contact-form-popup-preview-300x156.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>We hope this article helped you learn how to add a contact form popup in WordPress. You may also want to check out our guide on <a title="How to Choose the Best Website Builder in 2021 (Compared)" href="https://www.wpbeginner.com/beginners-guide/how-to-choose-the-best-website-builder/">how to choose the best website builder</a> or our comparison of the <a title="Best Payroll Software for Small Businesses" href="https://www.wpbeginner.com/showcase/best-hr-payroll-software-for-small-businesses/">best payroll software for small businesses</a>.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-a-contact-form-popup-in-wordpress/">How to Add a Contact Form Popup in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-add-a-contact-form-popup-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
