<?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>Advanced Topics - CODIBU</title>
	<atom:link href="https://help.codibu.com/kbtopic/advanced-topics/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.codibu.com</link>
	<description>Hosting &#38; Domain,  Development &#38; Design, SEO &#38; Marketing, 2300+ Themes &#38; Plugins, Free SEO analysis &#38; tools</description>
	<lastBuildDate>Wed, 04 Nov 2020 09:19:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://help.codibu.com/wp-content/uploads/2022/07/favicon.png</url>
	<title>Advanced Topics - CODIBU</title>
	<link>https://help.codibu.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Custom Fields</title>
		<link>https://help.codibu.com/blog/custom-fields/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=custom-fields</link>
					<comments>https://help.codibu.com/blog/custom-fields/#respond</comments>
		
		<dc:creator><![CDATA[JN C]]></dc:creator>
		<pubDate>Wed, 04 Nov 2020 09:19:20 +0000</pubDate>
				<guid isPermaLink="false">https://help.codibu.com/kb/custom-fields/</guid>

					<description><![CDATA[<p>WordPress has the ability to allow post authors to assign custom fields to a post. This arbitrary extra information is known as metadata. This metadata can include bits of<span class="excerpt-hellip"> […]</span></p>
<p>The post <a href="https://help.codibu.com/blog/custom-fields/">Custom Fields</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>WordPress has the ability to allow post authors to assign custom fields to a post. This arbitrary extra information is known as <strong>metadata</strong>. This <strong>metadata</strong> can include bits of information such as:</p>
<ul>
<li><strong>Mood:</strong> Happy</li>
<li><strong>Currently Reading:</strong> Cinderella</li>
<li><strong>Listening To:</strong> Rock Around the Clock</li>
<li><strong>Weather:</strong> Hot and humid</li>
</ul>
<p>With some extra coding, it is possible to achieve more complex actions, such as using the <strong>metadata</strong> to store an expiration date for a post.</p>
<p>Metadata is handled with <strong>key/value</strong> pairs. The <strong>key</strong> is the name of the metadata element. The <strong>value</strong> is the information that will appear in the metadata list on each individual post that the information is associated with.</p>
<p><strong>Keys</strong> can be used more than once per post. For example, if you were reading two different books (perhaps a technical book at work and a fiction at home), you could create a “reading” key and use it twice on the same post, once for each book.</p>
<p>Here is an example of what this information might look like on your post:</p>
<pre class="wp-block-preformatted"><strong>Currently Reading</strong>: <em>Calvin and Hobbes</em>
<strong>Today's Mood</strong>: <em>Jolly and Happy</em></pre>
<h2 id="usage" class="toc-heading" tabindex="-1">Usage <a class="anchor" href="https://help.codibu.com/blog/kb/custom-fields/#usage"><span aria-hidden="true">#</span></a></h2>
<p>Based upon our example above, let’s add two custom fields, one called “Currently Reading” and the other “Today’s Mood”. Please follow the below steps to add this information to a post using Custom Fields.</p>
<ol>
<li>Custom Fields options on the Post &amp; Page edit screens are hidden by default if they have not been used before. Using the Block Editor, click the three dots button at the top of the right sidebar and visit <strong>Options</strong> to enable it. (If you are using the Classic editor, check the <a href="https://help.codibu.com/blog/kb/administration-screens/#screen-options">screen options</a>).</li>
<li>After you have written your post, scroll down to the area titled <strong>Custom Fields</strong>.</li>
<li>To create a new <strong>Custom Field</strong> called “Currently Reading”, enter the text “Currently Reading” (without the quotes) in the text entry field titled <strong>Name</strong>.</li>
<li>The newly created <strong>Key</strong> (“Currently Reading”) should now be assigned a <strong>Value</strong>, which in our case is the name of the book currently being read, “Calvin and Hobbes”. Type “Calvin and Hobbes” in the <em>Value</em> field, again without the quotes.</li>
<li>Click <strong>Add Custom Field</strong> button to save this custom information for that post.</li>
</ol>
<figure class="wp-block-image"><a href="https://help.codibu.com/wp-content/uploads/2020/11/custom_field_example.jpg"><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-11904" src="https://help.codibu.com/wp-content/uploads/2020/11/custom_field_example.jpg" alt="" width="658" height="294" /></a><br /><figcaption>Custom Fields</figcaption></figure>
<p>To add your “Today’s Mood”, repeat the process and add “Today’s Mood” to the <strong>key</strong> and a description of your mood in the <strong>value</strong> text boxes and click <strong>Add Custom Field </strong>to save this information with the post.</p>
<p>On your next post, you can add a new book and mood to your metadata. In the <strong>Custom Fields</strong> section, the <strong>Key</strong> will now feature a pull-down list with the previously entered Custom Fields. Choose “Currently Reading” and then enter the new book you are reading in the <strong>value</strong>. Click <strong>Add Custom Field</strong> and then repeat the process to add “Today’s Mood”.</p>
<p>You only need to create a new “KEY” <strong>once</strong>, after which you can assign a value to that key for every post, if you so desire. You can also assign more than one <em>Value</em> to a key, for a post. This will come in handy for people who read more than one book at a time.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/custom-fields/#top">Top ↑</a></p>
<h2 id="displaying-custom-fields" class="toc-heading" tabindex="-1">Displaying Custom Fields <a class="anchor" href="https://help.codibu.com/blog/kb/custom-fields/#displaying-custom-fields"><span aria-hidden="true">#</span></a></h2>
<p>To display the Custom Fields for each post, you have to use a template tag that customizes your theme. For more details about it, please refer to:</p>
<ul>
<li>the_meta() – Template tag that automatically lists all Custom Fields of a post</li>
<li>get_post_custom() and get_post_meta() – Retrieves one or all metadata of a post.</li>
<li>get_post_custom_values() – Retrieves values for a custom post field.</li>
<li>Template Tags – WordPress Theme Developers Handbook page on Template Tags</li>
</ul>
<p>You may install Plugin that manages custom fields.</p>
<ul>
<li><a href="https://wordpress.org/plugins/meta-box/">Meta Box plugin</a> – Plugin that allows you to create custom meta boxes and custom fields.</li>
<li><a href="https://wordpress.org/plugins/piklist/">Piklist</a> – Plugin that allows you to create custom meta boxes and fields everywhere in WordPress.</li>
<li><a href="https://wordpress.org/plugins/advanced-custom-fields/" target="_blank" rel="noreferrer noopener" aria-label="Meta Box plugin - Plugin that allows you to create custom meta boxes and custom fields. Piklist - Plugin that allows you to create custom meta boxes and fields everywhere in WordPress. Advanced Custom Fields (opens in a new tab)">Advanced Custom Fields</a> – Plugin that allows you to create complex fields and layouts using a user friendly interface.</li>
</ul><p>The post <a href="https://help.codibu.com/blog/custom-fields/">Custom Fields</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://help.codibu.com/blog/custom-fields/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Post Types</title>
		<link>https://help.codibu.com/blog/post-types/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=post-types</link>
					<comments>https://help.codibu.com/blog/post-types/#respond</comments>
		
		<dc:creator><![CDATA[JN C]]></dc:creator>
		<pubDate>Wed, 04 Nov 2020 09:19:18 +0000</pubDate>
				<guid isPermaLink="false">https://help.codibu.com/kb/post-types/</guid>

					<description><![CDATA[<p>WordPress houses lots of different types of content and they are divided into something called Post Types. A single item is called a post however this is also the<span class="excerpt-hellip"> […]</span></p>
<p>The post <a href="https://help.codibu.com/blog/post-types/">Post Types</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>WordPress houses lots of different types of content and they are divided into something called <strong><em>Post Types</em></strong>. A single item is called a <em><strong>post</strong></em> however this is also the name of a standard post type called <em><strong>posts</strong></em>. By default WordPress comes with a few different post types which are all stored in the database under the <em><strong>wp_posts</strong></em> table.</p>
<h2 id="default-post-types" class="toc-heading" tabindex="-1">Default Post Types <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#default-post-types"><span aria-hidden="true">#</span></a></h2>
<p>The default post types that are always included within a WordPress installation unless otherwise removed are:</p>
<ul>
<li>Posts</li>
<li>Pages</li>
<li>Attachments</li>
<li>Revisions</li>
<li>Navigation Menus</li>
<li>Custom CSS</li>
<li>Changesets</li>
</ul>
<h3 id="posts" class="toc-heading" tabindex="-1">Posts <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#posts"><span aria-hidden="true">#</span></a></h3>
<p>A <strong><em>post</em></strong> in WordPress is a <em>post type</em> that is typical for, and most used by blogs. <em>Posts</em> are normally displayed in a blog in reverse sequential order by time (newest posts first). Posts are also used for creating RSS feeds.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/post-types/#top">Top ↑</a></p>
<h3 id="pages" class="toc-heading" tabindex="-1">Pages <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#pages"><span aria-hidden="true">#</span></a></h3>
<p>A page is similar to posts however they have some very important differences. Pages aren’t displayed in a reversed time-based order. They can also be placed into a hierarchical order where a page can be the parent or child of another page creating a page structure. Traditionally, pages also do not make use of categories and tags like posts do.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/post-types/#top">Top ↑</a></p>
<h3 id="attachments" class="toc-heading" tabindex="-1">Attachments <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#attachments"><span aria-hidden="true">#</span></a></h3>
<p>Attachments are another post type that is special as these hold information about any media that is uploaded to your WordPress website. Not only is the main post information stored where other posts are, attachments also make use of the wp_postmeta table for storing extra information like metadata for images and videos that you’ve added.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/post-types/#top">Top ↑</a></p>
<h3 id="revisions" class="toc-heading" tabindex="-1">Revisions <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#revisions"><span aria-hidden="true">#</span></a></h3>
<p>Revisions are a particularly special post type as they are used to create a history of other post types in case you make a mistake and want to rollback to a previous version. Whilst you technically can’t edit revisions directly unless you restore a revision, they are editable just like posts and are stored in the <em><strong>wp_posts</strong></em> table like any other post type.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/post-types/#top">Top ↑</a></p>
<h3 id="menus" class="toc-heading" tabindex="-1">Menus <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#menus"><span aria-hidden="true">#</span></a></h3>
<p>Menus in WordPress are lists of links that can be used to navigate your website. This allows you to create custom lists of links to various locations on your website that is used by your visitors and are edited in the theme section of the dashboard away from traditional post types like posts or pages.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/post-types/#top">Top ↑</a></p>
<h3 id="custom-css" class="toc-heading" tabindex="-1">Custom CSS <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#custom-css"><span aria-hidden="true">#</span></a></h3>
<p>Custom CSS is a theme specific post type used to store CSS saved from The Customizers <em><strong>Additional CSS</strong></em> screen. Each theme can have its own custom CSS post but only the active themes `custom_css` post is actually used.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/post-types/#top">Top ↑</a></p>
<h3 id="changesets" class="toc-heading" tabindex="-1">Changesets <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#changesets"><span aria-hidden="true">#</span></a></h3>
<p>Changesets are similar to revisions but specifically for the Customizer. This is to keep the Customizer in a persistent state. WordPress will attempt to keep content changes made through the Customizer during the user session in a `customize_changeset` post and attempt to restore them should you exit your current session.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/post-types/#top">Top ↑</a></p>
<h2 id="custom-post-types" class="toc-heading" tabindex="-1">Custom Post Types <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#custom-post-types"><span aria-hidden="true">#</span></a></h2>
<p>Whilst there are already lots of standard post types within WordPress, you may want to extend the amount of post types you have if you want to break things down into smaller categories. For example, if you want to have a section on Books, it would be better suited to creating a custom post type for them. This can be done using the register_post_type function.</p>
<p>It’s highly recommended that you define custom post types within a plugin or must-use plugin to ensure that if you switch themes, the post type isn’t lost. That way you can ensure your content is always accessible.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/post-types/#top">Top ↑</a></p>
<h2 id="template-files" class="toc-heading" tabindex="-1">Template Files <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#template-files"><span aria-hidden="true">#</span></a></h2>
<p>By default WordPress makes use of the index.php, single.php and archive.php files in a theme to display posts of any type of the front-end of a website. However, if you’ve made a custom post type, you may find that you want to show this information in a different way to other types. You can do this by using post type specific custom templates within your theme.</p>
<p>If you create a post type called Books like in the example above, you can create a template file called single-books.php which will show the individual book posts that you publish. Again, to show all your books in a custom archive page (where they are all listed), you can create an archive-books.php template file and this will show all the book posts that you’ve published.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/post-types/#top">Top ↑</a></p>
<h2 id="post-type-queries" class="toc-heading" tabindex="-1">Post Type Queries <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#post-type-queries"><span aria-hidden="true">#</span></a></h2>
<p>In the event that you want to get a list of your custom posts called Books, you can create a new WP_Query instance and fetch them all. This is handy if you want to create a custom loop somewhere on your website and show them in a different way to other posts.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/post-types/#top">Top ↑</a></p>
<h2 id="the-posts-query" class="toc-heading" tabindex="-1">The Posts Query <a class="anchor" href="https://help.codibu.com/blog/kb/post-types/#the-posts-query"><span aria-hidden="true">#</span></a></h2>
<p>You might find that in some cases you want to include custom posts into your main query of blog posts. You can do this by using the pre_get_posts filter hook which lets you customize the query that gets your posts before it’s shown on the front-end of the website.</p><p>The post <a href="https://help.codibu.com/blog/post-types/">Post Types</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://help.codibu.com/blog/post-types/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Taxonomies</title>
		<link>https://help.codibu.com/blog/taxonomies/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=taxonomies</link>
					<comments>https://help.codibu.com/blog/taxonomies/#respond</comments>
		
		<dc:creator><![CDATA[JN C]]></dc:creator>
		<pubDate>Wed, 04 Nov 2020 09:19:15 +0000</pubDate>
				<guid isPermaLink="false">https://help.codibu.com/kb/taxonomies/</guid>

					<description><![CDATA[<p>A taxonomy within WordPress is a way of grouping posts together based on a select number of relationships. By default, a standard post will have two<span class="excerpt-hellip"> […]</span></p>
<p>The post <a href="https://help.codibu.com/blog/taxonomies/">Taxonomies</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>A taxonomy within WordPress is a way of grouping posts together based on a select number of relationships. By default, a standard post will have two taxonomy types called Categories and Tags which are a handy way of ensuring related content on your website is easy for visitors to find. These two types of taxonomies are included in WordPress by default, but just like any other taxonomy, can be removed or changed and you can even add more if you like.</p>
<h2 id="taxonomies-terms" class="toc-heading" tabindex="-1">Taxonomies &amp; Terms <a class="anchor" href="https://help.codibu.com/blog/kb/taxonomies/#taxonomies-terms"><span aria-hidden="true">#</span></a></h2>
<p>The relationship between taxonomies and terms is rather simple; think of taxonomies as the ‘parent’ and terms as the ‘children’. For example, a taxonomy called ‘Recipes’ for the ‘Food’ post type could have multiple terms such as ‘Vegetarian’ or ‘Fresh’, ‘Easy Cooking’.</p>
<p>Another example is where you might have a post type called Reviews and a new post called ‘Best Films of The Year’. You can help define this content by having a taxonomy called ‘Films’ and create new terms such ‘Top Picks’ or ‘Film Reviews’. All this does is help define your content into smaller chunks making it much easier to find and focus on.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/taxonomies/#top">Top </a><a href="https://help.codibu.com/blog/kb/taxonomies/#top">↑</a></p>
<h2 id="new-taxonomies-terms" class="toc-heading" tabindex="-1">New Taxonomies &amp; Terms <a class="anchor" href="https://help.codibu.com/blog/kb/taxonomies/#new-taxonomies-terms"><span aria-hidden="true">#</span></a></h2>
<p>As of WordPress version 2.3 you can create your own taxonomies for use on your website or blog with a small amount of code. You can also create an unlimited amount of terms if you wish which can be done within the dashboard user interface once the taxonomies have been created.</p>
<p class="toc-jump"><a href="https://help.codibu.com/blog/kb/taxonomies/#top">Top</a><a href="https://help.codibu.com/blog/kb/taxonomies/#top"> ↑</a></p>
<h2 id="extending-taxonomies" class="toc-heading" tabindex="-1">Extending Taxonomies <a class="anchor" href="https://help.codibu.com/blog/kb/taxonomies/#extending-taxonomies"><span aria-hidden="true">#</span></a></h2>
<p>Depending on whether your theme and plugins allow it, you can also extend the functionality of taxonomies and their terms to improve the categorisation of the content. This means that you can create taxonomy specific templates in your themes and also add new filtering options to look for posts in the dashboard too.</p><p>The post <a href="https://help.codibu.com/blog/taxonomies/">Taxonomies</a> first appeared on <a href="https://help.codibu.com">CODIBU</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://help.codibu.com/blog/taxonomies/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
