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

Поделиться
HTML-код
  • Опубликовано: 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

  • @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

  • @areebahmd
    @areebahmd 2 года назад

    Excellent video. Thank you

  • @panrurek1614
    @panrurek1614 Год назад

    Thank you very much!

  • @petruciucur
    @petruciucur 4 года назад

    Brilliant ! Thanks for this tutorial.

  • @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."

  • @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

  • @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?

  • @PepeGr14
    @PepeGr14 4 года назад

    Very useful, thank you very much!

  • @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.

  • @varunsivan
    @varunsivan 3 года назад

    Thank you!

  • @fastaba
    @fastaba 3 года назад

    Is it possible to add videos to the ACF Gallery?

  • @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?

  • @abanksob1
    @abanksob1 3 года назад

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

  • @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.

  • @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!

  • @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 .

  • @juliangiambelluca8809
    @juliangiambelluca8809 3 года назад

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

  • @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.