WordPress Plugin Development - Custom Post Types & Taxonomies Tutorial

preview_player
Показать описание
In this video I cover WordPress Plugin Development Custom Post Types & Taxonomies. We will code a custom WordPress Plugin so we can create Custom Post Types & Taxonomies so we can extend the functionality of WordPress.

When creating a Custom Post Type and Taxonomy, it's best practice to create a plugin for this vs placing the code in your themes functions file.

WordPress Theme Development Video:

WordPress Database Video:

Custom Post Types are great when you want to create a website for selling products, real estate listings or any type of content that doesn't quite fit with pages or posts.

WordPress can hold and display many different types of content. A single item of such a content is generally called a post, although post is also a specific post type. Internally, all the post types are stored in the same place, in the wp_posts database table, but are differentiated by a column called post_type.

Custom post types are new post types you can create. A custom post type can be added to WordPress via the register_post_type() function. This function allows you to define a new post type by its labels, supported features, availability and other specifics.

Taxonomy is one of those words that most people never hear or use. Basically, a taxonomy is a way to group things together.

For example, I might have a bunch of different types of animals. I can group them together according to various characteristics and then assign those groups names. This is something most people encounter in biology classes, and it is known as the Linnaean Taxonomy.

In WordPress, a "taxonomy" is a grouping mechanism for some posts (or links or custom post types).

A WordPress Plugin is the way to go when adding functionality that should not be in a WordPress Theme file.

#wordpress #wordpressplugins #wordpressdevelopment
Рекомендации по теме
Комментарии
Автор

*Thanks for Watching. Share Your Thoughts or ask a Question Below*

PixemWeb
Автор

You are the best developer that actually explains very very clear and provides a huge favor to us. Thank you

neagoeandrei
Автор

Joel, thank you for this wonderful content. I happen to be learning WordPress theme development at this time, the timing couldn't be better. Your channel gives a huge boost of hope and confidence in aspiring WordPress specialists. Keep up the good work pal!

Pochinator
Автор

Great content! Question: with single-tutorials.php and archive-tutorials.php in theme folder, we can't change to another theme because these files will be missing. So, if we deliver a plugin, is there a way to put template files inside plugin folder? Or other solution?
Thank You!

ionitasorin
Автор

Is it better to add plugins inside the plugins folder like you have shown here, or create the mu-plugin folder? What is the common practice?

sororbudwiser
Автор

Love this!! Finally got a proper way and complete tutorial to do this!! Thank you so much! I have a question tho ... Say I want each of my custom post types to have their own unique categories, how can I go about to achieve that please?

savvycreativeadventurer
Автор

Thanks for the tutorial! Could you use a black/dark screen. It's a little difficult to watch coding videos on a white screen. Once again thank you for creating this video!

edwinscott
Автор

I've been following some of your tutorials and my theme is starting to shape up. I was wondering, how to add custom fields to my custom post type, without relying on plugins ?

aciraxeroteam
Автор

I don't understand what capability_type=>post is used for here, if we are not setting the user roles for it. You say we can set it it to 'post' as regular blog post and you will be able to use taxonomies with it, what do you mean by this?

sororbudwiser
Автор

nice lecture sir but please explain me that how to create plugin for shortcode to get custom post type

roopampanchal
Автор

Sir can u please tell me what's the use of __() inside this array, and why we are using that domain name, and the name in admin bar and on page as well not showing the same, I have mentioned book but it's showing post, neither that category, featured images n all, need some help regarding this if u can do this kindness to me

subodharya
Автор

Lets say I want to create a plugin with its own tables, is it possible? and create the tables when it is activated

munandisichali
Автор

WHAT IF I WANT OT CREATE MORE THAN ONE POST TYPE LIKE PROJECTS, PUBLICATIONS, GALLERY ETC... CAN I CREATE ALL THE FUNCTION IN ONE PLUGIN?

lilliangaladima
Автор

Maybe someone knows where EnotGlobal can get cracked?

ananthukd
Автор

hi, can you share me your soure code ? thanks u

hieutong
Автор

can you give me this plugin files? i actually learn and customize this

muhammadfahim
Автор

Thank you, Good tutoriel , You can giv me your code pleace

studiodesigner
Автор

I'm sorry I just can't watching you explaining every single key stroke you hit...
"Here's a comma, here's a double quote, here's a parenthesis...".
One watching this should at least know basic PHP syntax. I thought this was a plugin tutorial not PHP syntax tutorial.

winter-survivor