WordPress 101 - Part 21: How to create Custom Taxonomies - Part 2

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

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

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

    You are an excellent teacher. This tutorial has incredibly simplified my work. Thank you for the time you've dedicated, and please continue to maintain this channel.

  • @kimnejudne
    @kimnejudne 7 ปีที่แล้ว +5

    Greetings from the Philippines! It's 2017 now and I still find your tutorial very, very helpful. Thank you so much for this. I love your style of teaching. You actually try and answer the questions that beginners, like myself, actually have in mind.

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว +1

      Thank you so much for this beautiful message.
      Happy Coding!

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

      Same here.

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

    This video which was very helpful for me because didn't know past how to apply custom taxonomy front end of theme. Thanks for it.

  • @brandonwilliams1297
    @brandonwilliams1297 7 ปีที่แล้ว +1

    Followed this video series and I learned so much about the inner workings of WP. Things make so much more sense now. Thank you!

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Thank you so much for following the entire series.
      Be sure to check the Premium Development Series, much more things to learn.
      Happy Coding!

  • @MrXrayPL
    @MrXrayPL 8 ปีที่แล้ว +1

    those taxonomies tutorials are a much more interesting than you probably think Alex :D Just few tutorials before i was wondering how the heck could i make another "category" for my portfolio theme designed for my website. So thanks for this tuts a lot man!

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      I'm really happy to hear my tutorials are helpful for you, thank you so much for watching and Happy Coding!

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

    did records about "type" stays in database, when you rename custom taxonomy "type" to "field" ?
    wordpress auto-clean this rows???

  • @deniseismo
    @deniseismo 7 ปีที่แล้ว +1

    Taxonomies are quite tricky! Thanks for the lesson. Also a question: I was able to apply a custom taxonomy to my attachments (images) and it's working fine, but how can I dynamically print the name of the taxonomies depending on the image that gets printed on the frontend?

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Thanks for watching.
      Try to use the wp_get_post_terms method of WP: codex.wordpress.org/Function_Reference/wp_get_post_terms

    • @deniseismo
      @deniseismo 7 ปีที่แล้ว

      Yeah, thanks! I actually found a solution just yesterday with a similar approach through the 'get_the_terms'. It's high time to watch your Premium Theme series.

  • @christiansunnari32
    @christiansunnari32 7 ปีที่แล้ว +1

    This tutorial series saved me. Thanks a lot.

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Happy to hear that 🤗

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

    Learned so much, thank you. One question though: how would one make an archive page containing a category (taxonomy) from a custom post type. Tried naming the file archive-customposttype-taxanomy.php but it can't find my page.

  • @FaizIdris
    @FaizIdris 8 ปีที่แล้ว +1

    Hey, Alex.
    I'd lie toa ask for a help. and I was wondering whether yoou kno, How to make a Taxonomy list custom non hierarchical such as get_the_tag_list?

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      +Aiz Id You can use get_the_term_list() for all type of taxonomies:
      codex.wordpress.org/Function_Reference/get_the_term_list

    • @FaizIdris
      @FaizIdris 8 ปีที่แล้ว

      +Alessandro Castellani Okay, Thanks Alex. It works.
      But, why is it when I clicked the link from taxonomy, the template is not using archive.php?

  • @bestpcdroid8736
    @bestpcdroid8736 8 ปีที่แล้ว +1

    What after this? I mean after this series of tutorial are you having some more videos to develop themes after this?

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว +1

      +BestPCDroid Oh yes, I started a brand new series to develop an amazing premium theme. Check it out: th-cam.com/play/PLriKzYyLb28kpEnFFi9_vJWPf5-_7d3rX.html

    • @bestpcdroid8736
      @bestpcdroid8736 8 ปีที่แล้ว +1

      +Alessandro Castellani Thanks! You're just awesome man and your "Super Simple" techniques are excellent. Keep creating videos like this. :)

  • @krenarlipo1990
    @krenarlipo1990 8 ปีที่แล้ว

    Hey Alex. I'm watching now your series and I have a question. How can I add all the things of the blog page to the home page. So I don't want the carousel, but the blog structure page.

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      +Krenar Lipo Hi, thanks for watching. WordPress by default prints every blog post on the home page, so if you want that you don't have to edit anything. Just have the standard Post Loop in the index.php and all your posts will be printed there.

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

    I did exactly the same as you but my custom 'hierachical' => true taxonomy treats like tags, i figured that out when i commented some labels and the default labels was 'tag' and even the parent category field is not showing in new or edit form, what to do?? I use wp Version 5.3.2

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

      'hierachical' i did not add 'r' letter 'hierarchical' problem solved

  • @m1mmym
    @m1mmym 7 ปีที่แล้ว +1

    Thanks for the lessons! i learned so much from you :D. quick question: how can i display a specific category on custom template? example: display only "development" category on page-portfolio-template.php Thanks

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Hi, thanks for watching. I think you asked me the same on Facebook. We can keep talking there if so :D

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

    Alesssandro - please note files from this lesson are not in GitHub. :-( I got into trouble with changing of 'type' to 'field'! Cheers, Chun

  • @J03lfolkesson
    @J03lfolkesson 7 ปีที่แล้ว +3

    Hey, a quick question: Do you have a tutorial on how to put different posts in a container?
    like.
    Nav-div Display-div
    ----------------- -------------
    | | |content|
    | >>post1 | |in post |
    | post2 | | for |
    | post3 | | post1 |
    | | | |
    | | | |
    | | | |
    -------------- --------------
    or could you please help me with this? love your tutorials, helped me a lot!

  • @RohitSaini-qg2xh
    @RohitSaini-qg2xh 7 ปีที่แล้ว

    Hi alessandro how you doin ! i would like to know how to add a thumbnail support to my custom taxonomy which i created..

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      Did you see the video about creating Custom Post Type? I explained how to do it by using the 'supports' => array()

    • @RohitSaini-qg2xh
      @RohitSaini-qg2xh 7 ปีที่แล้ว

      thanx, i will watch it again, might i missed out the point but i think we used supports for the custom post type not for the taxonomies as i tried to add images to custom taxonomies but wasnt able to. i will surely update you in comments after watching it again. thx a lot castellani..

  • @diegoramos3782
    @diegoramos3782 8 ปีที่แล้ว

    Awesome lessons! Thank you!

  • @mel-182
    @mel-182 8 ปีที่แล้ว

    Hi Alex! Do you have a tutorial where we can add image in custom taxonomy? Please share with me the link if you have or if you have any suggestion please share with me please. :D :D Thanks! I really like your videos, very informative!

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว +1

      I don't have that specific type of tutorial, but in the Premium Development series I explained how to create custom meta boxes for custom post type, and also how to use the built in Media Uploader of WordPress to upload a custom image for a widget.
      Follow that series and I'm sure you'll gain all the knowledge necessary to achieve what you need.
      Happy Coding!

    • @mel-182
      @mel-182 8 ปีที่แล้ว +1

      will check that series! Thank you Alex!

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

    Hi Alessandro ! The error you are getting because of "type" name( slider error ) is because its a keyword in php and you cannot use keywords as names in PHP ( also other languages ), tq great one

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

      Thanks for the heads up

  • @AkidsukiGangstaCat
    @AkidsukiGangstaCat 8 ปีที่แล้ว

    Hi. Alex. Thanks for the video. I set the label to "Software" but "Tags" is displayed. >.

    • @alecaddd
      @alecaddd  8 ปีที่แล้ว

      Did you create a new Taxonomy or you're trying to edit the default one?

    • @AkidsukiGangstaCat
      @AkidsukiGangstaCat 8 ปีที่แล้ว

      I created a new one. testsite14.gangstacat.com/wp-content/uploads/2016/12/screenshot3.jpg testsite14.gangstacat.com/wp-content/uploads/2016/12/screenshot4.jpg

  • @patrick-dev
    @patrick-dev 7 ปีที่แล้ว

    Great tutorial As Always , but Please How can i retrieve the custom taxonomies and the default taxonomies for the blog post in one function , i tried to do that and i thought to tell you if that best practice or i should do it in other way .
    so i thought i can print simple the_category for the normal blog posts like this .
    the_category(', ');
    and do the function after the_category , in order to retrieve them both .
    $terms_list = wp_get_post_terms($post->ID, 'work');
    foreach ( $terms_list as $term ) {
    echo $term->name.', ';
    }

    • @alecaddd
      @alecaddd  7 ปีที่แล้ว

      If you need them all together, you can use the get_post_taxonomies() method: codex.wordpress.org/Function_Reference/get_post_taxonomies

  • @vijaybakhsionyoutub1
    @vijaybakhsionyoutub1 9 ปีที่แล้ว +1

    this is the last lesson ?

    • @alecaddd
      @alecaddd  9 ปีที่แล้ว +1

      +Vijay Bakshi Yes, this is the last lesson of the Beginner Series. I started the Premium Theme Development where I focus on more back-end functionalities, and the process is overall cleaner.
      Enjoy!

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

    These videos are awesome but its advanced for beginner developers a bit :)

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

      Thanks for watching. What was the struggle for you? Let me know how can I make it easier to understand for beginners and I'll try to improve my future tutorials.
      Cheers

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

      Alessandro Castellani Well I'm trying to understand these lots of codes but I forgetting some of them after the lesson every time :( So its hard to remember and maybe I quit from web designer carreer.. (sorry for my English)

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

      These are problems that I have every day, and every developer has every day :D
      It's impossible to remember everything, I constantly look at documentation and code examples online when I'm coding.
      If you can, check my latest Nerd Continuity video, on how to become a Web Developer. Chris and I talked a lot about the misconception of "developers should remember everything".
      Don't give up, it's a hard and long process, but you can do it!

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

    Thanks for your amazing tutorial!!!

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

      You're very welcome :D

  • @mysterokrutnik9002
    @mysterokrutnik9002 9 ปีที่แล้ว +1

    thanks for the lessons:)

    • @alecaddd
      @alecaddd  9 ปีที่แล้ว

      +Myster Okrutnik Thanks for following!

  • @noorsultan2545
    @noorsultan2545 8 ปีที่แล้ว

    thank you kindly Alex you are the best ,i solve the problem but still i couldn't do the walker class even i copy the code and past it
    all the navbar links dispear,thanks alot

  • @mianrizwan-wp-dev
    @mianrizwan-wp-dev 8 ปีที่แล้ว

    you are the Best Man. keep it up

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

    Incidentally, I think it would be nice, but more work for you, is to indicate in GitHub which files got created/changed in that lesson. :-)

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

    Thank you🌷❤

  • @holalabellebille
    @holalabellebille 7 ปีที่แล้ว

    Bravo !
    Oh my god, so the "only" difference between Categories and Tags is Hierarchical / Not hierarchical...
    By the way, I have the same problem of Tags taxonomy appearing on portfolios (like Fields taxo comment on previous video)... at least it is consistant in not displaying what I expected !!
    Other questioning: why of why is wordpress admin NOT displaying the list of all tags (i.e. not hierarchical taxonomy !) in the back office ? this is not user friendly ! (at least for me...)

    • @holalabellebille
      @holalabellebille 7 ปีที่แล้ว

      found out why :
      in functions my custom post type had :
      'taxonomies' => array('category', 'post_tag')
      So I emptied the array
      'taxonomies' => array('')
      and my custom post type was not usiing anymore "regular" taxonomies Category and Tags

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

    ur always get it , thank you alot

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

    For the series "super simply" how convert "terms" in permalink?
    hierarchical
    s15.postimg.cc/si2qdyvpn/link.jpg
    Not hierarchical
    s15.postimg.cc/45edziv8r/link2.jpg
    if for the tag (software) the link generate a 404 error:
    change the permalink (chose anyone) in setting -> Permalink -> save -> Refresh -> Change again permalink -> save again ... and work
    Enjoy :) and cheers!

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

      come sempre la risposta ai miei interrogativi si trova nel video successivo ahahah ....

  • @VasilisKar
    @VasilisKar 8 ปีที่แล้ว +1

    Thaaaaanks..

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

    haha weird bug. Computers are so dumb sometimes...!