<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alston Chan</title>
    <description>The latest articles on DEV Community by Alston Chan (@alstonchan).</description>
    <link>https://dev.to/alstonchan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1012195%2Fe938c426-bc04-4a3d-af22-80e916d1866c.jpg</url>
      <title>DEV Community: Alston Chan</title>
      <link>https://dev.to/alstonchan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alstonchan"/>
    <language>en</language>
    <item>
      <title>Wordpress Private Custom Post Type (CPT) for Dynamic Content</title>
      <dc:creator>Alston Chan</dc:creator>
      <pubDate>Thu, 02 Feb 2023 02:32:06 +0000</pubDate>
      <link>https://dev.to/alstonchan/wordpress-private-custom-post-type-cpt-for-dynamic-content-klf</link>
      <guid>https://dev.to/alstonchan/wordpress-private-custom-post-type-cpt-for-dynamic-content-klf</guid>
      <description>&lt;p&gt;&lt;em&gt;WordPress&lt;/em&gt;, a content management system, have a default &lt;strong&gt;Posts&lt;/strong&gt; action that is geared towards blogging. This make &lt;em&gt;WordPress&lt;/em&gt; default &lt;strong&gt;Posts&lt;/strong&gt; action unsuitable for dynamic content as managing various items such as product items, blog posts, services, etc… in only one places will make your backend messy very quickly. To solve this, &lt;strong&gt;Custom Post Type&lt;/strong&gt; will be utilized to keep everything tidy and easy to organize.&lt;/p&gt;

