+George Stamate Yes, you're right! I didn't adopted your suggestion before because my main goal was to get rid off the in_array() function, but now with the simple isset() the switch/case is suitable. Sorry I didn't mention you in the video, thank you for reminding me. Happy coding!
+Alessandro Castellani :) There is no problem at all, Alex ;) You did't specified what exactly you need to get rid off :)) I didn't see it... we are even ;)
I haven't tried the switch/case code, and sadly neither have you in the video, but - doesn't switch(isset(...)) always result in a boolean that is matched against the value of each $flipped[...] - which will be a number? As far as I can see it, that code shouldn't work at all in the intended way.
why my wordpress goes to index.php instead of single.phpI checked other existent theme of wordpress while they work right.Thanks for your great tutorial clips
Having no pagination is maybe fine and dandy, but I think you can add a valuable addition to the course: lets show how to actually OMIT all complicated jQuery code and all those fancy stuff, to allow one just to have a simple, yet styled pagination. The jQuery and infinite scroll is OK, and it took YOU - four, five? lessons (instead of advertised two), +two more for bugfixing! Imagine what if something is not right for the greenhorns. So, for beginners this is rather a heavy overkill and having instead a simpler, more straightforward solution will be also very nice. It could be even nicer, if you show how to separate the logic of scroll entirely and allow to enable it just in admin panel, for brave ones. Additionally, infinite scroll is not a good idea when you have more than hundreds of posts and no other way of reach them...
Hi, thanks for your suggestion. I already did a series for beginners called WordPress 101 for beginner developers and in that series, I explained how to create a regular pagination. This series is slightly more advanced and meant for intermediate WordPress devs, and also the title "Premium" implies some sort of extra customization and more "fancy" stuff that can't be found in regular or simpler themes. Apologies if this topic was confusing or you felt it was unnecessary, hopefully, it didn't disrupt your learning experience. Cheers
Hey, no problem at all, your effort and quality of explanation is really appreciated! Your job here is really awesome. For my need I think I should stick to pagination due to large number of pages, but this solution may be pretty good if applied to comments for example. Usually only most fresh comments are read, and for more - they could be loaded dynamically. This may or may not make huge pages faster dunno :) For me, the only problem is my limited time and lack of jquery/js experience - the rest, including coding is no problem. I'm a programmer for C-like world, used to code in Perl, C, and lastly, more and more in PHP. The most valuable explanation which you deliver are how WP is working internally and how misc parts of the service are interconnected. This is a real magick! More of this will be always very welcome. By the way, are you WP developer? How did you manage to know it so deeply?
+Yash Agarwal I've been super busy lately at work, I already have a couple of videos recorded, I need to find the time to edit and publish them. I'm sorry for the delay.
Hello Alex, I searched all over the internet but I couldn't find any solution to my problem. It is really strange why it goes to index.php instead of sinlge.php/page.php. I tried everything, anything that was relative to this matter. I thought it could be due to ajax but it wasn't. I change the name of the single to single-posts/gallery with capital letter also the shape of the permalink nothing helped me. I stuck at this point.
Hi, Alex. Plecase remember that I propose the switch/case two weeks ago. :) Vary nice code. Thanks for your tutorials! Happy codding! ;)
+George Stamate Yes, you're right!
I didn't adopted your suggestion before because my main goal was to get rid off the in_array() function, but now with the simple isset() the switch/case is suitable.
Sorry I didn't mention you in the video, thank you for reminding me.
Happy coding!
+Alessandro Castellani :) There is no problem at all, Alex ;)
You did't specified what exactly you need to get rid off :)) I didn't see it... we are even ;)
Thank you so much, best tutorial :*
+johan ari widow Thank you for your positive feedback
I haven't tried the switch/case code, and sadly neither have you in the video, but - doesn't switch(isset(...)) always result in a boolean that is matched against the value of each $flipped[...] - which will be a number? As far as I can see it, that code shouldn't work at all in the intended way.
why my wordpress goes to index.php instead of single.phpI checked other existent theme of wordpress while they work right.Thanks for your great tutorial clips
Great job :D
just what to do with VIDEO POST FORMAT ?
i want the featured video but i don't want to echo the content video
You can create or a custom field to input the video url and use that one inside an , or extract the video from the content with a regex function.
Having no pagination is maybe fine and dandy, but I think you can add a valuable addition to the course: lets show how to actually OMIT all complicated jQuery code and all those fancy stuff, to allow one just to have a simple, yet styled pagination. The jQuery and infinite scroll is OK, and it took YOU - four, five? lessons (instead of advertised two), +two more for bugfixing! Imagine what if something is not right for the greenhorns. So, for beginners this is rather a heavy overkill and having instead a simpler, more straightforward solution will be also very nice. It could be even nicer, if you show how to separate the logic of scroll entirely and allow to enable it just in admin panel, for brave ones. Additionally, infinite scroll is not a good idea when you have more than hundreds of posts and no other way of reach them...
Hi, thanks for your suggestion.
I already did a series for beginners called WordPress 101 for beginner developers and in that series, I explained how to create a regular pagination.
This series is slightly more advanced and meant for intermediate WordPress devs, and also the title "Premium" implies some sort of extra customization and more "fancy" stuff that can't be found in regular or simpler themes.
Apologies if this topic was confusing or you felt it was unnecessary, hopefully, it didn't disrupt your learning experience.
Cheers
Alessandro Castellani o thank you, I'll look for this.
Hey, no problem at all, your effort and quality of explanation is really appreciated! Your job here is really awesome. For my need I think I should stick to pagination due to large number of pages, but this solution may be pretty good if applied to comments for example. Usually only most fresh comments are read, and for more - they could be loaded dynamically. This may or may not make huge pages faster dunno :) For me, the only problem is my limited time and lack of jquery/js experience - the rest, including coding is no problem. I'm a programmer for C-like world, used to code in Perl, C, and lastly, more and more in PHP. The most valuable explanation which you deliver are how WP is working internally and how misc parts of the service are interconnected. This is a real magick! More of this will be always very welcome. By the way, are you WP developer? How did you manage to know it so deeply?
waiting for new videos in this playlist
+Yash Agarwal I've been super busy lately at work, I already have a couple of videos recorded, I need to find the time to edit and publish them.
I'm sorry for the delay.
+Alessandro Castellani Please do it today, Only one video
where can i download template layout file only just PSD file ??
The link in the description of the first video of this playlist.
Hello Alex,
I searched all over the internet but I couldn't find any solution to my problem. It is really strange why it goes to index.php instead of sinlge.php/page.php. I tried everything, anything that was relative to this matter. I thought it could be due to ajax but it wasn't. I change the name of the single to single-posts/gallery with capital letter also the shape of the permalink nothing helped me. I stuck at this point.
Check my source code on GitHub if something doesn't work.
i'am waiting next tutorial
+johan ari wibowo I usually publish one or two tutorials per week. Thank you for following and happy coding.
:)