Timeline for How do I make sure that my plugin only runs on article detail pages?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 16, 2016 at 11:36 | comment | added | cjbj |
@Ranuka. That is correct. Depending on whether OP wants to run his script on attachment posts as well, he can specify it in the parameters of is_singular .
|
|
Nov 16, 2016 at 11:25 | comment | added | Ranuka |
When you use is_singular it is not only true for posts and pages. It is true for is_attachment() also.
|
|
Nov 16, 2016 at 10:44 | vote | accept | darkhorse | ||
Nov 16, 2016 at 10:44 | history | answered | cjbj | CC BY-SA 3.0 |