is_category result
-
Hi,
I tried to use is_category for the same result of is_home, is_single, is_page and I have a trouble.
You can view it here: https://advertise.allwebtuts.net/ (I have added a white zone with opacity for demo).
It’s a plugin to create modern background images with partner links (clickable on the two zones). plugin here: https://www.ads-software.com/extend/plugins/kw-modern-advertise/
For is_page, is_home, is_single my code is loading correctly one times. With is_category, the code is loaded X times (one time by article in is_category loop visited).
Did you have any idea where the problem comes from ? I uses add_filter on the_content for is_page, is_single, is_category,… and a add_action wp_footer for is_home.
I think is_category works as different from is_home, is_page, etc… but a function exist for something like if_is_loop_of_one_category(){…} ?
- The topic ‘is_category result’ is closed to new replies.