How To Create A WordPress Custom Post Type Without A Plugin

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น •

  • @wplearninglab
    @wplearninglab  6 ปีที่แล้ว +3

    If you enjoyed this video don't forget to the like it and subscribe! Then check out this playlist focused on adding functionality to Wordpress without a plugin: th-cam.com/video/I4ciH6RrfM8/w-d-xo.html

    • @Nellyrcb
      @Nellyrcb 6 ปีที่แล้ว +1

      Please follow up. I dont really care how you plan to add functionality specifically, but I have a few recommendations that may be informative.... for me at least lol.

    • @Nellyrcb
      @Nellyrcb 6 ปีที่แล้ว +1

      And I appreciate how simple you made this. The information to do just about everything known to man is only one click away, you just have to know where to click. Thanks, have a great day!

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Hi Jesse, I’m putting together the followup this week. I’m just getting over a cold. I can’t record it because is sound like a frog right now :(
      I’m all ears for suggestions on what you would like to see in there. If I have too many suggestions I’ll just split it into two tutorials or something.
      Anyway, thanks for watching!

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Lol, Jesse. I saw something similar whenever someone says I’m good with computers. I saw “I just click the right things in the right order.”

    • @TopHomeDesign
      @TopHomeDesign 6 ปีที่แล้ว

      OK so once this is done how do I create a custom post template that has no sidebar?

  • @bizzle350
    @bizzle350 6 ปีที่แล้ว

    Note for new viewers: Really starts at 2:22.
    He starts out with a verbal introduction and discount pitch. Then he doesn't edit out a blooper when he couldn't find the right theme in the beginning.
    Thumbs Up for the code included and video.

  • @alexandrudorinelana7561
    @alexandrudorinelana7561 3 ปีที่แล้ว +2

    Very good and straightforward video!
    I managed to set everything up in the first go.
    Thanks for the awesome tutorial ;)

  • @edmilner
    @edmilner 5 ปีที่แล้ว +6

    Very informative video. A note of caution; if you rename a php file such as functions.php and alter the suffix it will become readable to the world which may be a security issue. So in this case it is better to back up functions.php as functions-bkp.php rather than functions.php-bkp.

    • @wplearninglab
      @wplearninglab  5 ปีที่แล้ว +2

      That's smart, thanks for the tip Ed!

  • @dariialeliukh6781
    @dariialeliukh6781 4 ปีที่แล้ว +1

    I'm coming back to this video for the second time, it means a lot. Thanks! Great tutorial!

    • @wplearninglab
      @wplearninglab  4 ปีที่แล้ว

      Thanks for coming back Dariia, I'm happy to help! Thanks for watching!

  • @teamleadworkspace5081
    @teamleadworkspace5081 3 ปีที่แล้ว +1

    Hi Bjorn
    Thank you for sharing your knowledge with us - I am learning a lot...
    Dumb newbie question though, if the new custom post type is set up in the functions.php file, does that mean it is 're-created' every time the site is accessed (and the functions.php file is run)?
    If so, is there a way to just set it up in the database once only?
    Many thanks, Richard

  • @Designersnexusinc
    @Designersnexusinc 5 ปีที่แล้ว +3

    Thank you. It’s a very nice tutorial. I now actually have an understanding how plugin works. Would love to see more. What particularly picked my interest is how you fixed the changes in URL. My question is if URL is changed later, but the link to the custom post was used somewhere else like in another post or as reference by some other site, would the change in URL break the link returning 404 page? Would it have to be mentally redirected in order to get to the post from the old link?

    • @wplearninglab
      @wplearninglab  5 ปีที่แล้ว

      Yes, what you're describing would generate a 404. Any time a URL change is made on your site, then next thing you do is create a redirect. Usually a 301 redirect from the old page to the new one. I have tutorials for that here: with a plugin ( th-cam.com/video/_r6yWJHy-m4/w-d-xo.html ), without a plugin ( th-cam.com/video/xgWPIu8hnG8/w-d-xo.html ). I hope that helps :) Let me know if you have any further questions. Thanks for watching!

  • @jeffkyle6910
    @jeffkyle6910 6 ปีที่แล้ว +4

    Thanks for this. Yes, please do another video detailing more things that can be added to custom post types using this method.

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว +1

      Hi Jeff,
      That one is on my list and coming soon!

    • @GinaAnagnostopoulou
      @GinaAnagnostopoulou 6 ปีที่แล้ว

      @@wplearninglab Great video. Yes, please, add some more on how to enhance Custom Post Types.

    • @dan280
      @dan280 5 ปีที่แล้ว

      @@wplearninglab Have you managed to create one yet? I'd love to see it.

  • @MeloIZCor3
    @MeloIZCor3 5 ปีที่แล้ว +2

    You are a saviour, my friend.

    • @wplearninglab
      @wplearninglab  5 ปีที่แล้ว

      I'm happy to help. Thanks for watching!

  • @meeryums
    @meeryums 3 ปีที่แล้ว +1

    Thank you! This was so helpful. Especially for the beginners. :)

    • @wplearninglab
      @wplearninglab  3 ปีที่แล้ว

      You’re welcome Mariyam, I'm happy I could help. Thanks for watching!

  • @jamesbreen2477
    @jamesbreen2477 6 ปีที่แล้ว +1

    Yes, Please another video with more advanced features for CPT's ... Awsome

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Hi James, a video with advanced CPT features is already in the works :) Thanks for watching!

  • @virgobeautygg
    @virgobeautygg 4 ปีที่แล้ว

    Is there a video by you or article that shows how to make the custom post type included in the search results on WP? I'm not having much success on accomplishing this task.

  • @maximerignol6400
    @maximerignol6400 5 ปีที่แล้ว

    Hi how do you do if you want do add more than one ?

  • @DeanaSargsian
    @DeanaSargsian 5 ปีที่แล้ว

    I use a theme, and can't rewrite its custom post type args with register_post_type_args filter. Any idea?

  • @addinan
    @addinan 4 ปีที่แล้ว

    how to display that on the front end... with an image???

  • @badgoy7875
    @badgoy7875 2 ปีที่แล้ว

    Hey. Is this possible without creating child theme? I used the same code and it didn't work

  • @s0460205
    @s0460205 6 ปีที่แล้ว +1

    Great video, thanks. Would definitely be great to see what more can be done with the custom post type!

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      It's on the way. I prepped the followup video yesterday. I'll be recording it once I'm over my cold :)

  • @alvarez958
    @alvarez958 6 ปีที่แล้ว

    Hello it is not the same making this staying on my wp dashboard and going edit my php child theme ???? with out going to ftp

  • @rami_standup
    @rami_standup 6 ปีที่แล้ว +2

    Thank you. This was awesome like always and yes it will be great if you make a detailed video.

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Thanks Rami,
      It's on my list :)

  • @josephpascual4439
    @josephpascual4439 4 ปีที่แล้ว

    After creating a custom post type record when I trashed it it just redirect me to the root site page, it doesn't redirect me back to the custom post type record listing (but the post is deleted). Can you help me with this?

  • @akshayahire3243
    @akshayahire3243 6 ปีที่แล้ว +1

    Can you upload a tutorial for create custom texonomie and how to display that textnomi

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Hi Akshay,
      I can and will. I've written the code for the custom taxonomies already (it's in this blog post: wplearninglab.com/wordpress-custom-post-type-functions/ look for the code box with this function: function create_widget_taxonomies()
      If you have PHP skills you'll be able to make this code work. If you need more guidance it's safest to wait for the tutorial where I walk you through it.
      I hope that helps and thanks for watching!

  • @rohitrajani999
    @rohitrajani999 6 ปีที่แล้ว

    Hi, thanks for this video. I need some help - I'm looking to design a loan management system website for a client to manage the entire loan process (application to approval). However, I'm unable to find any plugin or theme for the same. Can you pls help me with this?

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Hi Rohit,
      I assume during the loan process the client would have real people reviewing applications and connecting with people who are requesting loans. Is that correct?

    • @rohitrajani999
      @rohitrajani999 6 ปีที่แล้ว

      Yes, that's correct..

    • @rohitrajani999
      @rohitrajani999 6 ปีที่แล้ว

      Can you help me with this pls?

  • @jameslong289
    @jameslong289 4 ปีที่แล้ว

    Your website is not loading... I can't get the code.

  • @danielwatson6529
    @danielwatson6529 3 ปีที่แล้ว

    oh yes. new sub here,, looking forward to going through you r follow up vids tomorrow moring

  • @hamednaderi7675
    @hamednaderi7675 2 ปีที่แล้ว

    Many thanks!

  • @martinfunkquist5342
    @martinfunkquist5342 5 ปีที่แล้ว +1

    When I updated the function.php file and refreshes the site I don't see anything new appearing in the sidebar. Any ideas why this is happening?

    • @wplearninglab
      @wplearninglab  5 ปีที่แล้ว

      Hi Martin,
      This video shows how to create custom post types which are full pages. I'm not sure what you want to appear in the sidebar? A listing of pages in the custom post type?

  • @johnboyd8053
    @johnboyd8053 6 ปีที่แล้ว +1

    Thanks, Bjorn. As usual, a great video. I recently discovered the Toolset plugin, so I would definitely appreciate any other videos you can create. (If you don't have access to the Toolset plugin, I understand and kindly disregard this comment) I'd like to learn how to make one of the fields created to be a linkable link when shared on a website page. Well, at least, that'd be a great start! lol

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Hi John, I don't have the premium version of that plugin , but there is a free version that may provide enough to create what you're describing.
      Just so I understand more clearly, you want to create a custom field with a url in it. Then have that url appear as a clickable link in a page template that site visitors can click. Is that correct?

    • @johnboyd8053
      @johnboyd8053 6 ปีที่แล้ว

      Yes, that's kinda what I'm after. I'm helping my son with a Real Estate website and I want the address of a home to be clickable so a page with say 10 homes, we could click on the address of one and that would take us to a page with all the particulars of that home. Hopefully, that makes sense. We are not having a problem importing the address via CSV, but then we need that functionality. I can't seem to find an answer anywhere. Thanks!

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Hi John,
      Thanks for the details. What you're describing is possible. One more followup question. The page where the links are being output, is that page a template that you're creating? As in, are you creating a PHP file and writing the PHP code to output the data including the URLs? Are you using a child theme?

    • @johnboyd8053
      @johnboyd8053 6 ปีที่แล้ว

      Hopefully, this will make things a bit clearer, Bjorn. The page where the links are being output is actually one I am creating using Elementor Page Builder. I am indeed using a child theme of GeneratePress. My son is doing the Toolset part and I'm helping by trying to insert a shortcode. It appears that only a "View" outputs the shortcodes, and that "templates" have no shortcode capability. I just can't locate a solution. Again, thanks Bjorn. If you need more information, let me know and I'll do my best to clarify.

  • @alvarez958
    @alvarez958 6 ปีที่แล้ว

    Hello how can I make this post type be modified by Elementor, Please thanks

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Hi Alvarez there is an Elementor add on (go pro) that allows you to create many different template types (including posts whereas My Templates in Elementor doesn't allow posts). It can be found here www.elementoraddons.com/anywhere-elementor-pro/? hopefully that helps Regards Nickie

  • @vinothr8672
    @vinothr8672 5 ปีที่แล้ว

    can you tel this in wordpress
    Create a custom WordPress theme with a custom post type that has 4 custom fields: Title, Content, Categories, Tags.
    Expected behavior: When a user clicks on a category the posts belonging to the category should load via Ajax and should not reload the page.
    The layout and feel of the custom post type to look like the one in the attached screenshot. You are free to have your own font selections. The custom post type must be created with code and not a plugin.

  • @hamzahbb7322
    @hamzahbb7322 4 ปีที่แล้ว

    how to make plugin compare like content egg

  • @nareshbharti
    @nareshbharti ปีที่แล้ว

    Sir please help, how to make mcqs quiz without using plugin

  • @Griffindor21
    @Griffindor21 6 ปีที่แล้ว

    Can you also add how to add custom fields, and also how to get the shortcodes?
    Thanks.

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Hi Marvin,
      I have two different custom fields tutorials you can check out:
      1. Using the advanced custom fields plugin: th-cam.com/video/cUtY_07Q4T0/w-d-xo.html&list=PLlgSvQqMfii43fgFEUia0ooe-7usYdpXc&index=1
      2. Using built-in WP Custom fields without a plugin: th-cam.com/video/QwBeyYP99WY/w-d-xo.html&index=1&list=PLlgSvQqMfii4qdGkBEavOHwqRqEzhhk5d
      I have another one on the way where I show you how to create custom metaboxes inside the WordPress editor without a plugin.
      I hope that helps and thanks for watching!

  • @alvarez958
    @alvarez958 6 ปีที่แล้ว +1

    I would like to create something like "the articles";....... they can be modified by elementor cpt dont !!! :-(

  • @NiteshMori
    @NiteshMori 6 ปีที่แล้ว

    Great video... Thanks.

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      You're welcome Nitesh, thanks for watching!

  • @Shahhure
    @Shahhure 6 ปีที่แล้ว

    Great video! Thanks man you are doing a great job. (Y)

    • @wplearninglab
      @wplearninglab  6 ปีที่แล้ว

      Thanks and thanks for watching!

  • @decombsi
    @decombsi 6 ปีที่แล้ว

    Hi Bjorn, I have an idea that I'm sure you know how to solve. Right now, I'm stumped. It has to do with create multiple single and archive php pages for 3 different topics I have: front page articles (fparticles), news articles (articles) and studies (studies). I've seen solution involving if, ifelse and else, to full blown plugins that are over my head (wordpress.stackexchange.com/questions/113878/multiple-single-templates). TIA, Dave

    • @dan280
      @dan280 5 ปีที่แล้ว

      Did you sort this out in the end? It seems like you'd be better off adding everything to one blog as normal, but using different categories for each.
      You can then show a specific category on a specific page.
      Having said that, the home page should probably just show the most recent posts. So then it would only be two categories: one for news, and another for studies.

  • @agungsukariman
    @agungsukariman 4 ปีที่แล้ว

    Toko Online

  • @morisfalearn3965
    @morisfalearn3965 3 ปีที่แล้ว

    no helpful , all websites learned this , why you created a video???? where is category and tags and ?