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

Поділитися
Вставка
  • Опубліковано 19 гру 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

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

  • @honeyali4109
    @honeyali4109 3 роки тому +3

    There is no gallery option in the ACF plugin

    • @weezu7
      @weezu7 3 роки тому

      "This feature requires ACF Pro."

  • @vitughost6778
    @vitughost6778 4 роки тому +2

    Is it only for paid version?

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

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

  • @mayamus
    @mayamus 3 роки тому +1

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

  • @climent6467
    @climent6467 4 роки тому

    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 ?

  • @fastaba
    @fastaba 3 роки тому

    Is it possible to add videos to the ACF Gallery?

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

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

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

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

  • @areebahmd
    @areebahmd 2 роки тому

    Excellent video. Thank you

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

  • @juliangiambelluca8809
    @juliangiambelluca8809 3 роки тому

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

  • @ict4today
    @ict4today Рік тому

    Cannot subscribe to your channel. Please fix it.

  • @petruciucur
    @petruciucur 4 роки тому

    Brilliant ! Thanks for this tutorial.

  • @PepeGr14
    @PepeGr14 4 роки тому

    Very useful, thank you very much!

  • @panrurek1614
    @panrurek1614 Рік тому

    Thank you very much!

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

  • @varunsivan
    @varunsivan 3 роки тому

    Thank you!