&lt;p&gt;We would have to install some plugins to enable &lt;strong&gt;Custom Post Type&lt;/strong&gt;, as &lt;em&gt;WordPress&lt;/em&gt; doesn't have this feature natively. These are the plugins that will be used to accomplish it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://wordpress.org/plugins/advanced-custom-fields/" rel="noopener noreferrer"&gt;Advanced Custom Fields&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://wordpress.org/plugins/custom-post-type-ui/" rel="noopener noreferrer"&gt;Custom Post Type UI&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this article, only the free version is required to make this work, so you don't have to worry about upgrading to the premium version to follow along.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started with ACS
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Firstly, install two of these plugins at the &lt;strong&gt;Plugins section&lt;/strong&gt;, and activate them once the installation is finished.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You should now see a new entry called &lt;strong&gt;Custom Fields&lt;/strong&gt; at the sidebar if your installation is successful, like the figure below.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ejpqzjvelcanoo5222c.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0ejpqzjvelcanoo5222c.jpg" alt="Figure 1" width="163" height="142"&gt;&lt;/a&gt;&lt;br&gt;
Now, hover over &lt;strong&gt;Custom Fields&lt;/strong&gt; and select &lt;em&gt;Add New&lt;/em&gt;, this will let you create a new &lt;strong&gt;Meta Field Group&lt;/strong&gt;, which can group your content in a meaningful way and makes organizing easier. For example, you may have one group named &lt;em&gt;Products&lt;/em&gt;, and have another named &lt;em&gt;Achievements&lt;/em&gt;, so you can add your content to the respective collection instead of mixing up everything in the default &lt;strong&gt;Post&lt;/strong&gt; collection.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You should see the interface like the figure below when you are on &lt;em&gt;Add New&lt;/em&gt; section.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdtmfcv6smub0yyutm5b6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdtmfcv6smub0yyutm5b6.jpg" alt="Figure 2" width="800" height="595"&gt;&lt;/a&gt;&lt;br&gt;
Think of a meaningful name for your &lt;strong&gt;Field Group&lt;/strong&gt; name and enter it in the &lt;strong&gt;Add New Field Group&lt;/strong&gt; input box. At the &lt;strong&gt;Settings&lt;/strong&gt; section, the &lt;strong&gt;Location Rules&lt;/strong&gt;, just leave it be like the figure above, we will change that afterward. Then, click open the &lt;strong&gt;Fields&lt;/strong&gt; option, and you are able to add various type of input fields for the content.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvbqrog6910k8ee7d4794.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvbqrog6910k8ee7d4794.jpg" alt="Figure 3" width="800" height="897"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;At the &lt;strong&gt;Field Type&lt;/strong&gt;, there are quite a few option for you to pick at the dropdown menu that fits your content requirements. For example, if you wish to have your employee to be presented, you may need your &lt;em&gt;employee name&lt;/em&gt; as &lt;code&gt;Text&lt;/code&gt; field, &lt;em&gt;age&lt;/em&gt; as &lt;code&gt;Number&lt;/code&gt;, &lt;em&gt;email address&lt;/em&gt; as &lt;code&gt;Email&lt;/code&gt;, personal website as &lt;code&gt;Url&lt;/code&gt;, and so on.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8281l627vgaxujbz7any.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8281l627vgaxujbz7any.jpg" alt="Figure 4" width="800" height="896"&gt;&lt;/a&gt;&lt;br&gt;
Enter your &lt;strong&gt;Field Label&lt;/strong&gt;, and it will automatically add a &lt;strong&gt;Field Name&lt;/strong&gt; for you. You may have a default value if you require it, but in this specific example, no default value is needed, so just leave it empty.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When you are finished with &lt;strong&gt;General&lt;/strong&gt; tab, move on to &lt;strong&gt;Validation&lt;/strong&gt; tab, in here you will see two option, &lt;strong&gt;Required&lt;/strong&gt; and &lt;strong&gt;Character Limit&lt;/strong&gt;. You may set this field as a required field at the &lt;em&gt;Name&lt;/em&gt; field as your employee must have had a name, but for fields like &lt;em&gt;Personal Website&lt;/em&gt;, you might not want to make it a &lt;em&gt;required&lt;/em&gt; field as not everyone have one. You may also specify the maximum character limit to prevent overly long character count to ruin your UI. If you need none of these, just leave it be.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fygpszhre11zvi3lsi4y3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fygpszhre11zvi3lsi4y3.jpg" alt="Figure 5" width="800" height="893"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For the &lt;strong&gt;Presentation&lt;/strong&gt; tab, you may add more customization and info for yourself or anyone that need to add or update the content. You are able to add Instructions to remind the people editing the content, add a placeholder text to give tips of the field value to enter, &lt;strong&gt;Append&lt;/strong&gt; or &lt;strong&gt;Prepend&lt;/strong&gt; character that have to be repeated for this field. You may not always need to have something in this tab, like in our case, we leave it empty.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0gzw6xojzqnjnsrhq9ca.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0gzw6xojzqnjnsrhq9ca.jpg" alt="Figure 6" width="800" height="898"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now, navigate to the &lt;strong&gt;Settings&lt;/strong&gt; section after you are done with the &lt;strong&gt;Fields&lt;/strong&gt; section. Select the &lt;strong&gt;Presentation&lt;/strong&gt; tab and you will see several settings. In most case, it is not needed to tweak anything in the area, and you may just leave it be. This section controls the interface when you are posting or editing the content, the default is already fine.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbdv6bsi2198730uauyu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbdv6bsi2198730uauyu.jpg" alt="Figure 7" width="800" height="900"&gt;&lt;/a&gt;&lt;br&gt;
Once you are finish will all the &lt;strong&gt;Settings&lt;/strong&gt; and &lt;strong&gt;Fields&lt;/strong&gt;, save changes at the top bar. Navigate to the &lt;strong&gt;Field Group&lt;/strong&gt; tab at the &lt;em&gt;WordPress&lt;/em&gt; sidebar, and you should see the new &lt;strong&gt;Field Group&lt;/strong&gt; you have just added.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Create custom post type with CPT UI
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;If you have installed &lt;strong&gt;Custom Post Type UI&lt;/strong&gt; previously, you should have seen a new entry named &lt;strong&gt;CPT UI&lt;/strong&gt; at the &lt;em&gt;WordPress&lt;/em&gt; sidebar. Hover over it and select &lt;strong&gt;Add/Edit Post Types&lt;/strong&gt; option. You should see an interface like the figure below.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2irs1h5arwdt1bnv6bmx.jpg" alt="Figure 8" width="800" height="900"&gt;
&lt;strong&gt;Post Type Slug&lt;/strong&gt; : the word to use for the path, if your value is &lt;em&gt;employee&lt;/em&gt;, when user navigate to "&lt;a href="https://www.yourdomain.com/employee?q=post_id" rel="noopener noreferrer"&gt;https://www.yourdomain.com/employee?q=post_id&lt;/a&gt;", user will be able to see the full page content. This doesn't matter much as we do not want to create a dedicated page for our employee and only wanted to display it all in a page.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the &lt;strong&gt;Plural Label&lt;/strong&gt; and &lt;strong&gt;Singular Label&lt;/strong&gt;, enter your value respectively, for this example, &lt;em&gt;Employees&lt;/em&gt; and &lt;em&gt;Employee&lt;/em&gt; will be used.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;For the &lt;strong&gt;Additionals Labels&lt;/strong&gt; section, it is optional for you to add, and you may leave it empty as I would in this example.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Scroll down to the last section named &lt;strong&gt;Settings&lt;/strong&gt;, there are some setting we have to tweak here to make it a &lt;strong&gt;Private Custom Post Type&lt;/strong&gt;, so it doesn't generate its own dedicated page, to do this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Set &lt;strong&gt;Publicly Queryable&lt;/strong&gt; to &lt;strong&gt;&lt;em&gt;FALSE&lt;/em&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Set &lt;strong&gt;Exclude from Search&lt;/strong&gt; to &lt;strong&gt;&lt;em&gt;TRUE&lt;/em&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Set &lt;strong&gt;Rewrite&lt;/strong&gt; to &lt;strong&gt;&lt;em&gt;FALSE&lt;/em&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;


