This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Accessing the index outside of the search form (e.g. for post loop)

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Accessing the index outside of the search form (e.g. for post loop) Reply To: Accessing the index outside of the search form (e.g. for post loop)

#47123
pbainespbaines
Participant

Many thanks Ernest.

Last question (I promise!)

We have 2 sliders on many pages, and it seems that having 2 ASP_Query foreach loops on one page seem to be causing some strange issues.

For example, the template that we are calling in the second foreach loop is changing the lookup directory and giving us an error.

It’s looking for ‘/wp-content/themes/ispn/slider/single-slider-item.php’ (The other sub-site theme) when within the previous foreach loop, the template we are including is looking for ‘/wp-content/themes/ispn-library/slider/single-slider-item.php’. It’s using the same include line, so these should be the same. Its also breaking some elementor templates below, by looking for templates within the other subsite, instead of the current site. (Screenshot attached)

My thoughts are that perhaps this ASP_query needs to be reset somehow, before calling it again? Does that sound right?

I think we’re nearly there!

Thanks,

Peter