[wp-trac] [WordPress Trac] #52537: is_single is_singular is not working
WordPress Trac
noreply at wordpress.org
Tue Feb 16 11:21:21 UTC 2021
#52537: is_single is_singular is not working
--------------------------+----------------------
Reporter: BackuPs | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Comment (by audrasjb):
By the way, these conditional tags must be used inside the loop, and
functions.php is called before the loop.
Try `add_action( 'wp_head', function() { var_dump( is_single() ); } );`.
''However, please avoid to open Trac tickets for support questions ;)''
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52537#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list