&lt;/li&gt;

&lt;/ol&gt;

&lt;p&gt;These three steps if important to make it private.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Scroll to the end of the section, at the &lt;strong&gt;Supports&lt;/strong&gt; area, check or uncheck the feature which you need and don't need, so your editor will only have these option for you to focus on.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ensured all settings are properly set and click &lt;strong&gt;Add Post Type&lt;/strong&gt;. You should then see a new &lt;em&gt;post type&lt;/em&gt; showing up at the sidebar.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo7na5ckmt8d0pdcnjy20.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo7na5ckmt8d0pdcnjy20.jpg" alt="Figure 9" width="161" height="296"&gt;&lt;/a&gt;&lt;br&gt;
To make this works with the &lt;strong&gt;Advanced Custom Fields&lt;/strong&gt;, you have to navigate back to &lt;strong&gt;Custom Field&lt;/strong&gt; tabs at the &lt;em&gt;WordPress&lt;/em&gt; sidebar and select the &lt;strong&gt;Fields Group&lt;/strong&gt; that you have just created, in this example, we have created &lt;em&gt;Employee&lt;/em&gt;. So hover over it and click &lt;em&gt;Edit&lt;/em&gt;, go to &lt;strong&gt;Settings&lt;/strong&gt; section and change the &lt;strong&gt;Post&lt;/strong&gt; to the &lt;strong&gt;Field Group&lt;/strong&gt; you created, &lt;em&gt;Employee&lt;/em&gt; in my example.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foe1x45c0wcwaf5uqifwt.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foe1x45c0wcwaf5uqifwt.jpg" alt="Figure 10" width="800" height="318"&gt;&lt;/a&gt;&lt;br&gt;
Save changes and head to the &lt;em&gt;Employees&lt;/em&gt; tab or any &lt;strong&gt;Post Type&lt;/strong&gt; you have just created and &lt;em&gt;Add New&lt;/em&gt;. You should see something similar to the figure below, which have an input section below.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft9d69s6uhif0s5mgfy1b.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft9d69s6uhif0s5mgfy1b.jpg" alt="Figure 11" width="800" height="785"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enter your content according to the input and &lt;em&gt;Publish&lt;/em&gt; it! You have finished creating and posting a content on a &lt;strong&gt;Custom Post Type&lt;/strong&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Render the content
&lt;/h2&gt;

