I was actually requesting some help with creating the short code for personal use.
I am using a jquery script for some images to have a carousel. Testing it using divs in the text mode works fine on a page. So I created some shortcodes for the divs so its easier for non html savvy people to use. Only html needed is-
http://pastebin.com/pyiWCsSdso the shortcodes I created are -
http://pastebin.com/SmC0ZjivBut it doesnt work. When typing the html to make it work, the jquery recognizes the div class “slider1” and wraps it with other html. And when using the shortcodes it renders the div class only. Any suggestions on this? I read this doc -http://codex.wordpress.org/Function_Reference/do_shortcode but it didnt help.
Here is an example of a tut So that tut doesnt explain to me when to use it and for what exactly. I guess my lack of knowledge on this stuff is why I am puzzled. “What do you use this for” is what I am thinking.
Are javascript templates like in the tutorial above good for pulling data from other sites? Or more for internal data to display?
I understand there are several template frameworks out there, but what type of app would you build with one. For some reason I am not getting it….
Again my lack of knowledge and experience of programming is very entry level. I am trying to learn more and more, and always try to find a real world example for me to build my first “hello world” in some new language.
Finally, remember that JavaScript templates is just one more tool in your box; and, sometimes, it simply isn’t the right one for the job. Don’t use templates where you don’t need them. Use your head: there may be other situations, when a template is not the best tool.
Could someone give some good examples of appropriate situations to use a javascript template?
Thanks, Clayton
Anyone got an idea? I’m not super savvy with WP to figure this out. Been trying for several days.
I have come across several queries, and I have read the codex. All examples say either one image or all. I want to display 6 images from the latest post of a specific category. Currently it will keep displaying images every time a new post is added. I cant seem to figure out how to limit the number of images echo’ed. I know how to do simple php array’s. But I dont know how to manipulate this in wordpress. This was the best thing I could come up with to achieve the results I am wanting. (edit – this was also the only way I could have the rel=”lightbox” tag for image lightbox plugin to work) Do you have any suggestions of maybe doing this differently?
Thanks, Clayton
here is a link to code – http://pastebin.com/9aH5ihKc
I emailed you.
Man, your not gonna believe it, I was uploading the files but testing a different directory on my machine hahahahahaha! oh man how hilarious! Hopefully you didnt find my response offensive, cause I surely wasn’t trying to be! Do you have a donation link? I appreciate your help! I have some learning to do to be able to debug things like this better!
Thanks again
Thanks for the code, although it isnt work on my machine…. Can you show me a screen shot of yours maybe? This is really weird.
Crakken said
Alright, there you go:
HTML : http://pastebin.com/jSPa1XwA
CSS : http://pastebin.com/9CSxZmnk
It’s good on all browsers for me. Tell me if everything’s alright for you.
For some reason the HTML pastebin link is bad. Would you mind re-submitting it please.
