Part 24 - WordPress Theme Development - Video Post Format

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

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

  • @subu123ful
    @subu123ful 8 ปีที่แล้ว +9

    I m always waiting for ur tutorial where i can learnt something new. After watching tutorials, not only my technical skill has improved and my workflow has improved. I had no idea about setting api, sass, video post format and i used third party setting api plugin in backend for my theme settings but now i have complete understanding of settins api and oblivious sass for styling. Yes i have learnt all this from u. thank you very much for your help.

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

      +Subhasish Manna Oh wow....I'm honoured...this is amazing!
      These kind of comments are fuel for my engine! Your passion and enthusiasm is what makes me keep going and trying to do better every time.
      Thank you so much!

  • @CyberIllusions
    @CyberIllusions 8 ปีที่แล้ว +2

    This is getting better and better! THX, Alex!!

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

    Hi Alessandro. May I know how to change the video URL in Wordpress video post format? Because when I clicked edit post, there's no link to do that.. only page title, text and images appeared. Same goes on the right panel. Nothing for me to edit. Tried to switch to code editor or standard format.. still nothing that can allow me to change the video URL. Appreciate if you can share the solution. Thanks in advance!

  • @jeff-wo6mm
    @jeff-wo6mm 3 ปีที่แล้ว

    Embed Reponsive isn't working for me. Checked bootstrap to see if the code for this changed but it didn't. Any suggestions? The video size does not change. Can't imagine it's just me then again most of these replies are a couple years old.

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

    i love your tutorial, but how do i add preload icon then hide it after video ready to view?? please help

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

    Again, thumbs up for the Video Tutorials, great stuff!
    However one question occured during the course of this video:
    If for some reason the user forgets to include a media file, in this case a video, the following php error is printed within the front-end "Notice: Undefined offset: 0", telling the user that the array is empty. Is there an approach to handle this in an elegant way?

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

      +lcapocer Oh yes, I'm actually not considering too much these issues, because I'm coding the first layer of everything.
      Towards the end of the series I will simulate the installation of the theme into an empty WP installation, and I will show how to take care of all these weird behaviour and how to optimize everything for the final release!
      Thanks for the heads up!

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

    echo mythemename_get_embeded_media (array ('video', '') );
    When I write that doesn't work!!! Where did you define this function and what's the code, PLEASE send me a video?

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

    Thank you so much! Great tutorial!

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

      Thanks for watching :D

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

    Very very very good. Thanks for all your efforts and work.

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

      You're very welcome :D

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

    Hm, I followed your instructions on creating video post format, but every time I get an Undefined Offset: 0 error in theme-support. I tried your code on GitHub but the same error still persist. This type of error is related to non-existing array in the loop. If you have any suggestions on how to solve this, I would be very grateful.

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

      Hi, thanks for watching. Are you sure you have the proper content in your WordPress admin area, and the script is pulling it correctly?

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

      I managed to fix the problem, and I learn an important thing. The more time you spend on solving a problem, that problem is more likely to be silly and dumb.
      The code is fine, everything is okay there. But in the post, I added a video with . But when I changed from secure hypertext transfer protocol to regular protocol, it works fine and there is no error.
      Anyways, keep up the good work and you have my full support. Have a good day :)

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

      "The more time you spend on solving a problem, that problem is more likely to be silly and dumb."
      This should be Chapter 1 of the Developer's Bible.
      I'm glad you solved it, and thanks for your support!

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

      Alessandro Castellani Couldn't agree more :)

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

    Thank you for the awesome tutorial.
    One suggestion. We need to remove code

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

    how do i auto-play the videos after some second of the page load.

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

      You can write a simple JS method that starts after a timeout of 2 seconds, select the video and play it. Something like this:
      setTimeout(function(){ $('.video-').play() }, 2000);

  • @NareshKumar-gz5vc
    @NareshKumar-gz5vc 7 ปีที่แล้ว +1

    on whole internet/you tube your channel is the best one like your way of makings the person t understand. best best best...................

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

      Oh wow, thank you so much :D

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

    As you said in a previous video that we should put template files in "inc/templates/" folder, I completely agree with you. But a little confusion, if a hacker type "siteurl/wp-content/themes/theme-dir/inc/templates/" , he or she will see what pages are there and even click on the files to check what's in the file. As of now, I think this brings in potential vulnerabilities to the site since the hacker can see the HTML contents of that PHP generated page or the error messages of that PHP file. I know I could just disable PHP error message or give the file a complex and unguessable (sorry I don't know the right word :D) name or put a blank index.php file in that templates folder. But still I am not 100% comfortable with that cause if somehow(*1) they(hacker) know the template file name, they will be able to see the contents of that page.
    So my Q is: What is the best way to prevent a hacker from doing so? What's your way?
    Note 1: If multiple users install the theme then the webmasters of those installed sites know the template files names.

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

      +Arif Billah No need to worry about those stuff.
      On a remote environment WordPress will handle all the unwanted access to your theme folders. The htaccess file will automatically redirect the attempt to a 404 page.

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

      Thank you so much. :D You are doing an awesome job here. God bless you!

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

      +Alessandro Castellani Well it still does not work. Please see here: vidmovs DOT com/wp-content/themes/grifus/footer.php it's does not show a 404 page.

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

    Hey Alessandro ! :D
    It's me again, I just had a small question for you that's kinda relative, what do you think of becoming a wordpress focused freelancer? is it good after all, will i find some good jobs? bcs i've been struggling a little bit with normal php coding jobs!
    cheers!

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

      WordPress development is currently a good and active market. Do a quick research in your area to see the requests and job availability related to that role. Anyway, learning properly WordPress is a good asset for any type of dev related job.

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

      What about freelance websites? like upwork, bcs I'm pretty young for a company atm.

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

    alex this video length was best in this series not so long and not so small please try to make your video short

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

      Thanks, I know sometimes my videos are super long >_>

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

    really really u are amazing man

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

    How to do same thing in 2018 this doesn't work ?

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

      It should work, all this code is compatible with the latest version of WordPress. Check my source code on GitHub to see if you have any typos.

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

    Doesn't work now

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

      Check my source code on GitHub, you have for sure a typo. The code works perfectly with the current version of WordPress.

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

      Thanks for a reply you made that custom function in audio post format video

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

    Damn, you gotta use this wonderful face more often to charm us :P!

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

      Ahahaha, that could cause the disappearance of all my subscribers at one :P

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

    wonderfull face

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

      +md habib ullah indeed my face is wonderful

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

      +Alessandro Castellani I have watched the whole series and i also enjoy your funny moment. You are an awesome guy! Thanks for your great resource .
      Actually your face is wonderful I think so....

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

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

    its a really nice video for people who are in to al those coding things..
    its well explained, but not helpfull for me. sorry.