Timeline for How can I list random authors from current post category?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 31, 2013 at 11:09 | vote | accept | Genxer | ||
Jan 31, 2013 at 11:10 | |||||
Jan 31, 2013 at 3:46 | answer | added | Matt Shelton | timeline score: 0 | |
Jan 30, 2013 at 23:30 | comment | added | Genxer | I will pay attention to it..Yes but i never used it before and insufficient knowledge of my php. 'shuffle($author_array)' this do random but how can i list any number author(e.g just 6 author) :) | |
Jan 30, 2013 at 22:57 | comment | added | brasofilo | I forgot to comment: please, add indentation to your code, it's easier to read, for you and for us. ::::: Did you look at the PHP functions? | |
Jan 30, 2013 at 22:51 | comment | added | Genxer | I update my code, im listing right now, just i need random 6 or any number list author. | |
Jan 30, 2013 at 22:49 | history | edited | Genxer | CC BY-SA 3.0 |
deleted 241 characters in body
|
Jan 30, 2013 at 22:45 | comment | added | brasofilo |
Can, did I interpret it right: "list of 6 random authors"? I'm not quite sure because the code you're trying $category_detail=get_the_category($post->ID) doesn't make much sense... Maybe what you need are PHP functions: suffle and array_slice .
|
|
Jan 30, 2013 at 22:38 | history | edited | brasofilo | CC BY-SA 3.0 |
Text interpretation. Code indentation.
|
Jan 30, 2013 at 19:25 | history | asked | Genxer | CC BY-SA 3.0 |