Content duplicates itself – Something wrong with my query? Need reset? How?
-
Hi. Im working on a site with a theme I′m building at the time. I think this problem arose when I wanted to use two different single.php templates depending on which category they where displaying. I duplicated my single.php and renamed it into single-portfolio and singel-news, then I replaced the content of single.php with a simply php code to load the right template depending on category.
That worked. But now, my single-news.php is repeating its content twice for some reason. Its not doing so on the single-portfolio however.
Any ideas why this is the case and what I can do about it? I′m thinking maybe some querys arent reset or something.
On both single-news and single-portfolio I am using two querys, one regular for the content with this style:
https://wordpress.pastebin.ca/2053962and one costum query below this which looks like this:
https://wordpress.pastebin.ca/2053963Someone please help me with this because I′m so lost here!
- The topic ‘Content duplicates itself – Something wrong with my query? Need reset? How?’ is closed to new replies.