So far we have covered a half of custom post types and ready to set up or add custom fields in these CPTs. These custom fields are used to add the custom content in WordPress post editor page.
WordPress reading settings don’t actually show summaries or post excerpts of posts on the archive pages. It’s used to specify what you want to show at the feed, either summaries or full text? The difference is that the selection is for feed, not the archive pages.
You just need a function to add Custom Taxonomies to Custom Post Types. In previous article we made WordPress default taxonomies called Category & Tag to support our CPTs. Here we are going to create custom taxonomies for them.
You can add default WordPress Categories and Tags taxonomies to Custom Post Types through passing taxonomies parameters to arguments. In previous article we had learnt how to create CPT using code in functions.php. Here I will explain how can you use WordPress default built-in taxonomies like Categories and Tags with those CPT.
Screen Options Not Working / Saving in WordPress Dashboard is a very irritating problem. Once you update / save any screen option and it doesn’t work at all. Or does only once and fails on next page reload.
We always use Modal as Popup in Bootstrap. But just with a little PHP & CSS, we can use it direct as page content. It’s useful when we want modal to behave as expected, popup at most of pages in our Bootstrap 4 powered web application. But wish to put it directly on a particular page with same content on popup.
You can easily add Target, CSS Class, Title, Rel or even some description to a WordPress Menu. Defining target, CSS class, adding title or rel (relation) attribute to navigation links in WordPress menu is already given under Appearance > Menus which makes you have more control over nav items.
Caching in WordPress using Transients API can store the data which have an expiration time. After the data has expired or not available, we can run code to grab data and catch it again. Transients API in WordPress makes caching process very easier to store a data for limited time.
Want to convert a Bootstrap 4 nav menu dropdown to a multi column container or mega menu? Or need a navbar that breaks navigation links into responsive Bootstrap 4 columns, even in WordPress. Check the attached image to know what I have meant.
Custom Post Types in WordPress is the feature which makes WordPress so popular content management platform. By default Post, Page and 5 others are post types available in WordPress. A few example of Custom Post Types are Portfolio, Project, Contact Form 7 or Product in WooCommerce etc.