&lt;p&gt;To output the content to your page, you need &lt;strong&gt;Elementor Pro&lt;/strong&gt; version and some sort of premium plugins to be able to add the content with ease. Another Approach is to add a &lt;strong&gt;Shortcode&lt;/strong&gt; to the page to render it. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;acf&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"field_name"&lt;/span&gt; &lt;span class="n"&gt;post_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"post_id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the &lt;code&gt;"field_name"&lt;/code&gt; with your &lt;em&gt;field name&lt;/em&gt; you specify in the &lt;strong&gt;Custom Fields&lt;/strong&gt;, for me, it would be &lt;em&gt;name&lt;/em&gt;  or &lt;em&gt;personal_website&lt;/em&gt;. Check your &lt;strong&gt;Custom Field&lt;/strong&gt; again if you are unsure, you can find your &lt;em&gt;field_name&lt;/em&gt; under the &lt;strong&gt;Name&lt;/strong&gt; column, like the figure below outline with a red circle.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwutv24ya79orf8sbz051.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwutv24ya79orf8sbz051.jpg" alt="Figure 12" width="800" height="363"&gt;&lt;/a&gt;&lt;br&gt;
So I should enter my &lt;strong&gt;Shortcode&lt;/strong&gt; like the following in this example to display one of my employee name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;acf&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"name"&lt;/span&gt; &lt;span class="n"&gt;post_id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"194"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To get your &lt;code&gt;post_id&lt;/code&gt;, install a plugin named &lt;a href="https://wordpress.org/plugins/wpsite-show-ids/" rel="noopener noreferrer"&gt;Show IDs by DraftPress&lt;/a&gt;, and it will display every &lt;code&gt;post_id&lt;/code&gt; when you navigate to the post you have created. You should see your content being rendered if you type everything correctly.&lt;/p&gt;

&lt;p&gt;Thanks for reading, and have a nice day :)&lt;/p&gt;

&lt;h2&gt;
  
  
  Reference
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://wordpress.stackexchange.com/questions/297041/how-to-create-a-custom-post-type-without-letting-wordpress-assign-a-url" rel="noopener noreferrer"&gt;How to create a custom post type without letting Wordpress assign a URL - WordPress Development Stack Exchange&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://wordpress.stackexchange.com/questions/118970/set-posts-of-a-custom-post-type-to-be-private-by-default" rel="noopener noreferrer"&gt;Set posts of a custom post type to be private by default? - WordPress Development Stack Exchange&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=UztqnNoLS7E&amp;amp;t" rel="noopener noreferrer"&gt;How To Use Dynamic Content in WordPress - Beginners Guide 2021 - YouTube&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://codex.wordpress.org/Shortcode_API" rel="noopener noreferrer"&gt;Shortcode API « WordPress Codex&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://wpcodeus.com/how-to-add-php-code-to-elementor/" rel="noopener noreferrer"&gt;How to add PHP Code to Elementor - WP Codeus&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/" rel="noopener noreferrer"&gt;ACF | Displaying values in your theme&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.advancedcustomfields.com/resources/code-examples/" rel="noopener noreferrer"&gt;ACF | Code Examples&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/4773186/shortcodes-inside-a-shortcode-wordpress" rel="noopener noreferrer"&gt;php - Shortcodes inside a shortcode - wordpress - Stack Overflow&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>cryptocurrency</category>
      <category>crypto</category>
      <category>web3</category>
      <category>offers</category>
    </item>
  </channel>
</rss>
