Coercing wp_query to be single
-
Hi all. I’m excited about getting in to wordpress.
I’m trying to make modifications to my index page so that I can show only my latest entry and the comments for that entry.
I’d like to use a bunch of the functions that require that is_single() return true. If I understand correct, I read here that is_single() doesn’t test for lists of length 1, so that a list of one is just a different data type from a single post. (NB that the title of the post is misleading but there’s good information in it.)
I’m happy to write the code that will transform a list to single (and make it available) but I need a pointer or two. Can anyone get me going in the right direction?
Thanks!
Adam Wolff
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Coercing wp_query to be single’ is closed to new replies.