Hi
Using Accordion in query-loop mode, when i try to echo some php code either in title or content, it renders BEFORE the accordion itself, not INSIDE the accordion’s content/title area.
Now i tried and i see the same problem in non query-loop mode.
Hi Hamid,
Thanks so much for your report!
Unfortunately, I cannot reproduce the issue. Would you be so kind as to provide a live link and a screencast using https://jam.dev showing and explaining what’s happening?
Best regards,
timmse
I tried to echo something directly from my own function not to return it. When i returned just a simple string (not echo the string) it worked and problem has been solved.
But my real problem is including some PHP file such as a template. I am trying to edit woocommerce downloads page and show all downloads in an accordion. I want to include default woocommerce template for each download inside the accordion, but don’t know how to do it. When i just try to load the template, it renders before the accordion.