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!
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?
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!
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.
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?
@@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
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.
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!
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.
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.
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.
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 :(
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!
This is a great series. Thanks for vividly showing how the page or post page PHP files are changed.
I came here thinking "hmmm I'm probably gonna know everything there is". I was totally wrong hahaha great job. Liked and subscribed
.... 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
There is no gallery option in the ACF plugin
"This feature requires ACF Pro."
Is it only for paid version?
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?
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
Thank you so much! This is exactly what I needed tonight :D
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?
i have a gallery field that i want people to upload images what is the code for my template ?
Is it possible to add videos to the ACF Gallery?
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!
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.
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?
I have sorted it. I had to create a Function for the Lightbox as changing $ to jQuery didn't work for me.
@@micksdips I'm having the same problem, how did you create the function and make it work?
@@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
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.
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!
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.
@@mrdigitalau Thank your sir, that worked perfectly! Cheers for the tutorials, really good!
Search Results
Web results
How do I fix "Uncaught TypeError: $ is not a function error for sure ?
Typing JQuery didn`t fix it .
jQuery, not JQuery :)
Excellent video. Thank you
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.
Hey Russ, send me your code if you want and I can let you know what's going on? Cheers
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.
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 :(
@@RussDnB You can find ACF PRO much cheaper online. Just Google it Russ :)
gallery content filed only in pro ACF lol so bad
thanks for the vid, but there is no need to wrap every single line of php code with
Cannot subscribe to your channel. Please fix it.
Brilliant ! Thanks for this tutorial.
Very useful, thank you very much!
Thank you very much!
Why do we need ACF for this? How ACF gallery differs from Wordpress gallery?
Gives you much more flexibility as you are coding within a template not using the content editor.
Thank you!