Skip to main content
20 events
when toggle format what by license comment
Aug 7, 2015 at 21:35 history edited birgire CC BY-SA 3.0
added 171 characters in body
Aug 7, 2015 at 21:26 comment added birgire Great to hear that, you're welcome ;-) @vega
Aug 7, 2015 at 21:05 vote accept vega
Aug 7, 2015 at 20:22 history edited birgire CC BY-SA 3.0
added 703 characters in body
Aug 7, 2015 at 20:20 comment added birgire I added the 4th method, in the case the featured ids are sliced down before being cached. There are other possibilities but they require more theme-info or customized solutions, so I stop now, hopefully it helps ;-) @vega
Aug 7, 2015 at 20:17 history edited birgire CC BY-SA 3.0
added 703 characters in body
Aug 7, 2015 at 19:47 comment added vega Ah, sorry, my language was not meant in an unpolite matter. :) And your third method does the same as the second, just shuffling the output of the 4 featured posts. :\
Aug 7, 2015 at 19:38 comment added birgire We should keep the language polite here ;-) Finally I provide you with the third method, that might help randomize all featured post ids. @vega
Aug 7, 2015 at 19:38 history edited birgire CC BY-SA 3.0
added 569 characters in body
Aug 7, 2015 at 19:17 comment added vega Now I remember, why I tried to hook directly into the function. Shit. :( In other words it randomises only the newest 4 featured posts and not all of those, having the tag to get into featured posts.
Aug 7, 2015 at 19:16 comment added vega Oh, great, man, that seems to work now, BUT there is a big "flaw": It does shuffle always only the 4 ones, that are shown, but there are like 20 featured posts and I guess, this solution randomises only the output (4 featured posts) instead of the whole featured posts. :\
Aug 7, 2015 at 19:10 comment added birgire I modified the priority for the second method @vega
Aug 7, 2015 at 19:10 history edited birgire CC BY-SA 3.0
added 4 characters in body
Aug 7, 2015 at 18:55 comment added vega Nice idea. I tried that, but does not work, it seems, after testing with STRG + F5.
Aug 7, 2015 at 18:44 comment added birgire I updated the answer with another (untested) option, that you could add to your functions.php file, to test @vega
Aug 7, 2015 at 18:43 history edited birgire CC BY-SA 3.0
added 177 characters in body
Aug 7, 2015 at 18:39 comment added vega Okay, I found that line in inc/featured-content.php within the original/mother theme. If I change the code there, it will be gone on the next update. If I duplicate this directory and file to the child theme, it does not work, I believe. I tried it last week with a different issue.
Aug 7, 2015 at 18:31 comment added vega Thank you very much for helping, but I am not so sure, where to find "Featured_Content::get_featured_posts():". In the child theme there was no file having that code inserted.
Aug 7, 2015 at 16:22 history edited birgire CC BY-SA 3.0
added 24 characters in body
Aug 7, 2015 at 16:11 history answered birgire CC BY-SA 3.0