get_template_part messes up the_title()
-
Hi,
I was trying to create two loops for a landing page. Everything works fine EXCEPT the first custom query produces a wrong title in the template part. If I call the_title() right before get_template_part it works fine, but in the template part it just gives me the page title. what did I wrong?
Here is the Page Template:
https://pastebin.com/g8yinXA1And here the template part:
https://pastebin.com/fEijChw9Thank you very much in advance!
- The topic ‘get_template_part messes up the_title()’ is closed to new replies.