Thank you for the question but that is a really large plugin to build with a lot of detail in it. You need to start by breaking it down into parts and getting each part done.. sorry for the delay, I hope you were able to get started on it and possibly finish it. Good luck.
I am amazed how such complicated topics (or atleast made sound and appear complicated by others) you always explain so easily. And i must also praise your voice clarity and pitch. It brings harmony to my ears. I usually watch english movies with subtitles as i can't understand english so clearly but with your videos, no subtitles needed. God bless you man !
I hope you found a solution for this.. If not, let me know and I will make a video about it. Trying to catch up on comments that I missed. Thank you for watching and commenting. If you haven't already, please check out my latest video: A Day In the life of a software engineer. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Z8GluDQ2U-E.html
Hi, it's great content you have posted for Wordpress. I find it to be concise yet powerful and your style of delivery very effectively sends the message across. How would you choose between a custom post type approach or creating a new table in the database when developing a plugin?
Hi, thanks for the comment and question. I would only create new tables if you really know what you are doing with creating database tables. Most of the time, a custom post type will handle most types of data. I typically only create database tables when I need a taxonomy table to have more items indexed. I get annoyed when I install a plugin that has 4 or 5 tables. I recently worked on a site that had 27 plugins, which isn't that bad but had 72 tables. The other thing about adding tables, is you should remove them when the plugin is deactivated or you end up with a bunch of tables you don't need. I try to find a way to use the tables that come with WordPress but you can create them if you really need them.
Hi there, what is your preferred Wordpress page builder ? I use several though my builder of choice is generally Oxygen. Thanks for your hard work with this video production - fabulous stuff!! 🙂
Thank you. I don't really use a page builder as they all are not built very well. I typically try to develop sites that do not need a page builder or build specific template pages for layouts.
I think this level of teaching speed is good. We can follow easily. And you divide them into pieces easy to digest. I think this formation is good. If you are not an advanced wp coder than it becomes difficult to follow 200+ lines of code in a 20min video. Because there becomes several functions and teacher begins to scroll up and down among different functions everytime which makes audience tired.
Thank you for the comment and suggestion. I like to teach people and let advertisers pay for the video. Most people learning to develop don't have the money to pay for a course. I have had companies offer to sponsor my videos, but it would need to be something that I would actually recommend.
Hello, thanks for tutorial I am getting error at the backend (admin) at the post page (when editind the post) that has the shortcode: Warning: Cannot modify header information - headers already sent by (output started at *****deapro-custom-posttype.php:34) I think it is because the print function, how can I fix it?
Yes, you should always return a shortcode and not print the information. Store the printable information in a variable, and then return that variable. Let me know if that helps. Check out my other videos as I have explained that.
@@jherbison yes, it worked , thank you. the variable here is "content", how many posts can it handle, it must has a limitation as it is a sting, can we just return the posts as they are without storing them in a variable.
Thank you for such a nice comment. Please share the video with anyone that you think would enjoy it. The more views / subscribers, the more videos I can make.
I like how you walked us through on the coding. But I’ve heard that the upcoming Gutenberg update to the WP core won’t handle short Codes? Maybe I’m wrong...any thoughts?
I have tested Gutenberg and shortcodes work just fine. I have tested with posting them into just a plain text box and they work. I think it will be recommended to convert shortcodes to Gutenberg blocks, but the requirement for that if there ever is a requirement will be years down the road. Let me know if you have any issues with shortcodes in Gutenberg.
Really depends on the API. Would need to see what is returned from the API. Is it an object, array or json? What is the values that are returned? Thank you for the question.
Ah... So this is user data? I wouldn't user a custom post type. I would add them as users like a subscriber. Users is setup to utilize this information already. First you would want to json_decode($data,true) the information, that would put it into an array that would be easy to work with. First argument for json_decode is the returned data from the API, and the second argument (true) is to make it an array. Then you can add that information as a user with code. I can make a video about that.
Thanks. I like to keep it basic. Each project is unique and needs different things. I can do part 2 and add more details. I can add more settings to the custom post type, custom fields and meta boxes for the custom fields.