Gallery Field - WordPress Advanced Custom Fields for Beginners (8)

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

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

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

    I am just now discovering your videos. Why can't everyone make videos that are this informational and without wasted talking. You're all business and move at a pace for people who know what they're doing. Thank you!

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

    This is a great series. Thanks for vividly showing how the page or post page PHP files are changed.

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

    I came here thinking "hmmm I'm probably gonna know everything there is". I was totally wrong hahaha great job. Liked and subscribed

  • @pierre.maitre
    @pierre.maitre 3 ปีที่แล้ว

    Thanks for this tutorial. Is it possible to add a single image, not all the thumbs, and display a popup slider when clicking on it?

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

    Thank you so much! This is exactly what I needed tonight :D

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

    .... and just like this I've discovered libraries.
    It's nice to code from scratch but I see why libraries are sooo popular.
    Ps: love your work

  • @HaifengZhu-pn3uq
    @HaifengZhu-pn3uq ปีที่แล้ว

    When I create a custom post type with ACF, how do I create an archive page for this post type? I didn't find option regarding the archive page

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

    Excellent video. Thank you

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

    I follow all the video and i've a gallery that works fine. But when i select a post in a loop post and open the gallery page, it doesn't show post gallery but last post's gallery. If I show post-ID, it appers last post id + 1. How can i fix it and show the correct galery?

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

    Thank you very much!

  • @vitughost6778
    @vitughost6778 4 ปีที่แล้ว +2

    Is it only for paid version?

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

    There is no gallery option in the ACF plugin

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

      "This feature requires ACF Pro."

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

    could you give a clue how to extend this gallery to filterable gallery?
    on image click, it redirects to project custom post type.
    i want to code personal portfolio. Some categories, like branding, web design, graphic design etc etc.
    custom post types.
    acf as well of course.
    each category includes dozens of images.
    admin can add/remove images from dashbord.

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

    On 3:17 you wrote colon before ending with ?>. Can you please explain why? I thought we need to end with a semicolon every time. Your channel is great, keep up with good work!

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

      You can replace { with : and } with endif. You use this system when you are going to embed lots of HTML inside an IF statement. Functionally it's the same as if () { ... }. If you have just one line of PHP, you don't need to use a semicolon. For example: . In this case you don't need the semicolon at all. The semicolon says one line of PHP is done and you are going to declare something else.

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

    i have a gallery field that i want people to upload images what is the code for my template ?

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

    Is it possible to add videos to the ACF Gallery?

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

    This is a great tutorial and just the thing for my website. However, the custom.js isn't doing it's job with the lightbox. I have checked the code several times and ensured the js is loading. Any ideas?

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

      I have sorted it. I had to create a Function for the Lightbox as changing $ to jQuery didn't work for me.

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

      @@micksdips I'm having the same problem, how did you create the function and make it work?

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

      @@mayamus Sorry for the delay but I have forgotten how I did it and had to go back over the tutorial again to see where I had a problem.
      In custom.js I made it a function like so:
      (function ($) {
      $('.gallery').magnificPopup({
      delegate: 'a', // child items selector, by clicking on it popup will open
      type: 'image',
      titleSrc: 'title',
      gallery:{
      enabled:true,
      navigateByImgClick:true,
      }
      // other options
      });
      })(jQuery);
      I hope this helps

  • @richardd-nz
    @richardd-nz 4 ปีที่แล้ว

    Is it possible to reference another gallery on the page that's from a different template? For example, I have two galleries, a thumbs_gallery which displays on my front_page, and a page_gallery that displays on any page type. In the template for template-page-gallery I want to display my page_gallery and be able to add images to it there. But then I also at the bottom want to display the thumbs_gallery. Is this possible? How would I reference my thumbs_gallery from my template-page-gallery? Thanks!

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

      Yes mate. If a gallery is on a different page you need to reference it like this. $images = get_field('gallery', PAGEID); ---- replace PAGEID with the front page ID. so find out the page ID of your front page, usually you can find it on the address bar when clicking into the front page to edit it in WordPress. It should then show the gallery that is on the front page.

    • @richardd-nz
      @richardd-nz 4 ปีที่แล้ว

      @@mrdigitalau Thank your sir, that worked perfectly! Cheers for the tutorials, really good!

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

    Brilliant ! Thanks for this tutorial.

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

    thanks for the vid, but there is no need to wrap every single line of php code with

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

    Thank you!

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

    Very useful, thank you very much!

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

    Search Results
    Web results
    How do I fix "Uncaught TypeError: $ is not a function error for sure ?
    Typing JQuery didn`t fix it .

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

      jQuery, not JQuery :)

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

    Something isn't right. When you had a problem with the caption code and you had to go away to work out what you was doing wrong. Upon resuming the recording, the time on your computer only changed by 1 minute. Mine would have changes by at least an hour when I have a problem.

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

      Hey Russ, send me your code if you want and I can let you know what's going on? Cheers

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

      Mr Digital That’s really good of you to offer the help 😊 Thank you.
      If I find myself really tripping on something, I may well get in touch. Thank you again.

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

      Absolutely gutted! Thins evening I sat down to have a look at galleries. But no. They're gone.
      Gone behind the pro subscription only :(
      For a guy like me, building only one site (not a web developer), I cannot justify an annual subscription and it really upsets me. There's not even an option for a single purchase licence, and it's put me back in place of having to look for lesser plugins, further bloat to the site I'm building or, worse, trying to somehow learn how to build such features for myself.
      Truly gutted :(

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

      @@RussDnB You can find ACF PRO much cheaper online. Just Google it Russ :)

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

    gallery content filed only in pro ACF lol so bad

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

    Cannot subscribe to your channel. Please fix it.

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

    Why do we need ACF for this? How ACF gallery differs from Wordpress gallery?

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

      Gives you much more flexibility as you are coding within a template not using the content editor.