<?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; wpcode</title>
	<atom:link href="http://www.wpwife.com/category/wpcode/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>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 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 Does WordPress Search Work (+ Tips to Make It Better)</title>
		<link>http://www.wpwife.com/woocommerce/how-does-wordpress-search-work-tips-to-make-it-better</link>
		<comments>http://www.wpwife.com/woocommerce/how-does-wordpress-search-work-tips-to-make-it-better#comments</comments>
		<pubDate>Mon, 03 Apr 2023 09:56:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[ajax powered search in wordpress]]></category>
		<category><![CDATA[ajax search]]></category>
		<category><![CDATA[searchwp]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[woocommerce]]></category>
		<category><![CDATA[wordpress search]]></category>
		<category><![CDATA[wordpress search results]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=170362</guid>
		<description><![CDATA[
<p>Do you want to learn how WordPress search works, and how you can make it better? By understanding and improving the built-in WordPress search, you can help visitors find what they&#8217;re looking for. This can get you more conversions while keeping people on your site&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-does-wordpress-search-work/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-does-wordpress-search-work/">How Does WordPress Search Work (+ Tips to Make It Better)</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to learn how WordPress search works, and how you can make it better?</p>



<p>By understanding and improving the built-in WordPress search, you can help visitors find what they&#8217;re looking for. This can get you more conversions while keeping people on your site for longer. </p>



<p>In this article, we’ll look at how the default WordPress search works, and share tips on how to make it better. </p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/how-does-wordpress-search-work-og.png" alt="How does WordPress search work + tips to make It better" class="wp-image-170437" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/how-does-wordpress-search-work-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/how-does-wordpress-search-work-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 id="aioseo-how-does-wordpress-search-work">How Does WordPress Search Work?</h4>



<p>WordPress comes with a search system that will look for content within your website. </p>



<p>How the search bar looks and where it appears will vary depending on your <a href="https://www.wpbeginner.com/showcase/best-wordpress-themes/" title="Most Popular and Best WordPress Themes (Expert Pick)">WordPress theme</a>, but most themes show the search bar in the top right corner.</p>



<figure class="wp-block-image size-full"><img width="680" height="313" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/wordpress-search-bar.png" alt="The built-in WordPress search bar" class="wp-image-170405" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/wordpress-search-bar.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/wordpress-search-bar-300x138.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Note:</strong> If your theme doesn&#8217;t show the WordPress search bar by default, then <a href="https://www.wpbeginner.com/wp-tutorials/how-does-wordpress-search-work/#wordpress-search-faqs" title="WordPress Search FAQs">skip ahead to our FAQs</a>, where we&#8217;ll show you how to add it.</p>



<p>Visitors can type a search query into this field, and WordPress will search:</p>



<ul><li>Page titles</li><li>Page content </li><li>Single-image titles and captions</li><li><a href="https://www.wpbeginner.com/beginners-guide/image-alt-text-vs-image-title-in-wordpress-whats-the-difference/" title="Image Alt Text vs Image Title in WordPress – What’s the Difference?">Image alt text</a></li><li>File names</li></ul>



<p>As you can see, it doesn&#8217;t search widgets, user comments, categories, tags, WooCommerce products, or PDF documents. It also doesn&#8217;t search <a href="https://www.wpbeginner.com/beginners-guide/how-to-create-an-image-gallery-in-wordpress/" title="How to Create an Image Gallery in WordPress (Step by Step)">image gallery</a> titles, captions, or alt text, although you can search this content using a search engine plugin like <a href="https://searchwp.com/"  title="SearchWP - Advanced WordPress Search Plugin" rel="noopener">SearchWP</a>. </p>



<p>WordPress performs this search using the WP_Query class. It will start by displaying any posts that have the search term in the post title, arranged in reverse-chronological order, meaning that the newest entries will be displayed at the top of the results.</p>



<p>After that, it&#8217;ll show any posts that have the matching term in the post content.</p>



<p>For example, imagine you&#8217;ve just published a post about cats titled &#8216;My Favorite Pet&#8217;, and you also have an older post titled &#8216;Best Cat Photos.&#8217; In this case, searching for &#8216;Cat&#8217; will display the older &#8216;Best Cat Photos&#8217; post first, since it has the search term in the title. </p>



<p>This may not a problem for <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog – Beginners Guide (UPDATED)">WordPress blogs</a> or websites that only have small amounts of content. However, this ordering logic will often show inaccurate or confusing results for bigger blogs, <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 stores</a>, or business websites.</p>



<p>The built-in system is also missing some of the features that people expect from modern search engines. This includes autocomplete, live Ajax search, filtering, and spellcheck.</p>



<h4>Why Improve the Default WordPress Search?</h4>



<p>An advanced, fast, and accurate on-site search can help visitors find interesting and relevant content, which will keep them on your website for longer. This can <a href="https://www.wpbeginner.com/beginners-guide/how-to-increase-pageviews-and-reduce-bounce-rate-in-wordpress/" title="How to Increase Pageviews and Reduce Bounce Rate in WordPress">increase pageviews and reduce bounce rate in WordPress</a>.</p>



<p>Since visitors are spending more time on your site, this will send positive signals to the search engines. This can improve your <a href="https://www.wpbeginner.com/wordpress-seo/" title="Ultimate WordPress SEO Guide for Beginners (Step by Step)">WordPress SEO</a>, which means search engines like Google will show your content to more people and drive more visitors to your website.</p>



<p>For more information, please see our guide on <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)">how to increase your blog traffic</a>.</p>



<p>People who are using your site&#8217;s internal search are already highly engaged. They&#8217;re actively looking for specific content, which may mean they&#8217;re ready to take actions such as buying a product, signing up to your <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">WordPress membership site</a>, or <a href="https://www.wpbeginner.com/plugins/5-best-wordpress-appointment-and-booking-plugins/" title="Best WordPress Appointment and Booking Plugins">booking an appointment</a>.</p>



<p>If these people can&#8217;t find what they&#8217;re looking for, they may give up and go to a different website. This means you&#8217;re losing out on visitors who were ready to convert. </p>



<p>A search results page is also an example of personalized content since you&#8217;re showing the visitor results that match their unique search query. By providing personalized content that&#8217;s accurate and helpful, you can improve the visitor experience. Once again, this can encourage them to convert.</p>



<p>Performance is another reason why it&#8217;s a good idea to replace the default WordPress search with a better alternative. </p>



<p>The larger your <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a> gets, the longer it&#8217;ll take WP_Query to scan your database and get the results. This means your site&#8217;s search will get slower, as your website gets bigger.</p>



<h4 id="aioseo-how-to-make-the-wordpress-native-search-better">How to Make the WordPress Native Search Better</h4>



<p>On-site search helps visitors find what they&#8217;re looking for, including products to buy and interesting blogs to read. Since it&#8217;s such an important part of your site, it&#8217;s a bad idea to rely on the limited built-in WordPress search. </p>



<p>With that being said, let&#8217;s see how you can improve the native WordPress search.</p>



<p><strong>Show Instant Results With Live Ajax Search</strong></p>



<p>Live <a href="https://www.wpbeginner.com/glossary/ajax/" title="AJAX">Ajax</a> search adds a dropdown and autocomplete feature that’s common in search engines like Google. </p>



<p>As the user types, live search guesses what they want to search for and then shows them results without even reloading the page.</p>



<figure class="wp-block-image size-full"><img width="680" height="276" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/ajax-live-search.png" alt="How to improve WordPress search with live ajax results" class="wp-image-170406" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/ajax-live-search.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/ajax-live-search-300x122.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This can help visitors find the right content, without having to manually press the &#8216;Search&#8217; button or wait for the page to reload.</p>



<p>The easiest way to <a href="https://www.wpbeginner.com/plugins/how-to-add-live-ajax-search-to-your-wordpress-site/" title="How to Add Live Ajax Search to Your WordPress Site (The Easy Way)">add Ajax live search to WordPress</a> is using the free <a href="https://wordpress.org/plugins/searchwp-live-ajax-search/"  rel="noopener" title="The free SearchWP Live Ajax Lite Search plugin">SearchWP Live Ajax Lite Search plugin</a>. It enables instant search automatically and there are no settings for you to configure, so it&#8217;s very easy to set up.</p>



<p>The first thing you need to do is install and activate the plugin. 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>Upon activation, the default WordPress search form will automatically use the Ajax live search feature. If you visit your site and start typing into the search bar, then you’ll see the instant search in action.</p>



<p><strong>Change the Default Search URL Slug</strong></p>



<p>By default, WordPress search URLs typically look something like this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
http://example.com/?s=search-term
</pre></div>


<p>The extra ?s= characters make this URL more difficult to read and understand, which can confuse visitors who are trying to find their way around your site.</p>



<p>Even worse, these URLs aren&#8217;t optimized for search engines which can stop them from correctly indexing your site&#8217;s contents. </p>



<p>The easiest way to change these URLs is by <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)">adding custom code to WordPress</a> using a plugin such as <a href="https://wordpress.org/plugins/insert-headers-and-footers"  rel="noopener" title="WPCode Free Code Snippet Plugin for WordPress">WPCode</a><a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">.</a> </p>



<p>You can go ahead and use the following custom code to replace the ‘/?s=search-term’ characters with ‘search.’ Your slug will look something like this when finished: http://example.com/search/wordpress</p>



<p>To use something other than ‘search’ in your URL, simply customize the code snippet below.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
function wpb_change_search_url() {
    if ( is_search() &amp;&amp; ! empty( $_GET&#91;'s'] ) ) {
        wp_redirect( home_url( &quot;/search/&quot; ) . urlencode( get_query_var( 's' ) ) );
        exit();
    }
}
add_action( 'template_redirect', 'wpb_change_search_url' );
</pre></div>


<p>For detailed instructions on how to insert this code to your WordPress website, please see our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-change-the-default-search-url-slug-in-wordpress/" title="How to Change the Default Search URL Slug in WordPress">how to change the default search URL slug in WordPress</a>. </p>



<p><strong>Make PDF Files Searchable in WordPress</strong></p>



<p>By <a href="https://www.wpbeginner.com/beginners-guide/how-to-upload-pdf-files-to-your-wordpress-site/" title="How to Upload PDF Files to Your WordPress Site">uploading PDFs to your WordPress website</a>, you can share information about your services and products in a format that works on all devices. They&#8217;re also perfect for offering your visitors <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>, user manuals, menus, and more.</p>



<p>However, WordPress only searches the contents of its database by default, so it will only look at the title and description of your PDF files, and not their contents. As a result, your visitors may struggle to find the best PDF for their search query. </p>



<p>The good news is that you can use a <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 ">custom search plugin</a> to improve the default WordPress search experience. If your PDFs are unencrypted, then the right search plugin will index the contents and metadata of your PDFs and add them to the search results.</p>



<p>For step-by-step instructions, please see our guide on <a href="https://www.wpbeginner.com/plugins/how-to-add-pdf-indexing-and-searching-in-wordpress/" title="How to Add PDF Indexing and Searching in WordPress">how to add PDF indexing and searching in WordPress</a>. </p>



<p><strong>Add a Search By Category Feature to WordPress</strong></p>



<p>If you have multiple categories of content on your website, then you might want to let users restrict their search to a specific category. This can help visitors find the right content, faster.</p>



<figure class="wp-block-image size-full"><img width="680" height="190" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/wordpress-category-search.png" alt="An example of search by category on a WordPress website" class="wp-image-170407" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/wordpress-category-search.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/wordpress-category-search-300x84.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For example, if you have an online store then it often makes sense to let customers search within a particular product category.</p>



<p>If you run a membership site, then you might use search by category to help visitors find other members, groups, forums, <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 courses</a>, and other specific kinds of content. For more information, please see our guide on <a href="https://www.wpbeginner.com/plugins/how-to-search-by-category-in-wordpress/" title="How to Search By Category in WordPress (Best Method)">how to add search by category in WordPress</a>.</p>



<p><strong>Make a Smart WooCommerce Product Search</strong></p>



<p>WooCommerce has its own built-in search, but it doesn&#8217;t look for matches in product attributes, reviews, or product descriptions. This omission can stop shoppers from finding products they want to buy on your online store, so you get fewer sales.</p>



<figure class="wp-block-image size-full"><img width="680" height="310" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/woocommerce-no-results.png" alt="The built-in WooCommerce search feature" class="wp-image-170408" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/woocommerce-no-results.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/woocommerce-no-results-300x137.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Luckily, there are some excellent <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 plugins</a> that can show more helpful search results, and fetch them faster. To learn more, please see our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-make-a-smart-woocommerce-product-search/" title="How to Make a Smart WooCommerce Product Search">how to make a smart WooCommerce product search</a>. </p>



<p>To get even more sales, you may want to fine-tune the kind of products WooCommerce includes in its search results. For example, you might only show products that are on sale or come with free shipping.</p>



<p>To learn more, please see our guide on <a href="https://www.wpbeginner.com/plugins/how-to-customize-woocommerce-product-search-results-page/" title="How to Customize WooCommerce Product Search Results Page">how to customize WooCommerce product search results page</a>.</p>



<p><strong>Create a Search Form for Custom Post Types</strong></p>



<p>Custom post types allow you to go beyond posts and pages and create different content types for your website. Custom post types can have different <a href="https://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/" title="WordPress Custom Fields 101: Tips, Tricks, and Hacks">custom fields</a> and their own <a href="https://www.wpbeginner.com/wp-tutorials/create-custom-taxonomies-wordpress/" title="How to Create Custom Taxonomies in WordPress">custom category structure</a>.</p>



<p>For example, if you run a movie review website, then you would probably want to create a &#8216;movie reviews&#8217; post type that has fields for the director, release date, and more.</p>



<p>At WPBeginner, we use custom post types for our <a href="https://www.wpbeginner.com/glossary/" title="The WPBeginner Glossary page">Glossary</a> section to keep it separate from our blog posts.</p>



<figure class="wp-block-image size-full"><img width="680" height="360" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/wpbeginner-glossary-search.png" alt="How to improve your WordPress search with searchable categories" class="wp-image-170409" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/wpbeginner-glossary-search.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/wpbeginner-glossary-search-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you use <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-custom-post-types-to-your-main-wordpress-rss-feed/" title="How to Add Custom Post Types to Your Main WordPress RSS Feed">custom post types</a>, then you may want to create a form that allows visitors to search only that content.</p>



<p>For example, we also have a form that only searches WPBeginner&#8217;s <a href="https://www.wpbeginner.com/plugins/best-wordpress-coupon-code-plugins-for-your-online-store/" title="Best WordPress Coupon Code Plugins for Your Online Store">coupon codes</a>.</p>



<figure class="wp-block-image size-full"><img width="680" height="226" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/wpbeginner-coupon-search.png" alt="Searching coupons and deals on the WPBeginner website" class="wp-image-170411" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/wpbeginner-coupon-search.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/wpbeginner-coupon-search-300x100.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This can help visitors find the right content faster, even when you have lots of different content types. For step-by-step instructions, check out our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-advanced-search-form-in-wordpress-for-custom-post-types/" title="How to Create Advanced Search Form in WordPress for Custom Post Types">how to create advanced search forms in WordPress for custom post types</a>. </p>



<p>You can also <a href="https://www.wpbeginner.com/plugins/how-to-make-custom-fields-searchable-in-wordpress/" title="How to Make Custom Fields Searchable in WordPress">make custom fields searchable in WordPress</a>, which is ideal if you&#8217;ve added extra metadata to your pages and posts. </p>



<p><strong>Exclude Content From WordPress search</strong></p>



<p>By default, the built-in WordPress search will include all posts and pages in its search results.</p>



<p>However, you may want to exclude certain pages and posts from the search results. For example, if you’re running a <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">WordPress membership website</a> or selling online courses, then you’ll typically want to exclude your premium content from public search results.</p>



<p>If you’re running an online store, then you may want to hide content like your account page, checkout page, and thank you page. To help you out, we&#8217;ve created a guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-exclude-pages-from-wordpress-search-results/" title="How to Exclude Pages from WordPress Search Results (Step by Step)">how to exclude pages from the WordPress search results</a>. </p>



<p>Do you want to exclude posts, authors, custom post types, categories, tags, or even custom taxonomies? Then you can take a look at our guide on how to <a href="https://www.wpbeginner.com/plugins/how-to-exclude-specific-pages-authors-and-more-from-wordpress-search/" title="How to Exclude Specific Pages, Authors, and More from WordPress Search">exclude specific pages, authors, and more from WordPress search</a>. </p>



<h4 id="wordpress-search-faqs">WordPress Search FAQs</h4>



<p>In this guide, we&#8217;ve explored how the default WordPress search works and shared lots of tips on how to improve it. </p>



<p>However, you may still have some questions about this important feature. That said, here are some of the most frequently asked questions about WordPress search. </p>



<p><strong>How Do I Improve WordPress Search?</strong></p>



<p>The best way to improve the built-in WordPress search is by using <a href="https://searchwp.com/"  title="SearchWP - Advanced WordPress Search Plugin" rel="noopener">SearchWP</a>. </p>



<p>SearchWP is the&nbsp;<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 custom search plugin</a>&nbsp;for WordPress and allows visitors to search any content on your site including documents, WooCommerce products, custom fields, tags, comments, and more.</p>



<p>It also lets you customize the WordPress search algorithm, so you can control exactly where the content appears in the search results.</p>



<p>For more information, please see our 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</a>. </p>



<p><strong>Does WordPress Search Include Tags?</strong></p>



<p>By default, WordPress search doesn&#8217;t include tags. The easiest way to make tags searchable is by using a custom search plugin like <a href="https://searchwp.com/"  title="SearchWP - Advanced WordPress Search Plugin" rel="noopener">SearchWP</a>.</p>



<p>SearchWP also has a relevancy slider, so you can control exactly how much tags influence where an item appears in the search results. </p>



<p><strong>How Do I Add Search to My WordPress Theme?</strong></p>



<p>If your theme doesn&#8217;t have a built-in search form, then we recommend <a href="https://www.wpbeginner.com/plugins/how-to-add-a-search-bar-to-wordpress-menu-step-by-step/" title="How to Add a Search Bar to WordPress Menu (Step by Step)">adding a search bar to the WordPress navigation menu</a>. </p>



<p>Since the main navigation menu typically appears across your entire site, visitors will be able to search for pages, posts, products, and more, from any page of your website.</p>



<figure class="wp-block-image size-full"><img width="680" height="228" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/search-navigation-menu.png" alt="An example of a search bar, in a navigation menu" class="wp-image-170365" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/search-navigation-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/search-navigation-menu-300x101.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you’re 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-based theme</a> such as <a href="https://www.wpbeginner.com/refer/themeisle-hestia-pro/"  rel="noopener nofollow" title="The ThemeIsle Hestia Pro WordPress theme">ThemeIsle&#8217;s Hestia Pro</a> or Twenty Twenty-Three, then you can add a search bar to your theme using the full-site editor (FSE). </p>



<p>To do this, go to <strong>Appearance <strong>»</strong></strong> <strong>Editor</strong> in the WordPress dashboard.</p>



<figure class="wp-block-image size-full"><img width="680" height="270" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/opening-fse-editor.png" alt="Opening the WordPress full site editor (FSE)" class="wp-image-170366" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/opening-fse-editor.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/opening-fse-editor-300x119.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>By default, the editor will show your theme&#8217;s home template. If you want to add the search bar to a different template, then click on the small arrow icon in the toolbar.</p>



<p>Then, select ‘Browse all templates.’</p>



<figure class="wp-block-image size-full"><img width="680" height="300" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/browse-fse-templates.png" alt="How to browse all FSE templates in WordPress" class="wp-image-170367" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/browse-fse-templates.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/browse-fse-templates-300x132.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You’ll now see all the templates that make up your WordPress theme. Simply find the template where you want to add the search bar, and then click on its title.</p>



<p>For example, if you wanted to <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-search-form-in-your-post-with-a-wordpress-search-shortcode/" title="How to Add a Search Form in a WordPress Post">add a search form in your WordPress posts</a> then you&#8217;d select the &#8216;Single&#8217; template.</p>



<figure class="wp-block-image size-full"><img width="680" height="290" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/fse-single-template.png" alt="How to add the search bar to a single template in WordPress" class="wp-image-170368" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/fse-single-template.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/fse-single-template-300x128.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You will now see this template in the full-site editor.</p>



<p>To go ahead and add a search bar, click on the blue ‘+’ icon.</p>



<figure class="wp-block-image size-full"><img width="680" height="359" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/single-template-fse.png" alt="Adding widgets to a single template in WordPress" class="wp-image-170369" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/single-template-fse.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/single-template-fse-300x158.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>In the popup that appears, type in ‘Search’ to find the right block.</p>



<p>You can then drag the block to the location where you want to show the search bar.</p>



<figure class="wp-block-image size-full"><img width="680" height="320" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/search-block-fse.png" alt="Adding a search block to a block-enabled theme template" class="wp-image-170370" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/search-block-fse.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/search-block-fse-300x141.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To customize the block title or placeholder text, simply type it into the search block where it says &#8216;search&#8217; or &#8216;optional placeholder.&#8217;</p>



<p>When you’re happy with how the block looks, click on ‘Save’ to make the search bar live.</p>



<figure class="wp-block-image size-full"><img width="680" height="348" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/saving-search-widget.png" alt="Publishing a block-enabled template with a search bar" class="wp-image-170371" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/saving-search-widget.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/saving-search-widget-300x154.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>How Do I Add Search to a WordPress Page or Post?</strong></p>



<p>You can add a search bar to a specific page or post using the built-in Search block. </p>



<p>This is a good choice if you want to control exactly where the search bar appears on every page and post, or you only need to offer search on specific areas of your website. </p>



<figure class="wp-block-image size-full"><img width="680" height="370" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/search-wordpress-post.png" alt="How to improve the default WordPress search" class="wp-image-170413" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/search-wordpress-post.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/search-wordpress-post-300x163.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To get started, simply open the page where you want to add a search form and then click on the + icon.</p>



<p>In the popup that appears, type ‘Search’ to find the right block. Once you click on the Search block, it will add the block to your page.</p>



<figure class="wp-block-image size-full"><img width="680" height="345" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/adding-search-block.png" alt="Adding the Search block to a WordPress page or post" class="wp-image-170414" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/adding-search-block.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/adding-search-block-300x152.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>By default, the block uses ‘Search’ for both its label and the button text. </p>



<p>This will be visible to visitors, so you may want to replace it with something more descriptive by typing into the text fields.</p>



<figure class="wp-block-image size-full"><img width="680" height="312" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/customizing-search-block.png" alt="Customizing the WordPress search block" class="wp-image-170435" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/customizing-search-block.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/customizing-search-block-300x138.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can also add some placeholder text to the search bar. This text will disappear automatically when the visitor starts typing.</p>



<p>To add a placeholder, simply click on ‘Optional placeholder…’ and then start typing.</p>



<figure class="wp-block-image size-full"><img width="680" height="223" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/customizing-search-placeholder.png" alt="How to improve the WordPress search " class="wp-image-170436" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/customizing-search-placeholder.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/customizing-search-placeholder-300x98.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you’re happy with how the Search block looks, you can go ahead and either publish or update the post.</p>



<p>We hope this tutorial helped you learn how WordPress search works, and how to make it better. You may also want to learn <a href="https://www.wpbeginner.com/beginners-guide/make-money-online/" title="Proven Ways to Make Money Online Blogging with WordPress">how to make money online blogging with WordPress</a>, or check out our list 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 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-does-wordpress-search-work/">How Does WordPress Search Work (+ Tips to Make It Better)</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/woocommerce/how-does-wordpress-search-work-tips-to-make-it-better/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Fade Images on Mouseover in WordPress (Simple &amp; Easy)</title>
		<link>http://www.wpwife.com/themes/how-to-fade-images-on-mouseover-in-wordpress-simple-easy</link>
		<comments>http://www.wpwife.com/themes/how-to-fade-images-on-mouseover-in-wordpress-simple-easy#comments</comments>
		<pubDate>Tue, 28 Mar 2023 07:40:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[fade image effect]]></category>
		<category><![CDATA[fade image on mouseover]]></category>
		<category><![CDATA[image hover effect]]></category>
		<category><![CDATA[seedprod]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=19555</guid>
		<description><![CDATA[
<p>Do you want to fade images on mouseover in WordPress? A simple fade-in or fade-out animation when a user moves their mouse over an image can make your site more engaging. It also encourages visitors to interact with your content, which can keep them on&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-themes/fade-images-mouseover-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-themes/fade-images-mouseover-wordpress/">How to Fade Images on Mouseover in WordPress (Simple &#38; Easy)</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to fade images on mouseover in WordPress?</p>



<p>A simple fade-in or fade-out animation when a user moves their mouse over an image can make your site more engaging. It also encourages visitors to interact with your content, which can keep them on your site for longer. </p>



<p>In this article, we’ll show you how to add a fade image effect on mouseover in WordPress.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/fade-images-on-mouseover-in-wordpress-og.png" alt="How to fade images on mouseover in WordPress" class="wp-image-171343" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/fade-images-on-mouseover-in-wordpress-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/fade-images-on-mouseover-in-wordpress-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4>Why Fade Images on Mouseover in WordPress?</h4>



<p>Animations are an easy way to make your website more interesting, and can even draw the visitor&#8217;s attention toward your page&#8217;s most important content, such as your <a href="https://www.wpbeginner.com/beginners-guide/how-to-make-a-logo-for-your-website-simple-guide-for-beginners/" title="How to Make a Logo for Your Website (Simple Guide for Beginners)">website logo</a> or a <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</a>.</p>



<p>There are lots of different ways to <a href="https://www.wpbeginner.com/plugins/how-to-easily-add-css-animations-in-wordpress/" title="How to Easily Add CSS Animations in WordPress">use CSS animations in WordPress</a>, but adding a hover effect to images is particularly effective. The fade animation means your images will slowly appear or disappear when visitors hover over them. </p>



<figure class="wp-block-image size-full"><img width="600" height="316" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/fade-animation-wordpress.gif" alt="Adding a fade animation to WordPress" class="wp-image-171410"/></figure>



<p>This encourages people to interact with your images, and can even add a storytelling element to the page. For example, different images might fade in and out as the visitor moves around the page.</p>



<p>Unlike some other animations, the fade image on mouseover effect is subtle so it won’t negatively impact the visitor’s reading experience or any <a title="How to Optimize Images for Web Performance without Losing Quality" href="https://www.wpbeginner.com/beginners-guide/speed-wordpress-save-images-optimized-web/">image optimization</a> you&#8217;ve done.</p>



<p>With that said, let’s show you how to add a fade to your images on mouseover in WordPress.</p>



<h4>Adding Image Fade on Mouseover to all WordPress Images</h4>



<p>The easiest way to add a fade effect to all your images is by using <a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">WPCode</a>. This free plugin allows you 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)">easily add custom code in WordPress</a> without having to edit your theme files. </p>



<p>With WPCode, even beginners can edit their website’s code without risking mistakes and typos that can cause many&nbsp;<a href="https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" title="Most Common WordPress Errors and How to Fix Them">common WordPress errors</a>.</p>



<p>The first thing you need to do is 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, see our step-by-step guide on&nbsp;<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, head over to&nbsp;<strong>Code Snippets » Add Snippet</strong>.</p>



<figure class="wp-block-image size-full"><img width="680" height="327" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/adding-code-wpcode.png" alt="Adding custom code to your WordPress website with WPCode" class="wp-image-171338" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/adding-code-wpcode.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/adding-code-wpcode-300x144.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Here, simply hover your mouse over ‘Add Your Custom Code.’</p>



<p>When it appears, click on ‘Use snippet.’</p>



<figure class="wp-block-image size-full"><img width="680" height="380" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/creating-new-snippet.png" alt="Creating a custom CSS snippet on your WordPress website" class="wp-image-171339" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/creating-new-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/creating-new-snippet-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To start, type in a title for the custom code snippet. This can be anything that helps you identify the snippet in the WordPress dashboard.</p>



<p>We need to <a title="How to Easily Add Custom CSS to Your WordPress Site" href="https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/">add custom CSS to WordPress</a>, so open the &#8216;Code Type&#8217; dropdown and select &#8216;CSS Snippet.&#8217; </p>



<figure class="wp-block-image size-full"><img width="680" height="327" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/css-snippet-fade-.png" alt="Add a fade on mouseover animation to images using WPCode" class="wp-image-171370" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/css-snippet-fade-.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/css-snippet-fade--300x144.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>In the code editor, add the following code snippet:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
.post img:hover{
opacity:0.6;
filter:alpha(opacity=60); /* For IE8 and earlier */
-webkit-transition: all 2s ease;
-moz-transition: all 2s ease;
-ms-transition: all 2s ease;
-o-transition: all 2s ease;
transition: all 2s ease;
}
</pre></div>


<p>This code snippet will fade each image for 2 seconds when the user hovers their mouse over it. To make the image fade slower, simply replace ‘2s ease’ with a higher number. If you want to make the picture fade faster, then use &#8216;1s ease&#8217; or smaller. </p>



<p>You can also make the ‘opacity’ higher or lower by changing the <code>opacity:0.6</code> line. </p>



<p>If you change any of these numbers then make sure you change them across all the properties (webkit, moz, ms, and o), so the fade effect looks the same on every browser. </p>



<p>When you’re happy with the snippet, scroll to the ‘Insertion’ section. WPCode can add your code to different locations, such as after every post, frontend only, or admin only.</p>



<p>To add a fade effect to all your images, click on ‘Auto Insert.&#8217; Then, open the ‘Location’ dropdown menu and choose ‘Site Wide Header.’</p>



<figure class="wp-block-image size-full"><img width="680" height="301" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/auto-insert-css.png" alt="Inserting custom CSS across your WordPress website" class="wp-image-171342" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/auto-insert-css.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/auto-insert-css-300x133.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you’re ready to scroll to the top of the screen and click on the ‘Inactive’ toggle, so it changes to ‘Active.’</p>



<p>Finally, click on ‘Save Snippet’ to make the CSS snippet live.</p>



<figure class="wp-block-image size-full"><img width="680" height="378" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/saving-fade-animation.png" alt="Adding a fade effect to images using CSS" class="wp-image-171371" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/saving-fade-animation.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/saving-fade-animation-300x167.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, if you hover the mouse over any image on your <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a>, you&#8217;ll see the fade effect in action. </p>



<h4>Adding Image Fade Animations to Individual Pages</h4>



<p>Using a fade effect for every single image can become distracting, especially if you&#8217;re running a <a href="https://www.wpbeginner.com/showcase/best-free-wordpress-photography-themes/" title="Best Free WordPress Photography Themes (Expert Pick)">photography website</a>, a stock photo store, or any other site that has lots of images. </p>



<p>With that in mind, you may want to use fade effects on a specific page or post only. </p>



<p>The good news is that WPCode allows you to create custom shortcodes. You can place this shortcode on any page, and WordPress will show fade effects on that page only. </p>



<p>To do this, simply create a custom code snippet and add the fade animation code following the same process described above. Then, click on the &#8216;Save snippet&#8217; button.</p>



<figure class="wp-block-image size-full"><img width="680" height="373" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/saving-fade-animations.png" alt="Fade images on mouseover in WordPress using custom code" class="wp-image-171372" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/saving-fade-animations.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/saving-fade-animations-300x165.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, scroll to the &#8216;Insertion&#8217; section, but this time select &#8216;Shortcode.&#8217; </p>



<p>This creates a shortcode that you can add to any page, post, or widget-ready area.</p>



<figure class="wp-block-image size-full"><img width="680" height="333" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/wpcode-creating-shortcode.png" alt="Creating a shortcode in WPCode" class="wp-image-171373" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/wpcode-creating-shortcode.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/wpcode-creating-shortcode-300x147.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, go ahead and make the snippet live following the same process described above.</p>



<p>You can now go to any page, post, or widget-ready area and create a new &#8216;Shortcode&#8217; block. Then, simply paste the WPCode shortcode into that block.</p>



<figure class="wp-block-image size-full"><img width="680" height="280" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/fade-animation-shortcode.png" alt="How to create fade animations for images using shortcode" class="wp-image-171375" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/fade-animation-shortcode.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/fade-animation-shortcode-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For more information on how to place the shortcode, please see our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/" title="How to Add a Shortcode in WordPress (Beginner’s Guide)">how to add a shortcode in WordPress</a>. </p>



<p>With that done, either click on the &#8216;Update&#8217; or &#8216;Publish&#8217; button to make the shortcode live. You can then visit that page, page, or widget-ready area to see the fade on mouseover effect. </p>



<h4>Adding Image Fade Animations to <strong>Featured Images</strong></h4>



<p>Another option is to add fade animations to your <a title="How to Add Featured Images or Post Thumbnails in WordPress" href="https://www.wpbeginner.com/beginners-guide/how-to-add-featured-image-or-post-thumbnails-in-wordpress/">featured images or post thumbnails</a>. These are the post&#8217;s primary image and they often appear next to the heading on your home page, <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-an-archives-page-in-wordpress/" title="How to Create a Custom Archives Page in WordPress">archive pages</a>, and other important areas of your website.</p>



<p>By fading featured images on mouseover, you can make your site more eye-catching and engaging, without animating every single image across your <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog – Beginners Guide (UPDATED)">WordPress blog</a> or website. </p>



<p>To add a fade animation to your post thumbnails, simply create a new custom code snippet following the same process described above.</p>



<figure class="wp-block-image size-full"><img width="680" height="311" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/fade-featured-images.png" alt="Adding a fade on mouseover effect to individual images" class="wp-image-171377" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/fade-featured-images.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/fade-featured-images-300x137.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>However, this time add the following code to the editor: </p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
img.wp-post-image:hover{
opacity:0.6;
filter:alpha(opacity=60); /* For IE8 and earlier */
-webkit-transition: all 2s ease;
-moz-transition: all 2s ease;
-ms-transition: all 2s ease;
-o-transition: all 2s ease;
transition: all 2s ease;
}
</pre></div>


<p>After that, scroll to the &#8216;Insertion&#8217; box and select ‘Auto Insert.&#8217; Then, open the ‘Location’ dropdown menu and choose ‘Site Wide Header.’</p>



<figure class="wp-block-image size-full"><img width="680" height="194" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/auto-insert-css-1.png" alt="Adding an animation to images on mouseover" class="wp-image-171378" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/auto-insert-css-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/auto-insert-css-1-300x86.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can go ahead and make the code snippet live using the same process described above.</p>



<p>Now, you can hover the mouse over any featured image to see the fade animation in action.</p>



<p>If you want to add even more image mouseover effects, then see our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-add-image-hover-effects-in-wordpress/" title="How to Add Image Hover Effects in WordPress (Step by Step)">how to add image hover effects in WordPress</a>.</p>



<h4>Bonus: Animate Any Image, Text, Button, and More </h4>



<p>Fade effects are a fun way to make images more interesting, but there are lots more ways to use animations in WordPress. For example, you might use <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-flipbox-overlays-and-hovers-in-wordpress/" title="How to Create Flipbox Overlays and Hovers in WordPress">flipbox animations</a> to reveal text when a visitor hovers over an image, or use zoom effects so users can explore a picture in more detail.</p>



<p>If you want to try different effects, then <a href="https://www.seedprod.com/"  title="SeedProd - Best Drag &amp; Drop WordPress Website Builder" rel="noopener">SeedProd</a> has over 40 animations that you can add to images, text, buttons, videos, and more. You can even animate entire sections and columns with just a few clicks.</p>



<p>Inside the SeedProd editor, simply click on the content you want to animate, and then select the &#8216;Advanced&#8217; tab in the left-hand menu.</p>



<figure class="wp-block-image size-full"><img width="680" height="346" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/seedprod-advanced-tab.png" alt="Adding fade animations using SeedProd" class="wp-image-171379" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/seedprod-advanced-tab.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/seedprod-advanced-tab-300x153.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can then go ahead and click to expand the &#8216;Animation Effects&#8217; section.</p>



<p>After that, simply choose an animation from the &#8216;Entrance Animation&#8217; dropdown, including a wide range of different fade effects.</p>



<figure class="wp-block-image size-full"><img width="680" height="348" src="https://www.wpbeginner.com/wp-content/uploads/2014/02/entrance-animation-seedprod.png" alt="Adding animations to WordPress using SeedProd" class="wp-image-171380" srcset="https://www.wpbeginner.com/wp-content/uploads/2014/02/entrance-animation-seedprod.png 680w, https://www.wpbeginner.com/wp-content/uploads/2014/02/entrance-animation-seedprod-300x154.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For more information, please see our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-a-landing-page-with-wordpress/" title="How to Create a Landing Page With WordPress">how to create a landing page with WordPress</a>.</p>



<p>We hope this article helped you learn how to fade images on mouseover in WordPress. You may also want to see our guide on <a href="https://www.wpbeginner.com/showcase/best-web-design-software-compared/" title="How to Choose the Best Web Design Software (Compared)">how to choose the best web design software</a>, and our expert picks of the <a href="https://www.wpbeginner.com/best-wordpress-popup-plugin/" title="Best WordPress Popup Plugins (Performance Compared)">best WordPress popup plugins. </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-themes/fade-images-mouseover-wordpress/">How to Fade Images on Mouseover in WordPress (Simple & Easy)</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/themes/how-to-fade-images-on-mouseover-in-wordpress-simple-easy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>WordPress Conversion Tracking Made Simple: A Step-by-Step Guide</title>
		<link>http://www.wpwife.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide</link>
		<comments>http://www.wpwife.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide#comments</comments>
		<pubDate>Mon, 13 Mar 2023 17:17:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[Beginners Guide]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[conversion rate optimization]]></category>
		<category><![CDATA[conversion tracking]]></category>
		<category><![CDATA[ecommerce conversion optimization]]></category>
		<category><![CDATA[google ads conversion tracking]]></category>
		<category><![CDATA[google analytics conversion tracking]]></category>
		<category><![CDATA[monsterinsights]]></category>
		<category><![CDATA[optinmonster]]></category>
		<category><![CDATA[woocommerce conversion tracking]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=78149</guid>
		<description><![CDATA[
<p>Do you want to add conversion tracking features to your WordPress website? Conversion tracking helps you measure the impact of your marketing efforts and makes it easier to understand how users interact with your website. In this guide, we will show you how to add&#8230;&#160;<strong><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/">WordPress Conversion Tracking Made Simple: A Step-by-Step Guide</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to add conversion tracking features to your WordPress website?</p>



<p>Conversion tracking helps you measure the impact of your marketing efforts and makes it easier to understand how users interact with your website.</p>



<p>In this guide, we will show you how to add conversion tracking in WordPress and track your conversions like a total pro.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/ultimate-guide-to-wordpress-conversion-tracking-made-simple.png" alt="Ultimate Guide to conversion tracking in WordPress" class="wp-image-172189" title="How to set up conversion tracking in WordPress and WooCommerce" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/ultimate-guide-to-wordpress-conversion-tracking-made-simple.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/ultimate-guide-to-wordpress-conversion-tracking-made-simple-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This is a comprehensive WordPress conversion tracking guide, so we have divided it up into different sections. Here is what we&#8217;ll cover in this guide:</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#whatisconversiontracking">What is Conversion Tracking?</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#whytrackconversions">Why is Conversion Tracking Important?</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#conversiontools">Tools You Need to Setup Conversion Tracking in WordPress</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#gaconversiontracking">Setting Up Conversion Tracking in Google Analytics</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#ecommercetracking">Turning on Enhanced Ecommerce Conversion Tracking</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#ecommercereports">Viewing eCommerce Conversion Tracking Reports</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#formconversiontracking">Turning on Form Conversion Tracking in Google Analytics</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#setttingupgoals">Setting Up Goals for Conversion Tracking in Universal Analytics</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#aioseo-setting-up-events-in-google-analytics-4">Setting Up Events in Google Analytics 4</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#googleadsconversion">Google Ads Conversion Tracking in WordPress</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#utmparameters">Use UTM Parameters for Conversion Tracking in Google Analytics</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#fbconversiontracking">Setting Up Facebook Conversion Tracking in WordPress</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#twitterconversiontracking">Setting Up Twitter Conversion Tracking in WordPress</a></li><li><a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/#optimizeconversions">Optimizing Conversion Rates to Boost Sales</a></li></ul></div>



<h4 id="whatisconversiontracking">What is Conversion Tracking?</h4>



<p>Conversion tracking is the ability to track and measure the success of your various marketing efforts.</p>



<p>Depending on your business, the conversion is the desired action you want users to perform on your website.</p>



<ul><li>For an <a title="How to Start an Online Store in 2020 (Step by Step)" href="https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/">online store</a> or eCommerce website, a conversion could be a successful purchase.</li><li>For a news/blog site, the conversion could be a successful subscription to the <a title="How to Create an Email Newsletter the RIGHT WAY (Step by Step)" href="https://www.wpbeginner.com/beginners-guide/how-to-create-an-email-newsletter/">email newsletter</a>.</li><li>For a professional services website, a conversion could be a user filling up 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/">contact form</a>.</li></ul>



<p>Simply put, conversion tracking shows you how many of your website visitors successfully perform the desired action.</p>



<h4 id="whytrackconversions">Why is Conversion Tracking Important?</h4>



<p>Conversion tracking is important because it helps you make data-driven decisions to grow your business.</p>



<p>For instance, it shows that users from a specific traffic source are more likely to convert. You can then focus your attention on <a title="How to Increase Your Blog Traffic – The Easy Way (27 Proven Tips)" href="https://www.wpbeginner.com/beginners-guide/how-to-increase-your-blog-traffic/">getting more traffic</a> from that particular source.</p>



<p>Conversion tracking also helps you uncover the users who are not converting so well.</p>



<p>For instance, you may learn that users open the contact page, but many abandon it before submitting the form. You can then make your form easier by removing unnecessary fields, making it conversational, changing colors, setting up partial form submission, etc.</p>



<p>Basically, you need conversion tracking to measure your success and failures and then improve upon them to grow your online business.</p>



<p>That being said, let&#8217;s take a look at what tools we&#8217;ll need to set up conversion tracking in WordPress.</p>



<h4 id="conversiontools">Tools You Need to Setup Conversion Tracking in WordPress</h4>



<p>Most conversion optimization experts rely heavily on <a title="Google Analytics" href="https://analytics.google.com/"  rel="noopener nofollow">Google Analytics</a>. It is a free tool provided by Google that helps you track your website traffic.</p>



<p>It shows where your users are coming from, and what they do while on your website.</p>



<p>If you are running Google AdWords, Facebook Ads, and Twitter Ads to promote your business, then you&#8217;ll need to set up those for conversion tracking.</p>



<p>This may sound complicated, but you&#8217;ll only have to set it up once, and we&#8217;ll walk you through every step of the way.</p>



<p>Ready? Let&#8217;s get started.</p>



<h4 id="gaconversiontracking">Setting Up Conversion Tracking in Google Analytics</h4>



<p>First, you need to install Google Analytics on your website.</p>



<p>The easiest way to do this is by using <a title="MonsterInsights" href="https://www.monsterinsights.com/"  rel="noopener">MonsterInsights</a>. It is the <a href="https://www.wpbeginner.com/showcase/7-best-analytics-solutions-for-wordpress-users/" title="11 Best Analytics Solutions for WordPress Users">best Google Analytics plugin</a> on the market that comes with enhanced eCommerce tracking, form tracking, and other conversion tracking tools built-in.</p>



<p>You&#8217;ll need the PRO version of the plugin to access eCommerce and other conversion tracking features. For basic tracking, the <a title="MonsterInsights Lite" href="https://wordpress.org/plugins/google-analytics-for-wordpress/"  rel="noopener nofollow">free version</a> works as well.</p>



<p>Simply install and activate the <a title="MonsterInsights" href="https://www.monsterinsights.com/"  rel="noopener">MonsterInsights</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&#8217;ll see the setup wizard. Go ahead and click the &#8216;Launch the Wizard&#8217; button.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2009/08/launch-setup-wizard.png" alt="Launch setup wizard" class="wp-image-108509" title="Launch MonsterInsights set up wizard" srcset="https://www.wpbeginner.com/wp-content/uploads/2009/08/launch-setup-wizard.png 680w, https://www.wpbeginner.com/wp-content/uploads/2009/08/launch-setup-wizard-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can follow the on-screen instructions to connect your WordPress site to Google Analytics using MonsterInsights. For more details, see our guide on <a title="How to Install Google Analytics in WordPress for Beginners" href="https://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/">how to install Google Analytics in WordPress</a>.</p>



<p>With MonsterInsights, you can also easily create a <a href="https://www.wpbeginner.com/beginners-guide/ultimate-guide-to-ga4-in-wordpress-for-beginners/" title="The Ultimate Guide to GA4 in WordPress for Beginners">Google Analytics 4 (GA4)</a> property. GA4 is the latest version of the famous analytics platform, and it will replace the old version on July 1, 2023. </p>



<p>To learn more, please see our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-switch-to-google-analytics-4-in-wordpress/" title="How to Switch to Google Analytics 4 in WordPress (The RIGHT Way)">how to switch to Google Analytics 4 in WordPress</a>. </p>



<p>Now that you have installed Google Analytics, let&#8217;s set up conversion tracking on your website.</p>



<h4 id="ecommercetracking">Turning on Enhanced Ecommerce Conversion Tracking</h4>



<p>Ecommerce tracking helps you see which products are doing well on your site, which products are being looked at but not purchased, and what&#8217;s bringing you the most revenue.</p>



<p>Google Analytics comes with enhanced eCommerce tracking, which works for most eCommerce websites, including <a title="WooCommerce Made Simple: A Step-by-Step Tutorial [+ Resources]" href="https://www.wpbeginner.com/wp-tutorials/woocommerce-tutorial-ultimate-guide/">WooCommerce</a>, <a href="https://easydigitaldownloads.com/"  title="Easy Digital Downloads - WordPress eCommerce plugin">Easy Digital Downloads</a>, <a rel="nofollow noopener"  title="MemberPress" href="https://www.wpbeginner.com/refer/memberpress/" data-shortcode="true">MemberPress</a>, and more. However, you&#8217;ll need to enable it for your website manually.</p>



<p><strong>Step 1. Turn on eCommerce Tracking in MonsterInsights</strong></p>



<p>MonsterInsights comes with an eCommerce addon that lets you properly set up <a href="https://www.wpbeginner.com/plugins/how-to-properly-set-up-ecommerce-tracking-in-wordpress/" title="How To Properly Set Up eCommerce Tracking In WordPress">eCommerce conversion tracking</a> in Google Analytics.</p>



<p>It works with all <a title="7 Best Free Ecommerce Platforms for 2020 (Compared)" href="https://www.wpbeginner.com/showcase/best-free-ecommerce-platforms/">top eCommerce platforms</a> for WordPress, including WooCommerce, <a href="https://www.wpbeginner.com/refer/memberpress/"  rel="noopener nofollow" title="MemberPress">MemberPress</a>, LifterLMS, Easy Digital Downloads, and more.</p>



<p>First, you need to visit the <strong>Insights » Addons</strong> page to install and activate the eCommerce addon.</p>



<figure class="wp-block-image size-full"><img width="680" height="373" src="https://www.wpbeginner.com/wp-content/uploads/2021/12/install-the-ecommerce-addon.png" alt="Install the eCommerce addon" class="wp-image-107054" title="Install eCommerce addon" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/12/install-the-ecommerce-addon.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/12/install-the-ecommerce-addon-300x165.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Step 2. Turn on Enhanced Ecommerce in Google Analytics</strong></p>



<p>Next, you need to enable enhanced eCommerce tracking in your Google Analytics account. Go to your Google Analytics dashboard and select your website.</p>



<p>From here, you need to click on the Admin button located at the bottom left corner of the screen.</p>



<figure class="wp-block-image size-full"><img width="680" height="362" src="https://www.wpbeginner.com/wp-content/uploads/2019/12/go-to-admin-settings.png" alt="Go to admin settings" class="wp-image-153879" title="Switch to Google Analytics admin" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/12/go-to-admin-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/12/go-to-admin-settings-300x160.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you&#8217;ll see different Google Analytics settings. </p>



<p>Under the &#8216;View&#8217; column, click the ‘Ecommerce Settings’ link.</p>



<figure class="wp-block-image size-full"><img width="680" height="258" src="https://www.wpbeginner.com/wp-content/uploads/2021/12/ecommerce-settings.png" alt="Ecommerce settings" class="wp-image-107081" title="Google Analytics eCommerce settings" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/12/ecommerce-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/12/ecommerce-settings-300x114.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you need to turn on the ‘Enable Ecommerce’ and ‘Enable Enhanced Ecommerce Reporting’ options.</p>



<p>Don&#8217;t forget to click the &#8216;Save&#8217; button when you&#8217;re done. </p>



<figure class="wp-block-image size-full"><img width="680" height="357" src="https://www.wpbeginner.com/wp-content/uploads/2021/12/enable-ecommerce-and-enhanced-ecommerce-reporting.png" alt="Enable ecommerce and enhanced ecommerce reporting" class="wp-image-107083" title="Enable eCommerce tracking in Google Analytics" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/12/enable-ecommerce-and-enhanced-ecommerce-reporting.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/12/enable-ecommerce-and-enhanced-ecommerce-reporting-300x158.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Google Analytics will now turn on the eCommerce reporting feature for your account.</p>



<p>Afterward, you can return to your WordPress dashboard and visit the <strong>Insights » Settings</strong> page. From here, switch to the eCommerce tab. </p>



<figure class="wp-block-image size-full"><img width="680" height="435" src="https://www.wpbeginner.com/wp-content/uploads/2021/12/use-enhanced-ecommerce-option.png" alt="Use enhanced ecommerce option" class="wp-image-107086" title="Turn on enhanced eCommerce tracking in MonsterInsights" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/12/use-enhanced-ecommerce-option.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/12/use-enhanced-ecommerce-option-300x192.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>MonsterInsights will automatically detect your eCommerce software and enable advanced eCommerce tracking for your store.</p>


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

<p><strong>Note:</strong> the manual process for adding eCommerce conversion tracking has a lot of room for errors, so we strongly recommend using a plugin like MonsterInsights. </p>

</div>


<h4 id="ecommercereports">Viewing eCommerce Conversion Tracking Reports</h4>



<p>Now that you have enabled eCommerce conversion tracking on your website. Let&#8217;s see how to view these reports and use them to make informed decisions about your business.</p>



<p><strong>Ecommerce Conversion Reports in MonsterInsights</strong></p>



<p>Simply go to the <strong>Insights » Reports</strong> page inside the WordPress admin area and then switch to the eCommerce tab.</p>



<figure class="wp-block-image size-full"><img width="680" height="375" src="https://www.wpbeginner.com/wp-content/uploads/2017/11/ecommerce-report-in-monsterinsights.png" alt="Ecommerce report in MonsterInsights" class="wp-image-142337" title="Ecommerce reports in MonsterInsights" srcset="https://www.wpbeginner.com/wp-content/uploads/2017/11/ecommerce-report-in-monsterinsights.png 680w, https://www.wpbeginner.com/wp-content/uploads/2017/11/ecommerce-report-in-monsterinsights-300x165.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>At the top, you’ll see your most important metrics, like the conversion rate, transactions, revenue, and average order value.</p>



<p>Below that, you will see a list of your top products with quantity, sale percentage, and total revenue. This shows you which products are doing well in your store.</p>



<p>Next, you’ll see your top conversion sources with the number of visits, conversion share, and revenue. You can see which sources are bringing you more revenue and which traffic sources are not very effective.</p>



<figure class="wp-block-image size-full"><img width="680" height="265" src="https://www.wpbeginner.com/wp-content/uploads/2021/12/top-conversion-sources.png" alt="Top conversion sources" class="wp-image-107115" title="Conversion sources" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/12/top-conversion-sources.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/12/top-conversion-sources-300x117.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>MonsterInsights will also show you shopper behavior reports with the number of times products were added to and removed from the cart.</p>



<p>That&#8217;s not all the data. You can drill down these reports even further inside Google Analytics.</p>



<p><strong>Ecommerce Conversion Reports in Google Analytics</strong></p>



<p>In Google Analytics 4, you can head to <strong>Reports » Monetization » Overview</strong> to view the report. </p>



<figure class="wp-block-image size-full"><img width="680" height="339" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-ecommerce-report-in-ga4.png" alt="View ecommerce report in GA4" class="wp-image-170971" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-ecommerce-report-in-ga4.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/view-ecommerce-report-in-ga4-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Here, you can see the total revenue your online store is making. Besides that, there are more metrics you can track, like items purchased, first-time purchasers, and total purchases. </p>



<p>On the other hand, you can visit your Universal Analytics dashboard and click on the <strong>Conversions » Ecommerce</strong> from the left column.</p>



<figure class="wp-block-image size-full"><img width="680" height="313" src="https://www.wpbeginner.com/wp-content/uploads/2020/01/ecommerce-report-in-analytics.png" alt="Ecommerce report in analytics" class="wp-image-151326" title="Google Analytics eComerce Conversions report" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/01/ecommerce-report-in-analytics.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/01/ecommerce-report-in-analytics-300x138.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>The overview section offers the most important stats, such as revenue, conversion rate, transactions, and average order value.</p>



<p>You can further drill down to view different reports. For example, you can switch to shopping and checkout behavior reports to see how users reach the conversion page. You can also figure out what stopped them at the last minute from completing the transaction.</p>



<p>You may also want to see our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-setup-woocommerce-conversion-tracking/" title="How to Setup WooCommerce Conversion Tracking (Step by Step)">how to set up WooCommerce conversion tracking</a>.</p>



<h4 id="formconversiontracking">Turning on Form Conversion Tracking in Google Analytics</h4>



<p>Not all websites use an eCommerce platform to conduct business. For instance, a restaurant website may use an <a title="How to Create an Online Order Form in WordPress (Step by Step)" href="https://www.wpbeginner.com/plugins/how-to-create-an-online-order-form-in-wordpress/">order delivery form</a>, or a salon may use a booking form.</p>



<p>Many businesses use contact forms to capture leads from their website. A lot of news and blogs use an <a href="https://www.wpbeginner.com/beginners-guide/how-to-create-an-email-newsletter/" title="How to Create an Email Newsletter the RIGHT WAY (Step by Step)">email newsletter</a> to convert website visitors into subscribers.</p>



<p>To track them, you need to enable form conversion tracking in Google Analytics.</p>



<p>MonsterInsights comes with a Forms addon that lets you easily track form conversions on your WordPress site. It works with all popular<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 form plugins</a>, including <a title="WPForms" href="https://wpforms.com/"  rel="noopener">WPForms</a>, <a href="https://www.wpbeginner.com/refer/formidable-pro/"  rel="noopener nofollow" title="Formidable Pro">Formidable Forms</a>, <a rel="nofollow noopener"  title="Gravity Forms" href="https://www.wpbeginner.com/refer/gravityforms/" data-shortcode="true">Gravity Forms</a>, Contact Form 7, and more.</p>



<p>Simply go to the <strong>Insights » Addons</strong> page. Scroll down to the &#8216;Forms&#8217; addon, and then click on the Install button.</p>



<figure class="wp-block-image size-full"><img width="680" height="278" src="https://www.wpbeginner.com/wp-content/uploads/2022/03/install-forms-addon.png" alt="Install forms addon" class="wp-image-116267" title="Install forms addon" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/03/install-forms-addon.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/03/install-forms-addon-300x123.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Upon activation, you need to visit the <strong>Insights » Settings</strong> page and switch to the &#8216;Conversions&#8217; tab.</p>



<p>MonsterInsights will automatically detect your WordPress form plugin and will also start tracking miscellaneous WordPress forms on your site.</p>



<figure class="wp-block-image size-full"><img width="680" height="348" src="https://www.wpbeginner.com/wp-content/uploads/2022/03/monsterinsights-settings-conversions-tab.png" alt="MonsterInsights settings - conversions tab" class="wp-image-116328" title="Form conversion settings" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/03/monsterinsights-settings-conversions-tab.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/03/monsterinsights-settings-conversions-tab-300x154.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Viewing Your Form Conversion Reports</strong></p>



<p>You can now view your form conversion reports inside your WordPress admin area.</p>



<p>Head over to the <strong>Insights » Reports</strong> page and switch to the &#8216;Forms&#8217; tab.</p>



<figure class="wp-block-image size-full"><img width="680" height="276" src="https://www.wpbeginner.com/wp-content/uploads/2021/11/forms-report.png" alt="Forms report" class="wp-image-106277" title="Forms conversion reports" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/11/forms-report.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/11/forms-report-300x122.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You’ll see a list of forms on your website with their impressions, conversion, and conversion rates.</p>



<p>This helps in tracking how each WordPress form is performing. You can optimize low-converting forms while increasing the visibility of high-converting forms.</p>



<p>For more details, please see our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-set-up-wordpress-form-tracking-in-google-analytics/" title="How to Set Up WordPress Form Tracking in Google Analytics">how to set up form tracking in Google Analytics</a>.</p>



<h4 id="setttingupgoals">Setting Up Goals for Conversion Tracking in Universal Analytics</h4>



<p>So far, we have covered how to track eCommerce and form conversions.</p>



<p>What if you wanted to manually set up conversion goals and track them in Google Analytics?</p>



<p>For instance, you may want to consider users visiting a specific page as a conversion. Since it is not a form submission or an eCommerce transaction, it will not appear as a conversion in your reports.</p>



<p>Universal Analytics allows you to create your own goals and track their conversion. </p>



<p>However, an important thing to note is that Google Analytics 4 doesn&#8217;t have goals anymore. It is one of the <a href="https://www.wpbeginner.com/beginners-guide/ga4-vs-universal-analytics/" title="GA4 vs Universal Analytics: What’s the Difference">major differences</a> you&#8217;ll see between the new and old versions. </p>



<p>That said, let&#8217;s see how to set them up in Universal Analytics and track them on your website.</p>



<p>Go to the Google Analytics dashboard and click the ‘Admin’ tab on the bottom left. Then, in the View column, click on Goals.</p>



<figure class="wp-block-image size-full"><img width="680" height="288" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/click-on-goals.PNG" alt="Click on goals" class="wp-image-162563" title="Goals in Google Analytics admin view" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/click-on-goals.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/click-on-goals-300x127.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, you will need to create a new goal. </p>



<p>Simply click the &#8216;+ New Goal&#8217; button to set up a new goal.</p>



<figure class="wp-block-image size-full"><img width="680" height="261" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/add-a-new-goal.PNG" alt="Add a new goal" class="wp-image-162564" title="Google Analytics new goal" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/add-a-new-goal.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/add-a-new-goal-300x115.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you will need to select the goal type. Universal Analytics offers 4 types:</p>



<ul><li><strong>Destination:</strong> This tracks whether a visitor went to a specific page. This could be a thank you page or any conversion page on your site.</li><li><strong>Duration:</strong> This tracks how long a visitor spends on your website. More time spent on a website means more engagement.</li><li><strong>Pages/Screens per session:</strong> This tracks how many pages an average visitor looks at on your site.</li><li><strong>Event:</strong> This can track all sorts of things, like button clicks, video plays, and downloads. It requires a bit more setup than the other options.</li></ul>



<p>Destination and Event types are the most commonly used goal types for most businesses.</p>



<p>For this tutorial, we will create a &#8216;Destination&#8217; goal to track visitors who view our thank you page after completing a form.</p>



<p>First, provide a name for your Goal. It needs to be something meaningful so that you can easily identify it in your Google Analytics reports. </p>



<p>After that, choose &#8216;Destination&#8217; as your goal type and click the Continue button.</p>



<figure class="wp-block-image size-full"><img width="680" height="383" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/enter-goal-description.PNG" alt="Enter goal description" class="wp-image-162568" title="Choose goal type" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/enter-goal-description.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/enter-goal-description-300x169.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now you can simply provide the last part of the URL you want to track as the destination.</p>



<p>For instance, if your page is:<br>https://www.example.com/thank-you-for-booking/</p>



<p>Then you should enter the following:<br>/thank-you-for-booking/</p>



<figure class="wp-block-image size-full"><img width="680" height="339" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/add-goal-details.PNG" alt="Add goal details" class="wp-image-162569" title="gadestinationnaddress" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/add-goal-details.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/add-goal-details-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Below that, you can optionally add value for the conversion. This makes sense if people are completing a payment form or if you know how much each lead is worth to you on average.</p>



<p>If you want to track a funnel, such as a customer moving through a checkout process, then you can also do this as part of the destination goal. This can help you pinpoint areas you might want to improve.</p>



<p>Once you’re happy with your goal, click the Save button. You should then see your goal listed in a table. You can edit it, switch it off and on, or create more goals here.</p>



<figure class="wp-block-image size-full"><img width="680" height="163" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-new-goal.PNG" alt="View new goal" class="wp-image-162570" title="Goals in Google Analytics" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-new-goal.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/view-new-goal-300x72.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Viewing Your Goal Conversions in Universal Analytics</strong></p>



<p>Now that you have created your goal, allow Google Analytics to collect some data. After that, you can view your Goal Conversion report under the Google Analytics dashboard.</p>



<p>Simply, go to the <strong>Conversions » Goals</strong> and then click on Overview.</p>



<figure class="wp-block-image size-full"><img width="680" height="326" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-goal-conversions-in-analytics.PNG" alt="View goal conversions in analytics" class="wp-image-162571" title="Tracking goal conversions in Google Analytics" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-goal-conversions-in-analytics.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/view-goal-conversions-in-analytics-300x144.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Like all Google Analytics reports, you can drill down to view visitor journeys and get deeper insights.</p>



<p>For more details, see our complete guide on <a title="How to Set Up Google Analytics Goals for Your WordPress Site" href="https://www.wpbeginner.com/wp-tutorials/how-to-set-up-google-analytics-goals-for-your-wordpress-site/">setting up goals in Google Analytics</a>.</p>



<h4 id="aioseo-setting-up-events-in-google-analytics-4">Setting Up Events in Google Analytics 4</h4>



<p>Google Analytics 4 replaces goals with events. You can manually configure events to track different user interactions in GA4. </p>



<p>First, you&#8217;ll need to go to the &#8216;Admin&#8217; settings from your GA4 property. </p>



<figure class="wp-block-image size-full"><img width="680" height="362" src="https://www.wpbeginner.com/wp-content/uploads/2019/12/go-to-admin-settings.png" alt="Go to admin settings" class="wp-image-153879" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/12/go-to-admin-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/12/go-to-admin-settings-300x160.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you will need to navigate to the Property column. </p>



<p>After that, simply click the &#8216;Event&#8217;s option.</p>



<figure class="wp-block-image size-full"><img width="680" height="353" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/go-to-events-settings.PNG" alt="Go to events settings" class="wp-image-162603" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/go-to-events-settings.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/go-to-events-settings-300x156.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You are now ready to create a new event in GA4. </p>



<p>Simply click the &#8216;Create event&#8217; button to get started. </p>



<figure class="wp-block-image size-full"><img width="680" height="258" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/create-a-new-event.PNG" alt="Create a new event" class="wp-image-162605" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/create-a-new-event.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/create-a-new-event-300x114.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You should now see a new window slide in from the right. This is where all your custom events will be listed. </p>



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



<figure class="wp-block-image size-full"><img width="680" height="172" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/create-a-custom-event.PNG" alt="Create a custom event" class="wp-image-162607" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/create-a-custom-event.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/create-a-custom-event-300x76.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you can enter details of your new event. </p>



<p>Google Analytics 4 already has pre-built events. Simply click the Custom event name dropdown menu and choose an event. For example, we&#8217;ll select the &#8216;file_download&#8217; event for this tutorial. </p>



<figure class="wp-block-image size-full"><img width="680" height="334" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/select-an-event-name.PNG" alt="Select an event name" class="wp-image-162608" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/select-an-event-name.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/select-an-event-name-300x147.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>GA4 will automatically enter the specific Parameter and Operator for your custom event. </p>



<p>Next, you can enter a value for your event. For instance, we will enter &#8216;.pdf&#8217; since we want to <a href="https://www.wpbeginner.com/plugins/how-manage-track-control-file-downloads-wordpress/" title="How to Manage, Track, and Control File Downloads in WordPress">track PDF file downloads</a>. However, you can enter any specific word you use to organize filenames on your site. </p>



<figure class="wp-block-image size-full"><img width="680" height="316" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/enter-event-parameter-operator-and-value.PNG" alt="Enter event parameter operator and value" class="wp-image-162610" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/enter-event-parameter-operator-and-value.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/enter-event-parameter-operator-and-value-300x139.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After entering these details, click the &#8216;Create&#8217; button at the top.</p>



<p>You will now see your new custom event listed under the Custom events area in GA4. </p>



<figure class="wp-block-image size-full"><img width="680" height="186" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-custom-event.PNG" alt="View custom event" class="wp-image-162613" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-custom-event.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/view-custom-event-300x82.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p> <strong>Viewing Your Event Conversions in Google Analytics 4</strong></p>



<p>Now that you&#8217;ve created a custom event in GA4, the next step is to view the conversions. </p>



<p>To do that, simply head to&nbsp;<strong>Reports » Engagement » Event: Event name</strong> from the menu on your left and view the report. </p>



<figure class="wp-block-image size-full"><img width="680" height="306" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-custom-events-data.PNG" alt="View custom events data" class="wp-image-162615" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-custom-events-data.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/view-custom-events-data-300x135.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now repeat this step to track other custom events. </p>



<p>That said, an easier way of tracking user behavior is by using <a href="https://www.monsterinsights.com/"  title="MonsterInsights - WordPress Analytics Plugin" rel="noopener">MonsterInsights</a>. The plugin automatically sets up different events in Google Analytics. </p>



<p>This way, you don&#8217;t have to manually configure events or worry about messing up your tracking. </p>



<h4 id="googleadsconversion">Google Ads Conversion Tracking in WordPress</h4>



<p>If you run Google Ads (formerly Google AdWords) to bring targeted traffic to your website, then you may want to track those conversions.</p>



<p>Setting up is a bit complicated because it requires adding code to your website. However, with MonsterInsights, you can easily set up Google Ads conversion tracking without editing code or hiring a developer.  </p>



<p>First, you can go to <strong>Insights » Addons</strong>&nbsp;from your WordPress dashboard and install the Ads addon. </p>



<figure class="wp-block-image size-full"><img width="680" height="367" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/install-the-ads-addon.PNG" alt="Install the ads addon" class="wp-image-162178" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/install-the-ads-addon.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/install-the-ads-addon-300x162.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Once you install the addon, it should automatically activate. </p>



<p>From here, you can go to <strong>Insights » Settings</strong> and head to the Publisher tab. </p>



<figure class="wp-block-image size-full"><img width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/publisher-settings.PNG" alt="Publisher settings in MonsterInsights" class="wp-image-162217" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/publisher-settings.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/publisher-settings-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can scroll down to the &#8216;Ads Tracking&#8217; section. </p>



<p>Here, you will need to enter the Conversion ID, which will be in this format: AW-123456789.</p>



<figure class="wp-block-image size-full"><img width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-conversion-ID-and-label.PNG" alt="Enter conversion ID and label" class="wp-image-162219" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-conversion-ID-and-label.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-conversion-ID-and-label-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you&#8217;re tracking Google Ads on an eCommerce store, then you can also enter the Conversion Label. </p>



<p>To find the Conversion ID and Conversion Label, you&#8217;ll need to go to your Google Ads dashboard and create a conversion action. </p>



<p>For more details, please follow our step-by-step guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-set-up-google-ads-conversion-tracking-in-wordpress/" title="How to Set Up Google Ads Conversion Tracking in WordPress">how to set up Google Ads conversion tracking in WordPress</a>.</p>



<p><strong>Viewing Google Ads Conversion Reports in Google Analytics 4</strong> </p>



<p>Your Google Ads conversion tracking will now appear in your Google Analytics reports. </p>



<p>In Google Analytics 4, you can head to <strong>Acquisition » Acquisition overview</strong> and then navigate to the &#8216;Session Google Ads&#8217; report. </p>



<p>After that, click the &#8216;View Google Ads campaigns&#8217; option at the bottom of the report. </p>



<figure class="wp-block-image size-full"><img width="680" height="253" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-session-google-ads-campaign-report.PNG" alt="View session google ads campaign report" class="wp-image-162291" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-session-google-ads-campaign-report.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/view-session-google-ads-campaign-report-300x112.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will expand the report and show more details about your ad campaigns. </p>



<p>You can see the total number of users, sessions, Google Ads clicks, and more. </p>



<figure class="wp-block-image size-full"><img width="680" height="304" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-detailed-stats-for-each-campaign.PNG" alt="View detailed stats for each campaign" class="wp-image-162293" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-detailed-stats-for-each-campaign.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/view-detailed-stats-for-each-campaign-300x134.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Viewing Google Ads Conversion Reports in Universal Analytics</strong>  </p>



<p>For Universal Analytics, you can open your website property.</p>



<p>After that, view the Google Ads report by going to the<strong> Acquisition » Google Ads » Campaigns</strong> section. Here, you can see conversions for all your paid campaigns. </p>



<figure class="wp-block-image size-full"><img width="680" height="304" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-google-ads-report-in-UA.PNG" alt="View Google ads report in UA" class="wp-image-162303" title="Tracking paid keywords in Google Analytics" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-google-ads-report-in-UA.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/view-google-ads-report-in-UA-300x134.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 id="utmparameters">Use UTM Parameters for Conversion Tracking in Google Analytics</h4>



<p>UTM parameters are special tags you can add to URLs to pass important information to Google Analytics.</p>



<p>For instance, if you want to track users coming from a particular ad, then you can add UTM parameters to your ad URL like this:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
https://yourwebsite.com/special-offer/?utm_source=ads&amp;utm_medium=cpc&amp;utm_content=bfad
</pre></div>


<p>You can also use UTM parameters anywhere you want to share your URLs. </p>



<p>For instance, your email newsletter, Tweets, SMS campaigns, and more.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
https://yourwebsite.com/special-offer/?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=jan_sale
</pre></div>


<p>MonsterInsights makes it super easy to build URLs with UTM parameters. Simply head over to the <strong>Insights » Tools</strong> page and select the &#8216;URL Builder&#8217; tab.</p>



<figure class="wp-block-image size-full"><img width="680" height="347" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/go-to-tools-in-monsterinsights.png" alt="Go to tools in MonsterInsights" class="wp-image-162001" title="MonsterInsights URL builder tool" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/go-to-tools-in-monsterinsights.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/go-to-tools-in-monsterinsights-300x153.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Simply enter the UTM parameters you want to use, and it will automatically generate the URL, which you can then use in your campaigns.</p>



<p>For instance, you can enter a campaign source, like a newsletter or Google, which tells you where the users are coming from. After that, you can define a campaign medium, such as emails or banner ads, and enter a campaign name. </p>



<figure class="wp-block-image size-full"><img width="680" height="317" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/enter-campaign-source-and-medium.png" alt="Enter campaign source and medium" class="wp-image-162005" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/enter-campaign-source-and-medium.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/enter-campaign-source-and-medium-300x140.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>MonsterInsights will also give you additional options to add campaign terms and content. </p>



<p>This is useful if you&#8217;re split-testing different emails or paid campaigns. </p>



<p>For creating a custom URL, you can leave these options blank. </p>



<figure class="wp-block-image size-full"><img width="680" height="331" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/additonal-options-in-url-builder.png" alt="Additional options in URL builder" class="wp-image-162006" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/additonal-options-in-url-builder.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/additonal-options-in-url-builder-300x146.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can scroll down to the bottom to see your custom URL. </p>



<p>Go ahead and use the link for campaigns and track conversions on your website. </p>



<figure class="wp-block-image size-full"><img width="550" height="165" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/monsterinsights-url-to-use.png" alt="The URL created by the MonsterInsights URL builder tool, with UTM parameters in place" class="wp-image-76898" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/monsterinsights-url-to-use.png 550w, https://www.wpbeginner.com/wp-content/uploads/2020/04/monsterinsights-url-to-use-300x90.png 300w" sizes="(max-width: 550px) 100vw, 550px" /></figure>



<p><strong>Viewing UTM Parameter Reports in Google Analytics 4</strong></p>



<p>Now that you&#8217;ve added UTM parameters to a URL, you can track its performance in Google Analytics. </p>



<p>First, log in to your GA4 account. After that, head to <strong><strong>Reports » Acquisition » Traffic Acquisition</strong>&nbsp;</strong>from the menu on your left. </p>



<figure class="wp-block-image size-full"><img width="680" height="318" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-traffic-acquisition-report.png" alt="View traffic acquisition report" class="wp-image-162016" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-traffic-acquisition-report.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/view-traffic-acquisition-report-300x140.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You should now see traffic from different sources on your website, such as organic search, email, display, and more. </p>



<p>You can use the search bar to filter the traffic source for your custom campaign. For example, if you&#8217;re <a href="https://www.wpbeginner.com/wp-tutorials/how-to-set-up-email-newsletter-tracking-in-google-analytics/" title="How to Set Up Email Newsletter Tracking in Google Analytics">tracking conversions from a newsletter</a>, then you can look up &#8216;Email&#8217; in the report. </p>



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



<p>After that, you further drill down and filter your traffic. </p>



<p>Simply click the &#8216;+&#8217; button under the search bar. </p>



<figure class="wp-block-image size-full"><img width="680" height="204" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/click-the-plus-button.png" alt="Click the plus button" class="wp-image-162019" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/click-the-plus-button.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/click-the-plus-button-300x90.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>GA4 will then show different options to filter your traffic. </p>



<p>You can select <strong>Traffic source » Session source</strong> from the dropdown list. </p>



<figure class="wp-block-image size-full"><img width="680" height="321" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/select-session-source.png" alt="Select session source" class="wp-image-162020" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/select-session-source.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/select-session-source-300x142.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, Google Analytics will list your email campaigns. </p>



<p>You can now see which campaign performs best and gets the most conversions. </p>



<figure class="wp-block-image size-full"><img width="680" height="238" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-newsletter-url-report-in-ga4.png" alt="View newsletter URL report in ga4" class="wp-image-162021" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-newsletter-url-report-in-ga4.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/view-newsletter-url-report-in-ga4-300x105.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p> <strong>Viewing UTM Parameter Reports in Universal Analytics </strong></p>



<p>In Universal Analytics, you can track the conversions of your campaigns under your Google Analytics dashboard. </p>



<p>Simply switch to the <strong>Acquisition » Campaigns » All Campaigns</strong> report.</p>



<figure class="wp-block-image size-full"><img width="680" height="338" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/go-to-all-campaigns.png" alt="Go to all campaigns" class="wp-image-162013" title="Google Analytics campaign tracking" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/go-to-all-campaigns.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/go-to-all-campaigns-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Your campaigns will appear here. </p>



<p>You can click on any of them to drill down further.</p>



<figure class="wp-block-image size-full"><img width="680" height="214" src="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-newsletter-tracking-report.png" alt="View newsletter tracking report" class="wp-image-162014" title="Viewing your campaign data in Google Analytics" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/04/view-newsletter-tracking-report.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/04/view-newsletter-tracking-report-300x94.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 id="fbconversiontracking">Setting Up Facebook Conversion Tracking in WordPress</h4>



<p>Facebook is the largest social media website on the planet, with billions of active users. This is why Facebook ads are sometimes the easiest way to reach a niche audience.</p>



<p>Now, if you are running <a href="https://www.wpbeginner.com/plugins/how-to-create-a-facebook-ads-landing-page-in-wordpress/" title="How to Create a Facebook Ads Landing Page in WordPress">Facebook ads</a>, then you may want to see how well your ads are doing by implementing conversion tracking for your Facebook ads.</p>



<p>Usually, you&#8217;d need to add a code snippet to your WordPress website to track Facebook conversions. However, <a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">WPCode</a> makes it very simple, and you can simply enter the Facebook Pixel ID to set up tracking.</p>



<p>First, you&#8217;ll need to log in to Facebook and visit the <a href="https://business.facebook.com/latest/home?asset_id=100605036120448"  rel="noreferrer noopener nofollow" title="Meta Business Suite">Meta Business Suite</a>. Then, click on <strong>All Tools » Events Manager</strong>.</p>



<figure class="wp-block-image size-full"><img width="680" height="296" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/go-to-event-manager.png" alt="Go to event manager" class="wp-image-172176" title="Facebook event manager" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/go-to-event-manager.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/go-to-event-manager-300x131.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you need to add a data source to the Event Manager. </p>



<p>Simply click the ‘+ Connect to Data Sources’ button in the left-hand menu.</p>



<figure class="wp-block-image size-full"><img width="680" height="300" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/connect-data-source-1.png" alt="Connect data source" class="wp-image-172181" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/connect-data-source-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/connect-data-source-1-300x132.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You should now see different options to connect your new data source. </p>



<p>Go ahead and select the ‘Web’ option and click the &#8216;Connect&#8217; button to continue. </p>



<figure class="wp-block-image size-full"><img width="680" height="301" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/connect-new-data-source.png" alt="Connect new data source" class="wp-image-172177" title="Facebook data source" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/connect-new-data-source.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/connect-new-data-source-300x133.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, enter a name for your pixel.</p>



<p>Once that&#8217;s done, you can click the &#8216;Create Pixel&#8217; button. </p>



<figure class="wp-block-image size-full"><img width="680" height="375" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/create-a-facebook-pixel.png" alt="Create a Facebook pixel" class="wp-image-172178" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/create-a-facebook-pixel.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/create-a-facebook-pixel-300x165.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you need to choose how to connect your website and send activity to Facebook.</p>



<p>At the bottom, you will see the Facebook Pixel. Go ahead and copy the pixel ID. </p>



<figure class="wp-block-image size-full"><img width="680" height="375" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/choose-how-to-connect-to-your-site.png" alt="Choose how to connect to your site" class="wp-image-172182" title="Set up pixel" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/choose-how-to-connect-to-your-site.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/choose-how-to-connect-to-your-site-300x165.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can return to your WordPress website dashboard and install and activate the <a href="https://wordpress.org/plugins/insert-headers-and-footers"  title="WPCode Free Code Snippet Plugin for WordPress">WPCode Free Plugin</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>Note that you&#8217;ll need at least the WPCode Plus plan because it includes the Conversion Pixel Addon. However, there is also a <a href="https://wordpress.org/plugins/insert-headers-and-footers"  title="WPCode Free Code Snippet Plugin for WordPress" rel="noopener">free version of WPCode</a> you can use to get started.</p>



<p>Upon activation, you need to visit the <strong>Code Snippets » Conversion Pixel</strong> page and go to the Facebook tab. From here, you need to paste the Facebook Pixel ID in the respective field.</p>



<figure class="wp-block-image size-full"><img width="680" height="335" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/add-facebook-pixel-id.png" alt="Add Facebook pixel ID" class="wp-image-172184" title="Paste Facebook pixel base code" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/add-facebook-pixel-id.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/add-facebook-pixel-id-300x148.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>WPCode will now automatically add the code to your site that&#8217;s needed to track Facebook ad conversions.</p>



<h4 id="twitterconversiontracking">Setting Up Twitter Conversion Tracking in WordPress</h4>



<p>If you run Twitter Ads to promote your business, then you&#8217;ll need to set up Twitter conversion tracking to measure the success of your ads.</p>



<p>Simply log in to your <a title="Twitter Ads" href="https://ads.twitter.com/"  rel="noopener nofollow">Twitter Ads</a> account and click on the <strong>Tools » Event manager</strong> from the menu at the top. </p>



<figure class="wp-block-image size-full"><img width="680" height="324" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/twitter-event-manager-1.png" alt="Twitter event manager" class="wp-image-172193" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/twitter-event-manager-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/twitter-event-manager-1-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You should now see a pixel created by Twitter. </p>



<p>Go ahead and click the &#8216;View Twitter Pixel&#8217; option. </p>



<figure class="wp-block-image size-full"><img width="680" height="218" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-the-twitter-pixel.png" alt="View the Twitter pixel" class="wp-image-172194" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/view-the-twitter-pixel.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/view-the-twitter-pixel-300x96.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you will see different options to add the Twitter pixel to your site. </p>



<p>You can use the &#8216;Pixel Code&#8217; method and simply copy the code. </p>



<figure class="wp-block-image size-full"><img width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/copy-the-pixel-code.png" alt="Copy the pixel code" class="wp-image-172195" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/copy-the-pixel-code.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/copy-the-pixel-code-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You will need to add this code to the <a href="https://www.wpbeginner.com/beginners-guide/how-to-customize-your-wordpress-header/" title="How to Customize Your WordPress Header (Beginner’s Guide)">header</a> of your WordPress site.  </p>



<p>First, you need to switch back to your WordPress website&#8217;s admin area. </p>



<p>If you haven&#8217;t already done so, then go ahead and install and activate the <a href="https://wordpress.org/plugins/insert-headers-and-footers"  title="WPCode Free Code Snippet Plugin for WordPress" rel="noopener">WPCode</a> plugin. For more details, 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 need to visit the <strong>Code Snippets » Header &amp; Footer</strong> page. Now you can paste the Twitter pixel code into the Header section. </p>



<figure class="wp-block-image size-full"><img width="680" height="348" src="https://www.wpbeginner.com/wp-content/uploads/2020/05/enter-the-twitter-pixel.png" alt="Enter the Twitter pixel" class="wp-image-172196" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/05/enter-the-twitter-pixel.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/05/enter-the-twitter-pixel-300x154.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



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



<p>After you have successfully installed the pixel code, you can track conversions on your Twitter Ads account.</p>



<h4 id="optimizeconversions">Optimizing Conversion Rates to Boost Sales</h4>



<p>Once you start tracking conversions on your website, the next step is to improve those conversion rates.</p>



<p>You&#8217;d be surprised how little things can make a huge impact on your business.</p>



<p>The best way to improve your conversions is by using <a title="OptinMonster" href="https://www.optinmonster.com/"  rel="noopener">OptinMonster</a>. It is the best conversion optimization software on the market and helps you convert more visitors into customers.</p>



<p>OptinMonster comes with tools like <a title="5 Best WordPress Popup Plugins of 2020 (Performance Compared)" href="https://www.wpbeginner.com/best-wordpress-popup-plugin/">lightbox popups</a>, fullscreen welcome mats, <a title="7 Best Countdown Plugins for WordPress (Easy to Use)" href="https://www.wpbeginner.com/showcase/best-countdown-plugins-for-wordpress/">countdown timers</a>, slide-in boxes, and more.</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="OptinMonster campaigns" 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>It integrates with any <a title="7 Best Email Marketing Services for Small Business (2020)" href="https://www.wpbeginner.com/showcase/best-email-marketing-services/">email marketing service</a> and works with all popular eCommerce platforms.</p>



<p>OptinMonster&#8217;s display rules allow you to show targeted messages to your customers at the precise time and nudge them into making a buying decision.</p>



<figure class="wp-block-image size-full"><img width="680" height="355" src="https://www.wpbeginner.com/wp-content/uploads/2022/10/upsell-popup-preview.png" alt="Upsell popup preview" class="wp-image-148322" title="OptinMonster popup preview" srcset="https://www.wpbeginner.com/wp-content/uploads/2022/10/upsell-popup-preview.png 680w, https://www.wpbeginner.com/wp-content/uploads/2022/10/upsell-popup-preview-300x157.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For instance, if you notice that customers are leaving a product page without taking any action, then you can offer them a discount when they are about to exit.</p>



<p>Similarly, you can run time-sensitive campaigns to trigger the <a href="https://www.wpbeginner.com/wp-tutorials/how-to-use-fomo-on-your-wordpress-site-to-increase-conversions/" title="How to Use FOMO on Your WordPress Site to Increase Conversions">FOMO effect</a> and give customers a nudge in the right direction.</p>



<p>For more practical tips, see our guide on how <a title="13 Ways to Recover WooCommerce Abandoned Cart Sales" href="https://www.wpbeginner.com/wp-tutorials/ways-to-recover-woocommerce-abandoned-cart-sales/">ways to recover WooCommerce abandoned cart sales</a>.</p>



<p>We hope this guide helped you set up conversion tracking in WordPress. You may also want to see our comparison of the <a href="https://www.wpbeginner.com/showcase/best-email-marketing-services/" title="7 Best Email Marketing Services for Small Business Compared">best email marketing services</a> and the <a href="https://www.wpbeginner.com/wordpress-performance-speed/" title="The Ultimate Guide to Boost WordPress Speed &amp; Performance">ultimate guide to WordPress speed and performance</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/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/">WordPress Conversion Tracking Made Simple: A Step-by-Step Guide</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Add Image Icons With Navigation Menus in WordPress</title>
		<link>http://www.wpwife.com/wordpress-plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress</link>
		<comments>http://www.wpwife.com/wordpress-plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress#comments</comments>
		<pubDate>Sun, 05 Mar 2023 11:53:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[images in menu wordpress]]></category>
		<category><![CDATA[menu icons wordpress]]></category>
		<category><![CDATA[navigation menu icons]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=24620</guid>
		<description><![CDATA[
<p>Do you want to add image icons to your WordPress navigation menus? Images can help visitors understand your site&#8217;s navigation at a glance. You can even use icons to highlight the menu&#8217;s most important content or call to action. In this article, we will show&#8230;&#160;<strong><a href="https://www.wpbeginner.com/plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/">How to Add Image Icons With Navigation Menus in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to add image icons to your WordPress navigation menus?</p>



<p>Images can help visitors understand your site&#8217;s navigation at a glance. You can even use icons to highlight the menu&#8217;s most important content or call to action. </p>



<p>In this article, we will show you how to add image icons to navigation menus in WordPress.&nbsp;</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/how-to-add-image-icons-with-navigation-menus-in-wordpress-og-1.png" alt="How to add image icons to navigation menus in WordPress" class="wp-image-170527" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/how-to-add-image-icons-with-navigation-menus-in-wordpress-og-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/how-to-add-image-icons-with-navigation-menus-in-wordpress-og-1-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4><strong>Why Add Image Icons With Navigation Menus in WordPress?</strong></h4>



<p>Usually, <a href="https://www.wpbeginner.com/beginners-guide/how-to-add-navigation-menu-in-wordpress-beginners-guide/" title="How to Add a Navigation Menu in WordPress (Beginner’s Guide)">WordPress navigation menus</a> are plain text links. These links work for most websites, but they don’t always look interesting or engaging.&nbsp;</p>



<p>By adding image icons to the navigation menu, you can encourage visitors to pay attention to the menu and explore more of your site.</p>



<figure class="wp-block-image size-full"><img width="680" height="292" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/icons-navigation-menu.png" alt="An example of image icons in a WordPress navigation menu" class="wp-image-169374" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/icons-navigation-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/icons-navigation-menu-300x129.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If your menu has lots of different options, then image icons can make it easier for visitors to scan the content and find what they’re looking for. This can be an easy way to <a href="https://www.wpbeginner.com/beginners-guide/how-to-increase-pageviews-and-reduce-bounce-rate-in-wordpress/" title="How to Increase Pageviews and Reduce Bounce Rate in WordPress">increase pageviews and reduce bounce rate in WordPress</a>.&nbsp;</p>



<p>You might even use an image icon to highlight the most important menu item, such as the Checkout link on your <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-an-online-marketplace-using-wordpress/" title="How to Create an Online Marketplace using WordPress">online marketplace</a>.&nbsp;</p>



<figure class="wp-block-image size-full"><img width="680" height="234" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/checkout-image-icon.png" alt="An example of an image icon on an eCommerce site" class="wp-image-169376" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/checkout-image-icon.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/checkout-image-icon-300x103.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>By highlighting a <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</a> in the menu bar, you can often get more signups, sales, members, and other conversions. </p>



<p>With that being said, let’s see how you can add image icons to your WordPress navigation menu. Simply use the quick links below to jump straight to the method you want to use.</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="https://www.wpbeginner.com/plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/#aioseo-method-1-add-image-icons-to-navigation-menus-using-a-plugin-quick-and-easy">Method 1: Add Image Icons to Navigation Menus Using a Plugin (Quick and Easy)</a></li><li><a href="https://www.wpbeginner.com/plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/#aioseo-method-1-add-icons-to-wordpress-menus-using-code-more-customizable">Method 2: Add Icons to WordPress Menus Using Code (More Customizable)</a></li></ul></div>



<h4 id="aioseo-method-1-add-image-icons-to-navigation-menus-using-a-plugin-quick-and-easy"><strong>Method 1: Add Image Icons to Navigation Menus Using a Plugin (Quick and Easy)</strong></h4>



<p>The easiest way to add image icons to your WordPress menus is by using the <a href="https://wordpress.org/plugins/menu-image/"  rel="noopener nofollow" title="The Menu Image WordPress plugin">Menu Image</a> plugin. This plugin comes with dashicon icons that you can add with just a few clicks.</p>



<figure class="wp-block-image size-full"><img width="680" height="228" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/icon-menu-example.png" alt="An example of a navigation menu, with image icons" class="wp-image-169154" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/icon-menu-example.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/icon-menu-example-300x101.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you have added Font Awesome icons to your website, then you can use them with this free plugin. For more information on how to set up Font Awesome, see our guide on <a href="https://www.wpbeginner.com/wp-themes/how-to-easily-add-icon-fonts-in-your-wordpress-theme-2/" title="How to Easily Add Icon Fonts in Your WordPress Theme">how to easily add icon fonts to your WordPress theme</a>.</p>



<p>If you want to use your own icon files, then Menu Image also lets you select an image or icon from the WordPress media library.</p>



<p>The first thing you need to do is to install and activate the <a href="https://wordpress.org/plugins/menu-image/"  rel="noopener nofollow" title="The Menu Image WordPress plugin">Menu Image</a> plugin. 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>Upon activation, click on Menu Image in the WordPress dashboard. On this screen, you can choose whether to get security and feature notifications or click on the ‘Skip’ button.</p>



<figure class="wp-block-image size-full"><img width="680" height="377" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/setup-menu-image.png" alt="How to add icons to a WordPress menu using a free plugin" class="wp-image-169155" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/setup-menu-image.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/setup-menu-image-300x166.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will take you to a screen where you can configure the plugin’s settings. To start, you’ll see all the different sizes you can use for the image icons.</p>



<p>If you plan to use icons from Font Awesome or dashicons, then Menu Image will resize them automatically. However, if you use images from the media library, then you’ll need to select the size manually.</p>



<p>The plugin supports the default <a href="https://www.wpbeginner.com/beginners-guide/wordpress-image-sizes-beginners-guide/" title="Beginner’s Guide to WordPress Image Sizes (+ Best Practices)">WordPress image sizes</a>, such as thumbnail, image, and large. It also adds three unique sizes that are set to 24&#215;24, 36&#215;36, and 48&#215;48 pixels by default.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-image-sizes.png" alt="Changing the size of image icons in WordPress menus" class="wp-image-169156" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-image-sizes.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-image-sizes-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>These settings should work well for most websites, but you can make the icons bigger or smaller by typing in different numbers for 1st, 2nd, or 3rd Menu Image size.</p>



<p>When you’re adding icons to your menu, you’ll see an ‘image on hover’ field by default. This allows you to show a different icon when the visitor hovers over that menu item.</p>



<p>Just be aware this setting is only available when you’re using your own images. You don’t need to worry about the ‘image on hover’ feature if you plan to use dashicons or Font Awesome icons.</p>



<p>Showing a different icon can help visitors see where they are in the navigation menu. This is particularly useful if a menu has lots of different items. For example, you might use different colors or icon sizes to highlight the currently-selected menu item.</p>



<p>If you want to try different hover effects, then make sure you check ‘Enable the image on hover field.’</p>



<figure class="wp-block-image size-full"><img width="680" height="274" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/enable-image-hover.png" alt="Adding a hover effect to image icons in a WordPress menu" class="wp-image-169157" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/enable-image-hover.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/enable-image-hover-300x121.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>With that done, click on ‘Save Changes’ to store your settings.</p>



<p>To add icons to the navigation menu, head over to <strong>Appearance » Menus</strong>. By default, WordPress will show your site’s primary menu.</p>



<figure class="wp-block-image size-full"><img width="680" height="304" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-wordpress-menu.png" alt="Editing a WordPress navigation menu" class="wp-image-169158" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-wordpress-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-wordpress-menu-300x134.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you want to edit a different menu, then simply open the ‘Select a menu to edit’ dropdown and choose a menu from the list. After that, click on ‘Select.’</p>



<p>Now, find the first menu item where you want to add an icon and give it a click. Then, simply select the new ‘Add Image / Icon’ button.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-add-image.png" alt="Adding an image icon to a WordPress navigation menu" class="wp-image-169165" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-add-image.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-add-image-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now decide whether to use your own image or choose an icon.</p>



<p>To use a ready-made icon, click on the radio button next to ‘Icons.’ You can then click to select any dashicon or Font Awesome icon.</p>



<figure class="wp-block-image size-full"><img width="680" height="372" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-dashicons-menu.png" alt="Adding a dashicon icon to a WordPress menu" class="wp-image-169166" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-dashicons-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-dashicons-menu-300x164.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Do you want to use your own images instead?</p>



<p>Then select the radio button next to ‘Image&#8217; and click the ‘Set Image’ link.</p>



<figure class="wp-block-image size-full"><img width="680" height="370" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-set-image.png" alt="Adding WordPress media library images to a navigation menu" class="wp-image-169167" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-set-image.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-set-image-300x163.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now either choose an image from the WordPress media library or upload a new file from your computer.</p>



<p>If you checked ‘Enable the image on hover field’ in the plugin’s settings, then you’ll also need to click on ‘Set image on hover.’</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/set-image-hover.png" alt="Adding an 'on hover' animation a WordPress image icon" class="wp-image-169168" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/set-image-hover.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/set-image-hover-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, choose an image to show when the user hovers over this menu item.</p>



<p>Sometimes, you may want to ignore this setting and show the same icon no matter what. To do this, click on ‘Set image on hover’ and then choose the exact same image.</p>



<p>If you don’t do this, then the icon will disappear when the visitor hovers over it.</p>



<figure class="wp-block-image size-full"><img width="680" height="360" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/hover-image-menu.png" alt="How to add image icons with navigation menus in WordPress" class="wp-image-169169" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/hover-image-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/hover-image-menu-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, open the Image Size dropdown and choose a size from the list. Using the same size for all icons tends to make the menu look more organized.</p>



<p>However, you might make the menu’s most important icon bigger. For example, if you’ve created an <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> using a plugin like <a href="https://www.wpbeginner.com/wp-tutorials/woocommerce-tutorial-ultimate-guide/" title="WooCommerce Made Simple: A Step-by-Step Tutorial [+ Resources]">WooCommerce</a>, then you might use a bigger icon for ‘Checkout’ so it stands out.</p>



<p>When you’re happy with the icon, it’s time to look at the menu item&#8217;s label.</p>



<p>By default, the plugin shows the title label after the icon.</p>



<figure class="wp-block-image size-full"><img width="680" height="284" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-menu.png" alt="Customizing the navigation menus on your website or blog" class="wp-image-169171" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-menu-300x125.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To change this, select any of the radio buttons in the ‘Title position’ section.</p>



<p>Another option is to remove the navigation label completely, creating an icon-only menu. This can prevent a menu with a lot of items from looking cluttered.</p>



<p>However, you should only hide the labels if it’s obvious what each icon means. If it’s unclear, then visitors will struggle to navigate your <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog – Beginners Guide (UPDATED)">WordPress blog</a> or website.</p>



<p>To go ahead and hide the label, select the radio button next to ‘None.’</p>



<figure class="wp-block-image size-full"><img width="680" height="319" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-none.png" alt="Hiding the navigation labels on your menu" class="wp-image-169173" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-none.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-none-300x141.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you’re happy with how the menu item is set up, click on ‘Save Changes.’</p>



<p>To add an icon to other menu items, simply follow the same process described above.</p>



<p>When you’ve finished, don’t forget to click on the ‘Save Menu’ button. Now, if you visit your website you’ll see the updated navigation menu live.</p>



<h4 id="aioseo-method-1-add-icons-to-wordpress-menus-using-code-more-customizable"><strong>Method 2: Add Icons to WordPress Menus Using Code (More Customizable)</strong></h4>



<p>You can also add image icons to your navigation menus using custom CSS. This gives you more flexibility to control exactly where the icons appear in your menus.</p>



<p>However, it does require you 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>, so it’s recommended for more intermediate or advanced WordPress users.</p>



<figure class="wp-block-image size-full"><img width="680" height="205" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-images-navigation.png" alt="An example of a navigation menu with image icons" class="wp-image-169174" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-images-navigation.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-images-navigation-300x90.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Before you start, go ahead and upload all your image files to the WordPress media library. For each image, make sure you copy its URL and paste it into a text editor like Notepad. You’ll need to use the links in your code, so this can save you a lot of time.</p>



<p>To find an image’s URL, simply select it in the WordPress media library and then look at the ‘File URL’ field.</p>



<figure class="wp-block-image size-full"><img width="680" height="337" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/file-url-media.png" alt="Get the URL of an image in the WordPress media library" class="wp-image-169193" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/file-url-media.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/file-url-media-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For more detailed instructions, please see our guide on <a href="https://www.wpbeginner.com/beginners-guide/how-to-get-the-url-of-images-you-upload-in-wordpress/" title="How to Get the URL of Images You Upload in WordPress">how to get the URL of images you upload in WordPress</a>.</p>



<p>After that, go to <strong>Appearance » Menus</strong>.</p>



<figure class="wp-block-image size-full"><img width="680" height="342" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/wordpress-appearance-menus.png" alt="How to add a WordPress navigation menu to your site or blog" class="wp-image-169175" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/wordpress-appearance-menus.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/wordpress-appearance-menus-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, open the ‘Select a menu to edit’ dropdown and choose the menu where you want to add the image icons.</p>



<p>After that, go ahead and click on ‘Select.’</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-menu-wordpress.png" alt="Editing a menu on your website or blog" class="wp-image-169176" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-menu-wordpress.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-menu-wordpress-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you need to enable custom CSS classes by clicking on ‘Screen Options.&#8217;</p>



<p>In the panel that appears, check the box next to ‘CSS Classes.’</p>



<figure class="wp-block-image size-full"><img width="680" height="290" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/enabling-custom-css.png" alt="Add custom CSS classes to your website" class="wp-image-169178" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/enabling-custom-css.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/enabling-custom-css-300x128.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>With that done, you can add custom CSS classes to any item in the navigation menu. This is how you will link each menu item to an image in the WordPress media library.</p>



<p>You can call these classes anything you want, but it’s a good idea to use something that helps you identify the menu item.</p>



<p>To get started, simply click on the first item you want to add an image icon to. In the ‘CSS Classes (optional)’ field, type in the class name you want to use.</p>



<figure class="wp-block-image size-full"><img width="680" height="380" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-css-class.png" alt="Adding custom CSS code to a menu" class="wp-image-169183" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-css-class.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-css-class-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You’ll use these custom CSS classes in the next step, so make a note of them in your Notepad or similar app.</p>



<p>Simply follow the same process to add a separate class to all your menu items. After that, click on ‘Save Menu’ to store your settings.</p>



<p><strong>Note:</strong> Each icon will be tied to its own CSS class, so be sure to label the menu items differently if you want to use separate icons.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-menu-css.png" alt="Publishing a menu with image icons" class="wp-image-169184" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-menu-css.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-menu-css-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now you’re ready to add image icons to your WordPress navigation menus using CSS.</p>



<p>Often, WordPress tutorials will tell you to add code snippets to your <a href="https://www.wpbeginner.com/showcase/best-wordpress-themes/" title="Most Popular and Best WordPress Themes (Expert Pick)">WordPress theme</a> files. However, doing so may cause <a href="https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" title="Most Common WordPress Errors and How to Fix Them">common WordPress errors</a> and isn’t very beginner-friendly. </p>



<p>That’s why we recommend <a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">WPCode</a>.</p>



<p>WPCode is the most popular code snippets plugin used by over 1 million WordPress websites. It allows you to add custom code without editing your theme’s functions.php file.</p>



<p>The first thing you need to do is 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</a> plugin. 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>Upon activation, head over to <strong>Code Snippets » Add Snippet</strong>.</p>



<figure class="wp-block-image size-full"><img width="680" height="327" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/wpcode-add-snippet.png" alt="Adding a code snippet to your website using WPCode" class="wp-image-169190" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/wpcode-add-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/wpcode-add-snippet-300x144.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Here, simply hover your mouse over ‘Add Your Custom Code.’</p>



<p>When it appears, click on ‘Use snippet.’</p>



<figure class="wp-block-image size-full"><img width="680" height="380" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-custom-snippet.png" alt="How to add custom snippets to a website or blog" class="wp-image-169191" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-custom-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-custom-snippet-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To start, type in a title for the custom code snippet. This can be anything that helps you identify the snippet in the WordPress dashboard.</p>



<p>With that done, open the ‘Code Type’ dropdown and select ‘CSS Snippet.’</p>



<figure class="wp-block-image size-full"><img width="680" height="347" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/image-menu-css.png" alt="Adding custom code to WordPress using WPCode" class="wp-image-169185" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/image-menu-css.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/image-menu-css-300x153.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>In the code editor, you’ll need to add some code for every icon you want to show.</p>



<p>To help you out, we’ve created a sample snippet below. You can go ahead and change &#8216;.carticon&#8217; to the custom CSS class you created in the previous step. You’ll also need to replace the URL with a link to the image in your WordPress media library:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
.carticon {
background-image: url('http://localhost:10013/wp-content/my-media/cartcheckout.png');
background-repeat: no-repeat;
background-position: left;
padding-left: 5px;
}
</pre></div>


<p><strong>Note:</strong> You will need to keep the dot &#8216;.&#8217; in front of the CSS class in the code snippet. That&#8217;s what tells WordPress that it&#8217;s a class and not another kind of CSS selector.</p>



<p>You will need to adjust the snippet above for each individual menu item you created above. You can simply paste them all into the &#8216;Code Preview&#8217; field.</p>



<p>When you’re happy with your code, scroll to the ‘Insertion’ section. WPCode can add code to different locations, such as after every post, frontend only, or admin only.</p>



<p>You want to use the custom CSS code across our entire <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a>, so click on ‘Auto Insert’ if it isn’t already selected.</p>



<p>Then, open the ‘Location’ dropdown menu and choose ‘Site Wide Header.’</p>



<figure class="wp-block-image size-full"><img width="680" height="301" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/auto-insert-code.png" alt="Inserting custom code across your website" class="wp-image-169192" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/auto-insert-code.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/auto-insert-code-300x133.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you’re ready to scroll to the top of the screen and click on the ‘Inactive’ toggle, so it changes to ‘Active.’</p>



<p>Finally, click on ‘Save Snippet’ to make the custom CSS live.</p>



<figure class="wp-block-image size-full"><img width="680" height="377" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-css-snippet.png" alt="How to add custom CSS code to WordPress easily" class="wp-image-169186" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-css-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-css-snippet-300x166.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, if you visit your website you’ll see all the image icons in your navigation menu.</p>



<p>Depending on your theme, you may need to tweak the CSS so it shows the image icons in exactly the right spot. If this is the case, then head to <strong>Code Snippets » Code Snippets</strong> in the WordPress dashboard.</p>



<p>Then, simply hover over the snippet and click on the ‘Edit’ link when it appears.</p>



<figure class="wp-block-image size-full"><img width="680" height="300" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/editing-code-snippets.png" alt="Editing a code snippet using WPCode" class="wp-image-169188" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/editing-code-snippets.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/editing-code-snippets-300x132.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This opens the code editor, ready for you to make some changes.</p>



<p>We hope this article helped you learn how to add image icons to your WordPress navigation menu. You can also go through our guide on 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 drag-and-drop WordPress page builders</a> and <a href="https://www.wpbeginner.com/beginners-guide/make-money-online/" title="Proven Ways to Make Money Online Blogging with WordPress">how to make money online blogging with 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/plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/">How to Add Image Icons With Navigation Menus in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/wordpress-plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Easily Organize Media Uploads by Users in WordPress</title>
		<link>http://www.wpwife.com/wordpress-plugins/how-to-easily-organize-media-uploads-by-users-in-wordpress</link>
		<comments>http://www.wpwife.com/wordpress-plugins/how-to-easily-organize-media-uploads-by-users-in-wordpress#comments</comments>
		<pubDate>Mon, 27 Feb 2023 20:00:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[Media Library]]></category>
		<category><![CDATA[media uploads by users]]></category>
		<category><![CDATA[user uploads in wordpress]]></category>
		<category><![CDATA[wordpress media]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[wp users media]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=21013</guid>
		<description><![CDATA[
<p>Do you want to organize media uploads by user in WordPress? If you run a multi-author website, then you may want to restrict each author&#8217;s media library access to only their own uploads. This can prevent an author from accidentally deleting another user&#8217;s images, and&#8230;&#160;<strong><a href="https://www.wpbeginner.com/plugins/how-to-organize-media-uploads-by-users-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/plugins/how-to-organize-media-uploads-by-users-in-wordpress/">How to Easily Organize Media Uploads by Users in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to organize media uploads by user in WordPress?</p>



<p>If you run a multi-author website, then you may want to restrict each author&#8217;s media library access to only their own uploads. This can prevent an author from accidentally deleting another user&#8217;s images, and help keep subscriber-only content private.</p>



<p>In this article, we’ll show you how to organize media uploads by users in WordPress.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2020/06/how-to-organize-media-uploads-by-users-in-wordpress-og.png" alt="How to organize media uploads by users in WordPress" class="wp-image-169945" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/06/how-to-organize-media-uploads-by-users-in-wordpress-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/06/how-to-organize-media-uploads-by-users-in-wordpress-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 id="aioseo-why-restrict-author-access-to-media-uploads">Why Restrict Author Access to Media Uploads?</h4>



<p>If you have a <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">multi-author WordPress blog</a>, then people might be uploading lots of different images. This can make it difficult for an author to find the right image, or they might delete or edit another person&#8217;s media file by accident. </p>



<p>This can cause all sorts of problems including poor productivity, lots of extra work for site admins and editors, and a complicated <a title="How to Improve your Editorial Workflow in Multi-Author WordPress Blogs" href="https://www.wpbeginner.com/plugins/how-to-improve-your-editorial-workflow-in-multi-author-wordpress-blogs/">editorial workflow</a>.</p>



<p>This unlimited access can also be a privacy concern. For example, if you&#8217;re working on a new product or idea, then other authors might see confidential images in the media library before you make a public announcement. </p>



<p>If you have a <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">WordPress membership site</a>, then contributors and subscribers may be able to access premium media files they shouldn&#8217;t have access to. For example, if you sell online courses then a contributor might use their media library access to download premium PDFs and other course materials, without buying a subscription. </p>



<p>That being said, let&#8217;s take a look at how to restrict who can see media uploads inside your WordPress admin area. Simply use the quick links below to jump straight to the method you want to use.</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="https://www.wpbeginner.com/plugins/how-to-organize-media-uploads-by-users-in-wordpress/#aioseo-method-1-organizing-media-uploads-by-users-with-a-plugin-quick-and-easy">Method 1. Organizing Media Uploads by Users With a Plugin (Quick and Easy)</a></li><li><a href="https://www.wpbeginner.com/plugins/how-to-organize-media-uploads-by-users-in-wordpress/#aioseo-method-2-organizing-media-uploads-using-code-advanced">Method 2. Organizing Media Uploads Using Code (Advanced)</a></li></ul></div>



<h4 id="aioseo-method-1-organizing-media-uploads-by-users-with-a-plugin-quick-and-easy">Method 1. Organizing Media Uploads by Users With a Plugin (Quick and Easy)</h4>



<p>The easiest way to restrict access to media uploads is by using the <a href="https://wordpress.org/plugins/frontier-restrict-media/"  rel="noopener nofollow" title="The Frontier Restrict Access WordPress plugin">Frontier Restrict Access</a> plugin. </p>



<p>This free plugin checks whether a user has the <code>edit_others_posts</code> permission, which allows them to edit another user&#8217;s posts. </p>



<p>By default, this ability is granted to everyone who has the site admin or editor role. If you want to change this, then you can <a href="https://www.wpbeginner.com/plugins/how-to-add-or-remove-capabilities-to-user-roles-in-wordpress/" title="How to Add or Remove Capabilities to User Roles in WordPress">add or remove capabilities to user roles in WordPress</a>. </p>



<p>If the user doesn&#8217;t have this permission, then once this plugin is activated, they won&#8217;t be able to access another user&#8217;s files in the WordPress media library. This allows you to organize media uploads by users, without restricting access for admins and editors.</p>



<p>This plugin works out of the box and there are no settings for you to configure, so you can simply install and activate the Frontier Restrict Access plugin. For more details, see 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>



<h4 id="aioseo-method-2-organizing-media-uploads-using-code-advanced">Method 2. Organizing Media Uploads Using Code (Advanced)</h4>



<p>Another option is to restrict access to files in the media library using code. This method requires you to add a code snippet to your <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog – Beginners Guide (UPDATED)">WordPress blog</a> or website, so it isn&#8217;t the most beginner-friendly method. However, you won&#8217;t need to install a separate plugin just to organize your media uploads.</p>



<p>Often, you&#8217;ll find guides with instructions to add custom code to your WordPress theme. However, this isn&#8217;t recommended as mistakes and typos in your code can cause <a href="https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" title="Most Common WordPress Errors and How to Fix Them">common WordPress errors</a>, or even break your site completely. </p>



<p>That&#8217;s why we recommend <a href="https://wpcode.com/"  rel="noopener" title="The WPCode WordPress plugin">WPCode</a>.</p>



<p>WPCode is the best code snippets plugin used by over 1 million WordPress websites. It makes it easy to&nbsp;<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>&nbsp;without having to edit the functions.php file.</p>



<p>For this method, we&#8217;ll be adding code that checks whether the user has the <code>edit_others_posts</code> permission. If they don&#8217;t have this permission, then the <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">code snippet</a> below will stop them from accessing other people&#8217;s files in the WordPress media library. </p>



<p>The first thing you need to do is install and activate the&nbsp;<a href="https://wordpress.org/plugins/insert-headers-and-footers"  rel="noopener" title="The free WPCode WordPress plugin">free WPCode plugin</a>. For more details, see our step-by-step guide on&nbsp;<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, head over to&nbsp;<strong>Code Snippets » Add Snippet</strong>.</p>



<figure class="wp-block-image size-full"><img width="680" height="327" src="https://www.wpbeginner.com/wp-content/uploads/2020/06/adding-code-wpcode.png" alt="How to add custom PHP snippets to your site using WPCode" class="wp-image-169848" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/06/adding-code-wpcode.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/06/adding-code-wpcode-300x144.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Here, simply hover your mouse over ‘Add Your Custom Code.’</p>



<p>When it appears, click on ‘Use snippet.’</p>



<figure class="wp-block-image size-full"><img width="680" height="380" src="https://www.wpbeginner.com/wp-content/uploads/2020/06/adding-custom-snippet.png" alt="Adding a custom code snippet to WordPress" class="wp-image-169849" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/06/adding-custom-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/06/adding-custom-snippet-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To start, type in a title for the custom code snippet. This can be anything that helps you identify the snippet in the WordPress dashboard.</p>



<p>After that, open the ‘Code Type’ dropdown and select ‘PHP Snippet.’</p>



<figure class="wp-block-image size-full"><img width="680" height="267" src="https://www.wpbeginner.com/wp-content/uploads/2020/06/wpcode-php-snippet.png" alt="Restricting access to the media library using WPCode" class="wp-image-169856" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/06/wpcode-php-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/06/wpcode-php-snippet-300x118.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>In the &#8216;Code Preview&#8217; area, paste the following code snippet:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
add_filter( 'ajax_query_attachments_args', 'user_show_attachments' );
 
function user_show_attachments( $query ) {
    $user_id = get_current_user_id();
    if ( $user_id &amp;&amp; !current_user_can('activate_plugins') &amp;&amp; !current_user_can('edit_others_posts
') ) {
        $query&#91;'author'] = $user_id;
    }
    return $query;
} 
</pre></div>


<p>Next, just scroll to the ‘Insertion’ section. WPCode can add your code to different locations, such as after every post, frontend only, or admin only.</p>



<p>We want to use the custom PHP code across our entire&nbsp;<a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a>, so click on ‘Auto Insert’ if it isn’t already selected. Then, open the ‘Location’ dropdown menu and choose ‘Run Everywhere.’</p>



<figure class="wp-block-image size-full"><img width="680" height="297" src="https://www.wpbeginner.com/wp-content/uploads/2020/06/php-auto-insert.png" alt="Running custom PHP code across your website using WPCode" class="wp-image-169857" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/06/php-auto-insert.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/06/php-auto-insert-300x131.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you’re ready to scroll to the top of the screen and click on the ‘Inactive’ toggle, so it changes to ‘Active.’</p>



<p>Finally, click on ‘Save Snippet’ to make the PHP snippet live.</p>



<figure class="wp-block-image size-full"><img width="680" height="341" src="https://www.wpbeginner.com/wp-content/uploads/2020/06/saving-php-snippet.png" alt="How to restrict access to media files using code" class="wp-image-169858" srcset="https://www.wpbeginner.com/wp-content/uploads/2020/06/saving-php-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2020/06/saving-php-snippet-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, users will only have access to the files they upload to the WordPress media library. </p>



<p>We hope this article helped you better organize media uploads by users on your WordPress site. Next, you can check out our <a href="https://www.wpbeginner.com/wordpress-security/" title="The Ultimate WordPress Security Guide – Step by Step">ultimate WordPress security guide</a> or see our expert pick of 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 plugins for 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/plugins/how-to-organize-media-uploads-by-users-in-wordpress/">How to Easily Organize Media Uploads by Users in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/wordpress-plugins/how-to-easily-organize-media-uploads-by-users-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Properly Disable Lazy Load in WordPress (Step by Step)</title>
		<link>http://www.wpwife.com/wordpress-plugins/how-to-properly-disable-lazy-load-in-wordpress-step-by-step</link>
		<comments>http://www.wpwife.com/wordpress-plugins/how-to-properly-disable-lazy-load-in-wordpress-step-by-step#comments</comments>
		<pubDate>Thu, 16 Feb 2023 10:09:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[disable lazy load in wordpress]]></category>
		<category><![CDATA[lazy load in wordpress]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[wordpress tutorial]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=163609</guid>
		<description><![CDATA[
<p>Do you want to disable lazy loading in WordPress? By default, WordPress comes with a lazy load feature, which delays downloads for images and other media to improve page load speed. However, for some websites, it may affect user experience by not displaying images and&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-properly-disable-lazy-load-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-properly-disable-lazy-load-in-wordpress/">How to Properly Disable Lazy Load 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 disable lazy loading in WordPress?</p>



<p>By default, WordPress comes with a lazy load feature, which delays downloads for images and other media to improve page load speed. </p>



<p>However, for some websites, it may affect user experience by not displaying images and media right away. </p>



<p>In this article, we&#8217;ll show you how to easily disable lazy load in WordPress both using a code method as well as a plugin method.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/how-to-properly-disable-lazy-load-in-wordpress-og.png" alt="How to properly disable lazy load in WordPress" class="wp-image-163656" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/how-to-properly-disable-lazy-load-in-wordpress-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/how-to-properly-disable-lazy-load-in-wordpress-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4>What is Lazy Loading?</h4>



<p>WordPress first introduced lazy loading images in <a href="https://www.wpbeginner.com/news/whats-new-in-wordpress-5-5-features-and-screenshots/" title="What’s New in WordPress 5.5 (Features and Screenshots)">WordPress 5.5</a>. Later it extended the lazy load feature to iframes embeds (e.g. YouTube videos, Spotify, and other embeds).  </p>



<p>This practice helps improve your <a href="https://www.wpbeginner.com/wordpress-performance-speed/" title="24 Useful Tricks To Speed Up WordPress &amp; Boost Performance">website&#8217;s speed and performance</a> by quickly loading content and the visible area first. </p>



<p>A faster website is not just good for users, but it is also good for SEO. Search engines like Google consider speed as an important ranking factor. </p>



<p>Apart from images and embeds, you can also easily lazy load <a href="https://www.wpbeginner.com/plugins/how-to-easily-lazy-load-comments-in-wordpress/" title="How to Easily Lazy Load Comments in WordPress">comments</a> and <a href="https://www.wpbeginner.com/plugins/how-to-lazy-load-gravatars-in-wordpress-comments/" title="How to Lazy Load Gravatars in WordPress Comments">Gravatars</a> to further improve page load speed.</p>



<p>Lazy loading can be seen in action by right-clicking on an image and selecting the Inspect tool in your browser. </p>



<figure class="wp-block-image size-full"><img width="680" height="293" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/lazyloading-example.png" alt="Lazy loading images in WordPress" class="wp-image-166375" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/lazyloading-example.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/lazyloading-example-300x129.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will split your browser screen and show you the HTML source code. From here, you&#8217;ll be able to see the &#8220;loading=lazy&#8221; attribute added to the image. </p>



<p>Now normally, we don&#8217;t recommend disabling lazy load due to its overall benefits for your <a href="https://www.wpbeginner.com/showcase/x-type-of-websites-you-can-create-with-wordpress/" title="23 Popular Types of Websites You Can Make in WordPress (+Examples)">WordPress website</a>. Turning it off can result in slower website speed, lower conversion rates, and lower SEO rankings.</p>



<p>However, sometimes lazy loading can affect the user experience for some websites. </p>



<p>For instance, if you run a photography website where images are the most significant aspect of your content, then lazy loading them may ruin the user experience for your customers. </p>



<p>In other cases, you might be using a different lazy loading solution and just want to turn off the default WordPress lazy load.</p>



<p>That being said, let&#8217;s see how you can easily disable lazy load in WordPress.</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-properly-disable-lazy-load-in-wordpress/#aioseo-method-1-disable-lazy-load-in-wordpress-using-wpcode-recommended">Method 1. Disable Lazy Load in WordPress Using WPCode (Recommended)</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-properly-disable-lazy-load-in-wordpress/#aioseo-method-2">Method 2. Disable Lazy Load in WordPress Using a Plugin</a></li></ul></div>



<h4 id="aioseo-method-1-disable-lazy-load-in-wordpress-using-wpcode-recommended">Method 1. Disable Lazy Load in WordPress Using WPCode (Recommended)</h4>



<p>You can simply disable the lazy load feature in WordPress by adding a custom code snippet to your theme&#8217;s <a href="https://www.wpbeginner.com/glossary/functions-php/" title="functions.php">functions.php</a> file. </p>



<p>However, keep in mind that the smallest error while adding the code can result in breaking your website and making it inaccessible to your users.</p>



<p>This is why we recommend using the <a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">WPCode</a> plugin to add <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)">custom code </a>to your site.</p>



<p>It is the best custom code snippets plugin that makes it super easy for beginners to safely add custom code to their website.  </p>



<p>First, you 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">WPCode</a> plugin. 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> for more instructions.</p>



<p>Upon activation, go to the <strong>Code Snippets » + Add Snippet</strong> page. </p>



<figure class="wp-block-image size-full"><img width="680" height="335" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/addnewsnippet.png" alt="Add new snippet" class="wp-image-166377" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/addnewsnippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/addnewsnippet-300x148.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will take you to the &#8216;Add Snippets&#8217; screen where you&#8217;ll see a bunch of ready-to-use code snippets that you can add to your website. </p>



<p>From here, you need to click the &#8216;Use Snippet&#8217; button under the <strong>&#8216;Add Your Custom Code (New Snippet)&#8217; </strong>option.</p>



<p>Once you&#8217;re on the &#8216;Create Custom Snippet&#8217; page, you can start by typing a name for your code snippet. </p>



<p>It can be anything that will help you identify the code snippet and what it does. </p>



<figure class="wp-block-image size-full"><img width="680" height="317" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/snippet-title-type.png" alt="Snippet title and type" class="wp-image-166378" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/snippet-title-type.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/snippet-title-type-300x140.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, select &#8216;PHP Snippet&#8217; from the dropdown menu next to the &#8216;Code Type&#8217; option.</p>



<p>Now, copy and paste the following PHP code in the &#8216;Code Preview&#8217; box.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: php; title: ; notranslate">
add_filter( 'wp_lazy_loading_enabled', '__return_false' );
</pre></div>


<p>This is how the code will look after it is pasted in the &#8216;Code Preview&#8217; box.</p>



<figure class="wp-block-image size-full"><img width="680" height="241" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/addcode.png" alt="Add code snippet" class="wp-image-166379" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/addcode.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/addcode-300x106.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After adding the code, scroll down to the &#8216;Insertion&#8217; section.</p>



<p>Here, simply choose &#8216;Auto Insert&#8217; as the insertion mode. This will ensure that your custom code is automatically executed everywhere on your website once you activate the snippet.</p>



<figure class="wp-block-image size-full"><img width="680" height="205" src="https://www.wpbeginner.com/wp-content/uploads/2021/07/choose-an-insertion-method.png" alt="Choose an insertion method" class="wp-image-163439" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/07/choose-an-insertion-method.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/07/choose-an-insertion-method-300x90.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you need to scroll to the top of the page and simply toggle the &#8216;Inactive&#8217; switch to &#8216;Active&#8217;.</p>



<p>After that, don&#8217;t forget to click the &#8216;Save Snippet&#8217; button to save and execute your custom snippet.</p>



<figure class="wp-block-image size-full"><img width="680" height="235" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/save-disable-lazy-load-snippet.png" alt="Save your code snippet" class="wp-image-163667" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/save-disable-lazy-load-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/save-disable-lazy-load-snippet-300x104.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Once activated, this custom code snippet will disable the lazy loading feature on your WordPress website. </p>



<p>You can test by right-clicking on an image and selecting Inspect from the browser menu. </p>



<p>In the HTML code for the image, the loading=lazy attribute will now disappear. </p>



<figure class="wp-block-image size-full"><img width="680" height="226" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/lazy-loading-disabled.png" alt="Lazy loading disabled" class="wp-image-166376" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/lazy-loading-disabled.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/lazy-loading-disabled-300x100.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 id="aioseo-method-2">Method 2. Disable Lazy Load in WordPress Using a Plugin</h4>



<p>If you don&#8217;t want to add code to your site, then you can use the <a href="https://wordpress.org/plugins/disable-lazy-loading/"  rel="noopener nofollow" title="Disable Lazy Load">Disable Lazy Load </a>plugin. </p>



<p>The only thing you need to do is install and activate the <a href="https://wordpress.org/plugins/disable-lazy-loading/"  rel="noopener nofollow" title="Disable Lazy Load">Disable Lazy Load </a>plugin. For more instructions, check 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>



<figure class="wp-block-image size-full"><img width="680" height="194" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/activate-disable-lazy-load-plugin.png" alt="Activate plugin to disable lazy load" class="wp-image-163668" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/activate-disable-lazy-load-plugin.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/activate-disable-lazy-load-plugin-300x86.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>The plugin works out of the box and does not require any configuration. Once activated, it will automatically disable the lazy load feature on your site.</p>



<p>We hope this article helped you learn how to properly disable lazy load in WordPress. You may also want to see our guide on <a href="https://www.wpbeginner.com/beginners-guide/speed-wordpress-save-images-optimized-web/" title="How to Optimize Images for Web Performance without Losing Quality">how to optimize WordPress images</a> for better page load times, or see our pick of the <a href="https://www.wpbeginner.com/plugins/best-wordpress-image-compression-plugins-compared/" title="7 Best WordPress Image Compression Plugins Compared (2023)">best WordPress image compression plugins</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-properly-disable-lazy-load-in-wordpress/">How to Properly Disable Lazy Load 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/wordpress-plugins/how-to-properly-disable-lazy-load-in-wordpress-step-by-step/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Easily Add Box Shadow in WordPress (4 Ways)</title>
		<link>http://www.wpwife.com/tutorials/how-to-easily-add-box-shadow-in-wordpress-4-ways</link>
		<comments>http://www.wpwife.com/tutorials/how-to-easily-add-box-shadow-in-wordpress-4-ways#comments</comments>
		<pubDate>Thu, 09 Feb 2023 09:06:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[box shadow]]></category>
		<category><![CDATA[CSS Hero]]></category>
		<category><![CDATA[drop shadow]]></category>
		<category><![CDATA[drop shadow box]]></category>
		<category><![CDATA[seedprod]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=165846</guid>
		<description><![CDATA[
<p>Recently one of our readers asked if there is an easy way to add box shadows in WordPress? Shadows can make your most important content stand out and grab your visitors&#8217; attention. They can also help flat website designs appear more engaging and interesting. In&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-box-shadow-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-box-shadow-in-wordpress/">How to Easily Add Box Shadow in WordPress (4 Ways)</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Recently one of our readers asked if there is an easy way to add box shadows in WordPress?</p>



<p>Shadows can make your most important content stand out and grab your visitors&#8217; attention. They can also help flat website designs appear more engaging and interesting.</p>



<p>In this article, we will show you how to easily add box shadows in WordPress, step by step.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/how-to-easily-add-box-shadow-in-wordpress-og.png" alt="How to easily add box shadow in WordPress " class="wp-image-165856" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/how-to-easily-add-box-shadow-in-wordpress-og.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/how-to-easily-add-box-shadow-in-wordpress-og-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4><strong>Why Add Box Shadows in WordPress?</strong></h4>



<p>A box shadow, sometimes also known as a drop shadow, is a visual effect that makes it look like an onscreen object is casting a shadow.</p>



<p>We tend to pay more attention to objects that appear closer to us. That&#8217;s why many website owners add box shadows to their most important content to make it look like it&#8217;s hovering above the page.</p>



<p>For example, if you add a big shadow to a <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>, then it will look physically closer to the visitor. This will draw the person’s attention toward this important button.</p>



<p>With that said, let’s see how you can add box shadows to your <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog – Beginners Guide (UPDATED)">WordPress blog</a> or website. Simply use the quick links below to jump straight 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-easily-add-box-shadow-in-wordpress/#aioseo-method-1-how-to-add-box-shadows-using-code-recommended">Method 1. How to Add Box Shadows Using Code (Recommended)</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-box-shadow-in-wordpress/#aioseo-method-2-how-to-add-a-box-shadow-using-a-free-plugin-quick-and-easy">Method 2. Add a Box Shadow Using a Free Plugin (Quick and Easy)</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-box-shadow-in-wordpress/#aioseo-method-3-how-to-add-a-box-shadow-using-a-page-builder-advanced">Method 3. Add a Box Shadow Using a Page Builder (Advanced)</a></li><li><a href="https://www.wpbeginner.com/wp-tutorials/how-to-easily-add-box-shadow-in-wordpress/#aioseo-method-4-how-to-add-a-box-shadow-using-css-hero-premium-plugin">Method 4. How to Add a Box Shadow Using CSS Hero (Premium Plugin)</a></li></ul></div>



<h4 id="aioseo-method-1-how-to-add-box-shadows-using-code-recommended">Method 1. <strong>How to Add Box Shadows Using Code (Recommended)</strong></h4>



<p>When adding box shadow, the best practice is to only add it on your most important website elements. If you add a unique shadow effect to each WordPress block, then it can make your site look messy and confusing. </p>



<p>It&#8217;s also important that you keep your box shadows consistent across the site. The best way to do this is by defining the style in CSS using <a href="https://wpcode.com/"  rel="noopener" title="The WPCode code snippet plugin for WordPress">WPCode</a>.</p>



<p>WPCode is the best code snippets plugin used by over 1 million WordPress websites. It makes it easy 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> without having to edit the functions.php file.</p>



<p>With WPCode, even beginners can edit their website’s code without risking mistakes and typos that can cause many <a href="https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" title="Most Common WordPress Errors and How to Fix Them">common WordPress errors</a>.</p>



<p>The first thing you need to do is 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, 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>Upon activation, head over to <strong>Code Snippets » Add Snippet</strong>.</p>



<figure class="wp-block-image size-full"><img width="680" height="327" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/adding-shortcode-wpcode.png" alt="How to add box shadows using WPCode" class="wp-image-165870" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/adding-shortcode-wpcode.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/adding-shortcode-wpcode-300x144.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Here, simply hover your mouse over ‘Add Your Custom Code.’</p>



<p>When it appears, click on ‘Use snippet.’</p>



<figure class="wp-block-image size-full"><img width="680" height="380" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/custom-snipppet-add.png" alt="Adding drop shadows to WordPress using WPCode" class="wp-image-165871" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/custom-snipppet-add.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/custom-snipppet-add-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To start, type in a title for the custom code snippet. This can be anything that helps you identify the snippet in the WordPress dashboard.</p>



<p>After that, open the ‘Code Type’ dropdown and select ‘CSS Snippet.’</p>



<figure class="wp-block-image size-full"><img width="680" height="299" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/shadow-css-snippet-1.png" alt="Adding a CSS snippet to WordPress" class="wp-image-165920" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/shadow-css-snippet-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/shadow-css-snippet-1-300x132.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>In the code editor, add the following code snippet:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
.shadow-effect {
box-shadow: 5px 5px 0px 2px #a9a1a1;
}

</pre></div>


<p>In the above snippet, you may need to replace the px values depending on the kind of shadow you want to create.</p>



<p>To help you out, here’s what the different px values mean, going from left-to-right:</p>



<ul><li>Horizontal offset. When you set a positive value, the shadow gets pushed to the left. If you type in a negative value like -5px, then the shadow will be pushed to the right. If you don’t want to add a horizontal offset, then you can use 0px instead.</li><li>Vertical offset. If you use a positive value, then the shadow will be pushed downwards. If you type in a negative value then the shadow will be pushed upwards. If you don’t want to offset the shadow vertically, then just type in 0px.</li><li>Blur radius. This blurs the shadow so that it doesn’t have any harsh edges. The higher the value, the greater the blur effect. If you prefer to use sharp edges, then type in 0px.</li><li>Spread radius. The higher the value, the greater the shadow’s spread. This value is optional, so skip this one if you don’t want to show a spread.</li><li>Color. Although grey is the most common color for shadows, you can use any color you want by typing in a hex code. If you’re not sure what code to use, then you can explore different colors using a resource like <a href="https://htmlcolorcodes.com/"  rel="noopener nofollow" title="The HTML Color Codes website">HTML Color Codes</a>.</li></ul>



<figure class="wp-block-image size-full"><img width="680" height="334" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/box-shadow-css.png" alt="Adding shadows to WordPress using custom CSS" class="wp-image-165873" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/box-shadow-css.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/box-shadow-css-300x147.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you’re happy with the snippet, scroll to the ‘Insertion’ section. WPCode can add your code to different locations, such as after every post, frontend only, or admin only.</p>



<p>We want to use the custom CSS code across our entire <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a>, so click on ‘Auto Insert’ if it isn’t already selected. Then, open the ‘Location’ dropdown menu and choose ‘Site Wide Header.’</p>



<figure class="wp-block-image size-full"><img width="680" height="301" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-auto-insert.png" alt="How to auto-insert custom code using WPCode" class="wp-image-165874" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-auto-insert.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/css-auto-insert-300x133.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you’re ready to scroll to the top of the screen and click on the ‘Inactive’ toggle, so it changes to ‘Active.’</p>



<p>Finally, click on ‘Save Snippet’ to make the CSS snippet live.</p>



<figure class="wp-block-image size-full"><img width="680" height="351" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/publishing-shadow-code.png" alt="Publishing a custom CSS code snipppet" class="wp-image-165875" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/publishing-shadow-code.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/publishing-shadow-code-300x155.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, you can add the custom CSS class to any block.</p>



<p>In the WordPress <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">content editor</a>, simply select the block where you want to add a box shadow. Then, in the right-hand menu click to expand the ‘Advanced’ section.</p>



<figure class="wp-block-image size-full"><img width="680" height="341" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/advanced-settings-wordpress.png" alt="Adding a drop shadow to WordPress using a CSS snippet" class="wp-image-165876" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/advanced-settings-wordpress.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/advanced-settings-wordpress-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Here, you’ll see fields where you can add different classes.</p>



<p>In &#8216;Additional CSS Class(es),&#8217; type in <code>shadow-effect</code>.</p>



<figure class="wp-block-image size-full"><img width="680" height="305" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/additional-css-shadow.png" alt="WordPress' advanced code settings" class="wp-image-165877" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/additional-css-shadow.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/additional-css-shadow-300x135.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you’re ready to publish the box shadow, just click on the ‘Publish’ or ‘Update’ button.</p>



<p>Now if you visit your website, you’ll see the box shadow live.</p>



<h4 id="aioseo-method-2-how-to-add-a-box-shadow-using-a-free-plugin-quick-and-easy">Method 2. <strong>Add a Box Shadow Using a Free Plugin (Quick and Easy)</strong></h4>



<p>If you’re not comfortable writing code, then you might prefer to create shadows using <a href="https://wordpress.org/plugins/drop-shadow-boxes/"  rel="noopener nofollow" title="The Drop Shadow Box WordPress plugin">Drop Shadow Box</a>. This free plugin allows you to add box shadows to any block using the built-in WordPress page and post editor.</p>



<figure class="wp-block-image size-full"><img width="680" height="318" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/drop-shadow-plugin.png" alt="A box shadow, created using the Drop Shadow WordPress plugin" class="wp-image-165880" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/drop-shadow-plugin.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/drop-shadow-plugin-300x140.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>First, you’ll need to install and activate the 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>There are no settings to configure, so you can start using this plugin straight away.</p>



<p>To add a drop shadow, simply click on the ‘+’ icon and start typing in ‘Drop Shadow Box.’ When the right block appears, give it a click to add it to the page or post.</p>



<figure class="wp-block-image size-full"><img width="680" height="351" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/drop-shadow-block.png" alt="Adding a Drop Shadow Block in the WordPress page or post editor" class="wp-image-165881" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/drop-shadow-block.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/drop-shadow-block-300x155.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This adds the drop shadow as an empty box, so the next step is adding some content.</p>



<p>To do this, go ahead and click on the ‘+’ inside the Drop Shadow Box block.</p>



<figure class="wp-block-image size-full"><img width="680" height="320" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/adding-shadow-block.png" alt="Adding a shadow block in the WordPress page and post editor" class="wp-image-165882" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/adding-shadow-block.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/adding-shadow-block-300x141.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Then, simply add the block you want to use and configure it as normal.</p>



<p>For example, in the following image we’ve added an Image block and selected a picture from the WordPress media library.</p>



<figure class="wp-block-image size-full"><img width="680" height="332" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/block-shadow-image.png" alt="An image, with a block shadow" class="wp-image-165883" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/block-shadow-image.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/block-shadow-image-300x146.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>With that done, click to select the Drop Shadow Box block. In the right-hand menu, you’ll see all the settings you can use to style this block.</p>



<p>WordPress sets the shadow’s width automatically but you can change this by opening the ‘Width’ dropdown and then choosing either ‘Pixels’ or ‘%.’</p>



<p>You can then resize it using the settings that appear.</p>



<figure class="wp-block-image size-full"><img width="680" height="314" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/drop-shadow-width.png" alt="Changing the width of a drop shadow using a free WordPress plugin" class="wp-image-165884" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/drop-shadow-width.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/drop-shadow-width-300x139.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>The Drop Box Shadow plugin comes with a few different effects such as curved edges and an eye-catching ‘Perspective’ effect.</p>



<p>To preview the different effects, simply open the ‘Effect’ dropdown and choose from the list. The preview will update automatically so you can try different styles to see what you prefer.</p>



<figure class="wp-block-image size-full"><img width="680" height="303" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/box-shadow-effects.png" alt="Adding different box shadow effects to WordPress" class="wp-image-165885" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/box-shadow-effects.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/box-shadow-effects-300x134.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can also change whether the plugin shows the shadow inside the box, outside the box, or both using the ‘Inside Shadow’ and ‘Outside Shadow’ toggles.</p>



<p>After that, you can change the color of the box and border using the settings under the ‘Colors’ header.</p>



<p>Just be aware that ‘Background’ refers to the inside of the Drop Shadow Box, while ‘Border’ appears outside of the block.</p>



<figure class="wp-block-image size-full"><img width="680" height="266" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/colored-box-shadow.png" alt="How to add a colored shadow effect to WordPress" class="wp-image-165886" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/colored-box-shadow.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/colored-box-shadow-300x117.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you want to create a softer, curved shadow box then you can enable the ‘Rounded corners’ toggle. Finally, you can change the alignment and padding, similar to how you customize other blocks in WordPress.</p>



<p>To create more box shadows, just follow the same process described above.</p>



<p>When you’re happy with how the page looks, simply click on ‘Update’ or ‘Publish’ to make all your new box shadows live.</p>



<h4 id="aioseo-method-3-how-to-add-a-box-shadow-using-a-page-builder-advanced">Method 3. <strong>Add a Box Shadow Using a Page Builder (Advanced)</strong></h4>



<p>If you want to add box shadows to landing pages, <a href="https://www.wpbeginner.com/wp-themes/how-to-create-a-custom-homepage-in-wordpress/" title="How to Create a Custom Home Page in WordPress">custom homepages</a>, or any part of your WordPress theme, then we recommend using a page builder plugin.</p>



<p><a href="https://wordpress.org/plugins/coming-soon"  title="Free version of SeedProd WordPress Page Builder plugin" rel="noopener">SeedProd</a> is the best <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">drag and drop WordPress page builder</a>. It allows you to design custom landing pages and even <a href="https://www.wpbeginner.com/wp-themes/how-to-easily-create-a-custom-wordpress-theme/" title="How to Easily Create a Custom WordPress Theme (Without Any Code)">create a custom WordPress theme </a>without having to write a single line of code.</p>



<p>It also lets you add box shadows to any block using its advanced drag-and-drop editor.</p>



<p>First, you need to install and activate the SeedProd plugin. 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><strong>Note:</strong> There’s also a <a href="https://www.seedprod.com/"  rel="noopener" title="The SeedProd page builder plugin">premium version of SeedProd</a> that comes with more professionally-designed templates, advanced features, and <a href="https://www.wpbeginner.com/wp-tutorials/woocommerce-tutorial-ultimate-guide/" title="WooCommerce Made Simple: A Step-by-Step Tutorial [+ Resources]">WooCommerce</a> integration. However, we’ll be using the free version as it has everything you need to add box shadows in WordPress.</p>



<p>After activating the plugin, SeedProd will ask for your license key.</p>



<figure class="wp-block-image size-full"><img width="680" height="320" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-license-key.png" alt="Adding the SeedProd license key to WordPress" class="wp-image-165887" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-license-key.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-license-key-300x141.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can find this license key under <a href="https://app.seedprod.com/dashboard"  rel="noopener" title="Your SeedProd account">your account on the SeedProd website</a>. After entering the information, click on the ‘Verify Key’ button.</p>



<p>After entering your key, go to <strong>SeedProd » Landing Pages</strong> in your WordPress dashboard.</p>



<figure class="wp-block-image size-full"><img width="680" height="275" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-template-designs.png" alt="SeedProd's professionally-designed templates" class="wp-image-165888" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-template-designs.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-template-designs-300x121.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>SeedProd comes with 150 professionally designed templates that are grouped into categories. Along the top you’ll see categories that let you <a href="https://www.wpbeginner.com/plugins/how-to-create-beautiful-coming-soon-pages-in-wordpress-with-seedprod/" title="How to Create Beautiful Coming Soon Pages in WordPress with SeedProd">create beautiful coming soon pages</a>, activate maintenance mode, <a href="https://www.wpbeginner.com/plugins/how-to-create-custom-login-page-for-wordpress/" title="How to Create a Custom WordPress Login Page (Ultimate Guide)">create a custom login page for WordPress</a>, and more.</p>



<p>All of SeedProd’s templates are easy to customize, so you can use any design you want.</p>



<p>When you find a template that you like, simply hover your mouse over it and click on the checkmark icon.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/choosing-seedprod-template.png" alt="Selecting a professionally-designed SeedProd page layout" class="wp-image-165889" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/choosing-seedprod-template.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/choosing-seedprod-template-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now type in a name for your landing page into the ‘Page Name’ field. SeedProd will automatically create a ‘Page URL’ using the page name.</p>



<p>It’s smart to include <a href="https://www.wpbeginner.com/beginners-guide/how-to-do-keyword-research-for-your-wordpress-blog/" title="How to Do Keyword Research for Your WordPress Blog">relevant keywords</a> in your URL wherever possible, as this can help search engines understand what the page is about. This will often improve your <a href="https://www.wpbeginner.com/wordpress-seo/" title="Ultimate WordPress SEO Guide for Beginners (Step by Step)">WordPress SEO</a>.</p>



<p>To change the page’s automatically-generated URL, simply type into the ‘Page URL’ field.</p>



<figure class="wp-block-image size-full"><img width="680" height="364" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-naming-design.png" alt="Adding an SEO-friendly page title to a SeedProd design" class="wp-image-165890" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-naming-design.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-naming-design-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you’re happy with the information you’ve typed in, click on ‘Save and Start Editing the Page.’ This will load the SeedProd page builder interface.</p>



<p>This simple drag-and-drop builder shows a live preview of your page design to the right. On the left is a menu showing all the different blocks and sections you can add to the page.</p>



<figure class="wp-block-image size-full"><img width="680" height="345" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-page-editor.png" alt="The SeedProd page editor" class="wp-image-165891" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-page-editor.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-page-editor-300x152.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you find a block that you want to add, simply drag and drop it onto your template.</p>



<p>To customize a block, go ahead and click to select that block in the SeedProd editor. The left-hand menu will now update to show all the settings you can use to customize the block.</p>



<p>For example, if you click on a Headline block then you can type in your own text, or <a href="https://www.wpbeginner.com/wp-tutorials/how-to-change-the-text-color-in-wordpress-easy-methods/" title="How to Change the Text Color in WordPress (Easy Methods)">change the text color</a> and font size.</p>



<figure class="wp-block-image size-full"><img width="680" height="317" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/customizing-headline-block.png" alt="Customizing a headline block in SeedProd" class="wp-image-165892" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/customizing-headline-block.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/customizing-headline-block-300x140.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>As you’re building the page, you can move blocks around your layout by dragging and dropping them. For more detailed instructions, please see our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-a-landing-page-with-wordpress/" title="How to Create a Landing Page With WordPress">how to create a landing page with WordPress</a>.</p>



<p>To create a box shadow, click to select any block in the SeedProd page editor. The settings in the left-hand menu may vary between blocks, but you’ll typically need to click on an ‘Advanced’ tab.</p>



<figure class="wp-block-image size-full"><img width="680" height="314" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-advanced-tab.png" alt="Adding a box shadow in WordPress using SeedProd" class="wp-image-165893" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-advanced-tab.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-advanced-tab-300x139.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Here, look for a ‘Shadow’ dropdown menu under the ‘Styles’ section. Simply open this dropdown and choose a shadow style such as Hairline, Medium, or 2X Large.</p>



<p>The preview will update automatically, so you can try different styles to see what looks the best on your page design. </p>



<figure class="wp-block-image size-full"><img width="680" height="370" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-shadow-styles.png" alt="How to easily add a box shadow in WordPress using a page builder" class="wp-image-165895" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-shadow-styles.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-shadow-styles-300x163.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you don’t want to use any of the ready-made styles, then click on ‘Custom.’</p>



<p>This adds some new settings where you can change the color, blur, spread, and position of the custom shadow.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-custom-shadow.png" alt="Adding drop shadows to WordPress using SeedProd" class="wp-image-165896" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-custom-shadow.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/seedprod-custom-shadow-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>That done, you can continue working on the page by adding more blocks and box shadows.</p>



<p>When you’re happy with how the page looks, click the ‘Save’ button and then choose ‘Publish’ to make it live.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/publishing-seedprod-shadows.png" alt="Publishing a page with block shadows using SeedProd" class="wp-image-165897" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/publishing-seedprod-shadows.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/publishing-seedprod-shadows-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4 id="aioseo-method-4-how-to-add-a-box-shadow-using-css-hero-premium-plugin">Method 4. <strong>How to Add a Box Shadow Using CSS Hero (Premium Plugin)</strong></h4>



<p>If you’re not comfortable working with code but still want to create advanced box shadows, then you can try CSS Hero. This premium plugin allows you to fine-tune every part of your WordPress theme without having to write a single line of code.</p>



<p>CSS Hero allows you to create a unique shadow for each block, so it’s also a great choice if you want to create lots of different shadow effects.</p>



<p>First, you need to install and activate the <a href="https://www.wpbeginner.com/refer/css-hero/"  rel="noopener nofollow" title="The CSS Hero WordPress plugin">CSS Hero</a> plugin. 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>Upon activation, you’ll see a ‘Proceed to Product Activation’ button at the top of the screen. Go ahead and click on this button.</p>



<figure class="wp-block-image size-full"><img width="680" height="300" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-product-activation-.png" alt="Activating the CSS Hero WordPress plugin" class="wp-image-165899" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-product-activation-.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/css-product-activation--300x132.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will take you to the CSS Hero website where you can log into your account and get a license key. Simply follow the onscreen instructions, and you’ll be redirected back to your site in a few clicks.</p>



<p>Next, click the ‘Customize with CSS Hero’ text in the WordPress admin toolbar.</p>



<figure class="wp-block-image size-full"><img width="680" height="280" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/customize-css-hero.png" alt="Customizing a WordPress theme using CSS Hero" class="wp-image-165901" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/customize-css-hero.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/customize-css-hero-300x124.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will open the CSS Hero editor.</p>



<p>By default, clicking on any piece of content will open a panel with all the settings you can use to customize that content.</p>



<figure class="wp-block-image size-full"><img width="680" height="310" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-hero-customize.png" alt="The CSS Hero user-friendly page editor" class="wp-image-165902" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-hero-customize.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/css-hero-customize-300x137.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This is great if you want to add a box shadow to your website’s homepage. However, if you want to customize any other page then you’ll need to switch from ‘Select’ mode to ‘Navigate’ mode, as this allows you to interact with menus, links, and other content as normal.</p>



<p>To do this, click on the ‘Select / Navigate’ toggle in the toolbar so that it shows ‘Navigate.’</p>



<figure class="wp-block-image size-full"><img width="680" height="260" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-navigate-slider.png" alt="The CSS Hero WordPress plugin" class="wp-image-165903" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-navigate-slider.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/css-navigate-slider-300x115.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now navigate to the page or post where you want to add the shadow.</p>



<p>As soon as you reach that page, go ahead and click on the ‘Select / Navigate’ toggle again so that it shows ‘Select.’</p>



<figure class="wp-block-image size-full"><img width="680" height="312" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-select-slider.png" alt="Switching between Select and Navigation mode using CSS Hero" class="wp-image-165904" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-select-slider.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/css-select-slider-300x138.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>With that done, click on the paragraph, image, button, or any other content where you want to add a box shadow.</p>



<p>In the left-hand panel, click on ‘Extra.’</p>



<figure class="wp-block-image size-full"><img width="680" height="317" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-hero-extra.png" alt="Creating a drop shadow using CSS Hero" class="wp-image-165906" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/css-hero-extra.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/css-hero-extra-300x140.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now go ahead and click on ‘Make Shadow,’ which shows all the settings you can use to create a box shadow.</p>



<p>To start, you can change whether the shadow appears inside or outside the block using the ‘Shadow Position’ settings.</p>



<figure class="wp-block-image size-full"><img width="680" height="375" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/make-shadow-position-.png" alt="Changing the position of a shadow box using CSS Hero" class="wp-image-165907" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/make-shadow-position-.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/make-shadow-position--300x165.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After making this decision, you can fine-tune the shadow’s orientation using the small dot in the ‘Orientation’ box.</p>



<p>Simply drag and drop the dot into a new position to see it move in the live preview.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/shadow-orientation-css.png" alt="Customizing a drop shadow in WordPress" class="wp-image-165908" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/shadow-orientation-css.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/shadow-orientation-css-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you’re happy with the shadow’s position, you can change its color, blur, and spread.</p>



<p><a rel="nofollow noopener"  title="CSS Hero" href="https://www.wpbeginner.com/refer/css-hero/" data-shortcode="true">CSS Hero</a> will show these changes immediately, so you can try different settings to see what looks the best.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/custom-shadow-csshero.png" alt="Creating a custom box shadow using a drag and drop editor" class="wp-image-165909" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/custom-shadow-csshero.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/custom-shadow-csshero-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To add a box shadow to other blocks, just follow the same process described above.</p>



<p>When you’re happy with how the page looks, click on ‘Save &amp; Publish’ to make it live.</p>



<figure class="wp-block-image size-full"><img width="680" height="307" src="https://www.wpbeginner.com/wp-content/uploads/2023/02/publishing-css-shadow.png" alt="How to publish a CSS shadow to WordPress" class="wp-image-165910" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/02/publishing-css-shadow.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/02/publishing-css-shadow-300x135.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>We hope this tutorial helped you learn how to add a box shadow in WordPress. You may also want to learn <a href="https://www.wpbeginner.com/plugins/how-to-create-a-table-of-content-in-wordpress-posts-and-pages/" title="How to Create a Table of Contents in WordPress Posts and Pages">how to create a table of content in WordPress</a>, or check out our list of the <a href="https://www.wpbeginner.com/best-wordpress-popup-plugin/" title="Best WordPress Popup Plugins (Performance Compared)">best WordPress popup plugins</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-easily-add-box-shadow-in-wordpress/">How to Easily Add Box Shadow in WordPress (4 Ways)</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/tutorials/how-to-easily-add-box-shadow-in-wordpress-4-ways/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
		<item>
		<title>How to Set Up Google Ads Conversion Tracking in WordPress</title>
		<link>http://www.wpwife.com/tutorials/how-to-set-up-google-ads-conversion-tracking-in-wordpress</link>
		<comments>http://www.wpwife.com/tutorials/how-to-set-up-google-ads-conversion-tracking-in-wordpress#comments</comments>
		<pubDate>Mon, 16 Jan 2023 10:11:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[ads addon]]></category>
		<category><![CDATA[conversion tracking]]></category>
		<category><![CDATA[google ads]]></category>
		<category><![CDATA[google ads conversion tracking]]></category>
		<category><![CDATA[google analytics]]></category>
		<category><![CDATA[google analytics 4]]></category>
		<category><![CDATA[google analytics conversion tracking]]></category>
		<category><![CDATA[monsterinsights]]></category>
		<category><![CDATA[track google ads]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">https://www.wpbeginner.com/?p=162096</guid>
		<description><![CDATA[
<p>Do you want to know how much revenue you&#8217;re generating from Google Ads on your website? Setting up Google Ads conversion tracking will help you uncover insights about your ad campaign&#8217;s performance. You can find out which campaign is performing the best, how users interact&#8230;&#160;<strong><a href="https://www.wpbeginner.com/wp-tutorials/how-to-set-up-google-ads-conversion-tracking-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/wp-tutorials/how-to-set-up-google-ads-conversion-tracking-in-wordpress/">How to Set Up Google Ads Conversion Tracking in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to know how much revenue you&#8217;re generating from Google Ads on your website?</p>



<p>Setting up Google Ads conversion tracking will help you uncover insights about your ad campaign&#8217;s performance. You can find out which campaign is performing the best, how users interact with your ads, and how you can improve conversions. </p>



<p>In this article, we&#8217;ll show you how to properly set up eCommerce Google Ads conversion tracking in WordPress. This is the exact same method that we use on our own websites.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/how-to-setup-google-ads-conversion-tracking.png" alt="How to setup Google Ads conversion tracking" class="wp-image-162315" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/how-to-setup-google-ads-conversion-tracking.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/how-to-setup-google-ads-conversion-tracking-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4>Why Set Up Google Ads Conversion Tracking in WordPress?</h4>



<p>If you&#8217;re running Google Ads for your <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog in 2023 – Beginners Guide (UPDATED)">WordPress blog</a>, <a href="https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/" title="How to Start an Online Store in 2023 (Step by Step)">eCommerce store</a>, or <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">membership site</a>, then it is important to know how they&#8217;re performing. You can&#8217;t improve, what you can&#8217;t measure.</p>



<p>Tracking Google Ads conversions helps you see how much revenue you earned from users who clicked on your ad campaigns. It also helps you see which paid keywords and ad groups drive the most conversions. This way, you can optimize your campaigns and budget for more profitable search terms. </p>



<p>Besides that, Google Ads conversion tracking also uncovers how users behave on your <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website in 2023 (Ultimate Guide)">WordPress site</a> after clicking an ad. For instance, you might see a lot of users arrive on a landing page, but abandon it after adding products to the cart. </p>



<p>You can use this information to improve the checkout process, offer discounts and incentives as users are about to leave your site, and provide a better user experience. </p>



<p>That said, let&#8217;s see how you can add Google Ads conversion tracking in WordPress. </p>



<h4>Adding Google Ads to WordPress Website</h4>



<p>The easiest way of connecting Google Ads with WordPress is by using <a href="https://www.monsterinsights.com/"  title="MonsterInsights - WordPress Analytics Plugin" rel="noopener">MonsterInsights</a>. It is the <a href="https://www.wpbeginner.com/showcase/7-best-analytics-solutions-for-wordpress-users/" title="11 Best Analytics Solutions for WordPress Users">best Analytics plugin for WordPres</a>s that helps set up Google Analytics without editing. </p>



<p>MonsterInsights offers an Ads addon that lets you setup comprehensive conversion tracking without touching a single line of code or hiring a developer. </p>



<p>We will use the MonsterInsights Pro license for this tutorial because it includes the Ads addon. There is also a <a href="https://wordpress.org/plugins/google-analytics-for-wordpress"  title="Free version of MonsterInsights Google Analytics Plugin" rel="noopener">MonsterInsights Lite</a> version you can use for free. </p>



<p>First, you&#8217;ll need to install and activate the MonsterInsights 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 be redirected to the welcome screen in your WordPress dashboard. Go ahead and click the &#8216;Launch the Wizard&#8217; button.</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2009/08/launch-setup-wizard.png" alt="Launch setup wizard" class="wp-image-108509" srcset="https://www.wpbeginner.com/wp-content/uploads/2009/08/launch-setup-wizard.png 680w, https://www.wpbeginner.com/wp-content/uploads/2009/08/launch-setup-wizard-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can follow the onscreen instructions to connect Google Analytics to your site. For more details, you can see our guide on <a href="https://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/" title="How to Install Google Analytics in WordPress for Beginners">how to install Google Analytics in WordPress</a>. </p>



<p>With MonsterInsights, you can also use dual tracking to set up a Google Analytics 4 property. It is the latest analytics version and will soon replace Universal Analytics. You can learn more by following our guide on <a href="https://www.wpbeginner.com/wp-tutorials/how-to-switch-to-google-analytics-4-in-wordpress/" title="How to Switch to Google Analytics 4 in WordPress (The RIGHT Way)">how to switch to Google Analytics 4 in WordPress</a>. </p>



<p>Once you&#8217;ve connected Google Analytics with WordPress, the next step is to install the Ads addon. Simply go to <strong>Insights » Addons</strong> from your WordPress dashboard and navigate to the &#8216;Ads&#8217; addon. </p>



<figure class="wp-block-image size-full"><img width="680" height="367" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/install-the-ads-addon.PNG" alt="Install the ads addon" class="wp-image-162178" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/install-the-ads-addon.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/install-the-ads-addon-300x162.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Go ahead and click the &#8216;Install&#8217; button. The addon will now automatically install and activate on your site. </p>



<h4>Creating a Conversion Action in Google Ads</h4>



<p>Next, you&#8217;ll need to create a conversion action in Google Ads.</p>



<p>First, you can visit the <a href="https://ads.google.com/"  rel="noopener nofollow" title="Google Ads website">Google Ads website</a> and log in to your account.</p>



<p>After that, go ahead and click the &#8216;Tools and settings&#8217; option at the top. Under the &#8216;Measurement&#8217; column, simply select the <strong>Conversions</strong> option.</p>



<figure class="wp-block-image size-full"><img width="680" height="291" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-tools-and-settings-option.PNG" alt="Click the tools and settings option" class="wp-image-162196" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-tools-and-settings-option.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-tools-and-settings-option-300x128.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you&#8217;ll need to create a conversion action. </p>



<p>You can click the &#8216;New conversion action&#8217; button to get started. </p>



<figure class="wp-block-image size-full"><img width="680" height="325" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/create-new-conversion-action.PNG" alt="Create new conversion action" class="wp-image-162198" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/create-new-conversion-action.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/create-new-conversion-action-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, Google Ads will ask you to select the type of conversions you want to track. It will show you 4 options, including a website, app, phone call, or import. </p>



<p>For this tutorial, we&#8217;ll choose the &#8216;Website&#8217; option for tracking ad conversions.</p>



<figure class="wp-block-image size-full"><img width="680" height="232" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/select-the-kind-of-conversion-to-track.PNG" alt="Select the kind of conversion to track" class="wp-image-162201" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/select-the-kind-of-conversion-to-track.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/select-the-kind-of-conversion-to-track-300x102.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you&#8217;ll need to enter the website URL where you&#8217;d like to measure conversions. </p>



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



<figure class="wp-block-image size-full"><img width="680" height="278" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-your-domain-to-scan.PNG" alt="Enter your domain to scan" class="wp-image-162202" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-your-domain-to-scan.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-your-domain-to-scan-300x123.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Google Ads will now show 2 options to create conversion actions, including an automatic and manual method. In the automatic method, you&#8217;ll need to select the conversion goal, choose a match type, and enter the URL. This way is suitable if you know which events to count as conversions. </p>



<p>However, we recommend selecting the manual method. Simply scroll down and click the &#8216;+ Add a conversion action manually&#8217; option. </p>



<figure class="wp-block-image size-full"><img width="680" height="355" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/add-conversion-action-manually-1.PNG" alt="Add conversion action manually" class="wp-image-162205" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/add-conversion-action-manually-1.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/add-conversion-action-manually-1-300x157.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you&#8217;ll need to enter the Conversion action details. </p>



<p>First, you can select the &#8216;Goal and action optimization&#8217; for your conversion. This is the action you&#8217;d like to track. For example, when a user subscribes to your newsletter, makes a purchase, adds a product to a cart, submits a <a href="https://www.wpbeginner.com/beginners-guide/how-to-create-a-contact-form-in-wordpress/" title="How to Create a Contact Form in WordPress (Step by Step)">contact form</a>, and more. </p>



<p>For the sake of this tutorial, we will select &#8216;Subscribe&#8217; as the goal. After that, you can enter the Conversion name. </p>



<figure class="wp-block-image size-full"><img width="680" height="347" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-conversion-action-details.PNG" alt="Enter conversion action details" class="wp-image-162206" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-conversion-action-details.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-conversion-action-details-300x153.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now scroll down and select a Value for your conversion. Google Ads lets you choose the same value for each conversion, assign different values for conversions, or don&#8217;t use a value for conversion action. </p>



<p>We will select the &#8216;Use the same for each conversion&#8217; option, select the currency, and enter a value for this tutorial. </p>



<figure class="wp-block-image size-full"><img width="680" height="205" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-value-for-conversion-action.png" alt="Enter value for conversion action" class="wp-image-162212" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-value-for-conversion-action.png 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-value-for-conversion-action-300x90.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Besides that, you can also choose how many conversions to count per click. </p>



<p>If you&#8217;re <a href="https://www.wpbeginner.com/wp-tutorials/how-to-set-up-email-newsletter-tracking-in-google-analytics/" title="How to Set Up Email Newsletter Tracking in Google Analytics">tracking email newsletter</a> signups, then we recommend selecting the &#8216;One&#8217; option. This way, each subscriber is counted once. However, you can use the &#8216;Every&#8217; option in an <a href="https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/" title="How to Start an Online Store in 2023 (Step by Step)">eCommerce store</a> and count each purchase as a conversion. </p>



<p>After selecting these options, simply click the &#8216;Done&#8217; button at the bottom. </p>



<figure class="wp-block-image size-full"><img width="680" height="207" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-value-and-count-1.PNG" alt="Enter value and count" class="wp-image-162213" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-value-and-count-1.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-value-and-count-1-300x91.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now see your conversion action under the &#8216;Create conversion actions manually using code&#8217; section. </p>



<p>Go ahead and click the &#8216;Save and continue&#8217; button to get instructions for adding the tracking tags for conversion action to your site.</p>



<figure class="wp-block-image size-full"><img width="680" height="324" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-save-and-continue-button.PNG" alt="Click the save and continue button" class="wp-image-162211" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-save-and-continue-button.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-save-and-continue-button-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you&#8217;ll see 3 options to add the conversion action to your site. </p>



<p>Simply select the &#8216;Use Google Tag Manager&#8217; option. You should see the Conversion ID and Conversion Label. Copy these to a notepad file or keep the browser window/tab open. </p>



<figure class="wp-block-image size-full"><img width="680" height="283" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/select-the-use-tag-manager-option.PNG" alt="Select the use tag manager option" class="wp-image-162216" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/select-the-use-tag-manager-option.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/select-the-use-tag-manager-option-300x125.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To finish the setup process, you&#8217;ll need to head to your WordPress website dashboard and view the MonsterInsights settings.</p>



<p>From here, go to <strong>Insights » Settings</strong> and click on the &#8216;Publisher&#8217; tab. </p>



<figure class="wp-block-image size-full"><img width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/publisher-settings.PNG" alt="Publisher settings in MonsterInsights" class="wp-image-162217" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/publisher-settings.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/publisher-settings-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can scroll down to the &#8216;Ads Tracking&#8217; section. </p>



<p>Go ahead and enter the Conversion ID. Make sure you follow the format, which will look like this: AW-123456789. </p>



<p>If you are tracking Google Ads on <a href="https://easydigitaldownloads.com/"  title="Easy Digital Downloads - WordPress eCommerce plugin" rel="noopener">Easy Digital Downloads</a>, <a href="https://www.wpbeginner.com/wp-tutorials/woocommerce-tutorial-ultimate-guide/" title="WooCommerce Made Simple: A Step-by-Step Tutorial [+ Resources]">WooCommerce</a>, and <a href="https://www.wpbeginner.com/refer/memberpress/"  rel="noopener nofollow" title="MemberPress">MemberPress</a>, then enter the Conversion Label in the respective field. </p>



<figure class="wp-block-image size-full"><img width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-conversion-ID-and-label.PNG" alt="Enter conversion ID and label" class="wp-image-162219" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-conversion-ID-and-label.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-conversion-ID-and-label-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>That&#8217;s it. You&#8217;ve successfully set up Google Ads conversion tracking on your WordPress website. </p>



<h4>View Google Ads Conversion Tracking Data in Google Analytics</h4>



<p>You can take it a step further and connect Google Ads with Google Analytics to get more insights about how people use your website after clicking on an ad. </p>



<p>For instance, you can see the number of visitors from paid search and find out which pages they view after landing on your site. You can also use different filters and create custom reports in Google Analytics. </p>



<p>Let&#8217;s see how you can link your Google Ads account with Google Analytics 4 and Universal Analytics. </p>



<p><strong>Connect Google Ads with Google Analytics 4</strong></p>



<p>First, you&#8217;ll need to log in to your GA4 account and then go to the &#8216;Admin&#8217; settings. </p>



<figure class="wp-block-image size-full"><img width="680" height="362" src="https://www.wpbeginner.com/wp-content/uploads/2019/12/go-to-admin-settings.png" alt="Go to admin settings" class="wp-image-153879" srcset="https://www.wpbeginner.com/wp-content/uploads/2019/12/go-to-admin-settings.png 680w, https://www.wpbeginner.com/wp-content/uploads/2019/12/go-to-admin-settings-300x160.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can click the &#8216;Google Ads Links&#8217; option. </p>



<p>It is located under the Property column. </p>



<figure class="wp-block-image size-full"><img width="680" height="373" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/go-to-ads-links.PNG" alt="Go to ads links" class="wp-image-162256" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/go-to-ads-links.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/go-to-ads-links-300x165.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>A new window will now slide in from the right. </p>



<p>Go ahead and click the &#8216;Link&#8217; button in the top right corner. </p>



<figure class="wp-block-image size-full"><img width="680" height="239" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-link-button.PNG" alt="Click the link button" class="wp-image-162261" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-link-button.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-link-button-300x105.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you will see different options for Link setup. </p>



<p>First, you can click the &#8216;Choose Google Ads accounts&#8217; option.</p>



<figure class="wp-block-image size-full"><img width="680" height="337" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/choose-google-ads-account-to-link.PNG" alt="Choose Google ads account to link" class="wp-image-162264" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/choose-google-ads-account-to-link.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/choose-google-ads-account-to-link-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you&#8217;ll need to select the Google Ads account you wish to connect. </p>



<p>Once that&#8217;s done, simply click the &#8216;Confirm&#8217; button at the top. </p>



<figure class="wp-block-image size-full"><img width="680" height="197" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/select-your-google-ads-account-1.PNG" alt="Select your google ads account" class="wp-image-162269" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/select-your-google-ads-account-1.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/select-your-google-ads-account-1-300x87.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You will now see the Google Ads account that you want to link. </p>



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



<figure class="wp-block-image size-full"><img width="680" height="323" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/see-selected-google-ads-account.PNG" alt="See selected google ads account" class="wp-image-162272" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/see-selected-google-ads-account.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/see-selected-google-ads-account-300x143.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>In the next step, Google Analytics will give you options to enable personalized advertising and enable auto-tagging. </p>



<p>You can use the default settings and click the &#8216;Next&#8217; button. </p>



<figure class="wp-block-image size-full"><img width="680" height="342" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/change-configure-settings.PNG" alt="Change configure settings" class="wp-image-162274" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/change-configure-settings.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/change-configure-settings-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you&#8217;ll see a summary of your Link setup settings. </p>



<p>If everything checks out, then go ahead and click the &#8216;Submit&#8217; button. </p>



<figure class="wp-block-image size-full"><img width="680" height="372" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/review-and-submit-link-setup.PNG" alt="Review and submit link setup" class="wp-image-162275" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/review-and-submit-link-setup.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/review-and-submit-link-setup-300x164.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You should now see a &#8216;Link Created&#8217; notification in front of your Google Ads account. This means that you&#8217;ve successfully connected Google Ads with Google Analytics. </p>



<p>Do note that it can take up to 24 hours for your Google Ads data to appear in Analytics reports. </p>



<figure class="wp-block-image size-full"><img width="680" height="366" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/see-link-created-notification.PNG" alt="See link created notification" class="wp-image-162278" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/see-link-created-notification.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/see-link-created-notification-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you can view the Google Ads conversion tracking report in Google Analytics 4. </p>



<p>First, you can head to <strong>Acquisition » Traffic acquisition</strong> from the menu on your left and scroll down to see how many visitors came from the Paid Search channel. </p>



<figure class="wp-block-image size-full"><img width="680" height="230" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-paid-search-traffic-1.PNG" alt="View paid search traffic" class="wp-image-162290" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-paid-search-traffic-1.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/view-paid-search-traffic-1-300x101.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you can go to <strong>Acquisition » Acquisition overview</strong> and view the Session Google Ads campaign report. This will show which campaign got the most traffic. </p>



<p>You can also click the &#8216;View Google Ads campaigns&#8217; option at the bottom to view more details. </p>



<figure class="wp-block-image size-full"><img width="680" height="253" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-session-google-ads-campaign-report.PNG" alt="View session google ads campaign report" class="wp-image-162291" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-session-google-ads-campaign-report.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/view-session-google-ads-campaign-report-300x112.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For each campaign, you can see the total number of users, sessions, number of Google Ads clicks, cost per click (CPC), conversions, and more. </p>



<p>Using the information from this report, you can see which campaigns perform the best. </p>



<figure class="wp-block-image size-full"><img width="680" height="304" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-detailed-stats-for-each-campaign.PNG" alt="View detailed stats for each campaign" class="wp-image-162293" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-detailed-stats-for-each-campaign.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/view-detailed-stats-for-each-campaign-300x134.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p><strong>Connect Google Ads with Universal Analytics</strong></p>



<p>If you&#8217;re using Universal Analytics, then you can first log in to your account. </p>



<p>After that, head to the &#8216;Admin&#8217; settings. </p>



<figure class="wp-block-image size-full"><img width="680" height="271" src="https://www.wpbeginner.com/wp-content/uploads/2021/12/click-admin-settings-1.png" alt="Click admin settings" class="wp-image-107080" srcset="https://www.wpbeginner.com/wp-content/uploads/2021/12/click-admin-settings-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2021/12/click-admin-settings-1-300x120.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you&#8217;ll need to go to the <strong>Google Ads Links</strong> option. </p>



<p>You can find the option under the Property column.</p>



<figure class="wp-block-image size-full"><img width="680" height="381" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/go-to-google-ads-links.PNG" alt="Go to Google Ads links" class="wp-image-162296" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/go-to-google-ads-links.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/go-to-google-ads-links-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>On the next screen, you&#8217;ll need to select the Google Ads account you want to connect.</p>



<p> After selecting your account, simply click the &#8216;Continue&#8217; button. </p>



<figure class="wp-block-image size-full"><img width="680" height="319" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/select-google-ads-account.PNG" alt="Select Google ads account" class="wp-image-162297" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/select-google-ads-account.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/select-google-ads-account-300x141.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you will need to enter a Link group title. </p>



<p>You can then select the Views to link with your Google Ads account. Simply click the toggle to <strong>ON</strong> for the correct Views. </p>



<figure class="wp-block-image size-full"><img width="680" height="382" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-link-group-title.PNG" alt="Enter link group title" class="wp-image-162300" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-link-group-title.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/enter-link-group-title-300x169.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Once that&#8217;s done, simply click the &#8216;Link accounts&#8217; button. </p>



<p>Google Analytics will now show a summary of your settings. Simply scroll down and click the &#8216;Done&#8217; button. </p>



<figure class="wp-block-image size-full"><img width="680" height="365" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-done-button.PNG" alt="Click the done button" class="wp-image-162302" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-done-button.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/click-the-done-button-300x161.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>That&#8217;s it. Your Google Ads account will now be linked to the Universal Analytics property. </p>



<p>To view data from your ad campaigns, head to Acquisition » Google Ads » Campaigns from the menu on your left. You can see the number of clicks, cost, CPC, and more for each campaign. </p>



<figure class="wp-block-image size-full"><img width="680" height="304" src="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-google-ads-report-in-UA.PNG" alt="View Google ads report in UA" class="wp-image-162303" srcset="https://www.wpbeginner.com/wp-content/uploads/2023/01/view-google-ads-report-in-UA.PNG 680w, https://www.wpbeginner.com/wp-content/uploads/2023/01/view-google-ads-report-in-UA-300x134.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4>Final Thoughts on Google Ads Conversion Tracking in WordPress</h4>



<p>When it comes to setting up <a href="https://www.wpbeginner.com/beginners-guide/wordpress-conversion-tracking-made-simple-a-step-by-step-guide/" title="WordPress Conversion Tracking Made Simple: A Step-by-Step Guide">any conversion tracking</a>, the most important thing you want to make sure is that the setup is done properly. This is why we use and recommend <a href="https://www.monsterinsights.com/"  title="MonsterInsights - WordPress Analytics Plugin" rel="noopener">MonsterInsights</a> because it just does everything for you behind the scenes without touching any code.</p>



<p>However if you prefer to add code directly on your WordPress site, then you can do that as well by using a plugin like <a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">WPCode</a>. This will help future-proof your customizations. There&#8217;s a <a href="https://wordpress.org/plugins/insert-headers-and-footers"  title="WPCode Free Code Snippet Plugin for WordPress" rel="noopener">free version of WPCode</a> that you can use by following <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)">our tutorial</a> on adding custom code in WordPress.</p>



<p>We hope this article helped you learn how to set up Google Ads conversion tracking in WordPress. You may also want to see our <a href="https://www.wpbeginner.com/wordpress-seo/" title="Ultimate WordPress SEO Guide for Beginners (Step by Step)">ultimate WordPress SEO guide</a> and 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</a> to grow your store. </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-set-up-google-ads-conversion-tracking-in-wordpress/">How to Set Up Google Ads Conversion Tracking 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-set-up-google-ads-conversion-tracking-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
