Combining code to display categories and images
-
I’m using Taxonomy Images to associate images with categories. I’m using the following code, one is to display the categories, the other to display the images.
Here is the code that displays my categories.
http://pastebin.com/Rf6URG1WHere is the code that displays the images.
http://pastebin.com/LsabE44YIf i put the image code above the foreach for the categories it will show the images above my categories. If i put the image code below the end of the foreach for the categories it will show the images below the categories.
If i put the image code inside the foreach for the category it will show the all of the images under every category. So under the first category it will show the image for all categories and it will do the same under all of the other categories.
How can i combine both pieces of code so it will display the category, the image associated with that category then the second category and the image associated with that category?
The topic ‘Combining code to display categories and images’ is closed to new replies.