Hi,
I’m trying to convert an old theme I did some months ago to Roots. This is a bit frustrating for me… because I dont understand where place the alternative loops and either how query my custom posts. Could you help me?
This code runs ok in my old theme:
What exactly are you trying to do? It looks like this is part of a slider. Are there errors? What do you get when you place this? Are you running the JavaScript along side with this for the slider?
Maybe was not a good practice but it run, basically query a custom post type and slider show the images I put into the post with ACF plugin (but it also can pick up the post_thumbnails.
This is my old method of develop a theme while i’m not a developer, I’m a designer trying to do bests websites, trying to understand how Roots thinks…
Loops and custom queries in Roots are the same as any other theme. What’s the problem you’re running into? Like @Skylab said - are you getting JS errors? If you are, it’s not specific to Roots
I dont get any js errors, ¿? what I ask is where are the most indicated places to place the code. My english is not very good…
For instance, to enqueue the cycle2 js it seems to be scripts.js, no?
I have not found too much documentation about the best practices… Sorry if I’m a teeny newbe in a huge theme framework. I’m tryin to understand.