Skip to main content

Timeline for Group episodes by seasons

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
Aug 14, 2022 at 2:45 comment added MrLonely I dont know how to connect episodes to seasons, i think thats the problem, ive also edited the question, thanks for helping me
Aug 13, 2022 at 16:48 history edited MrLonely CC BY-SA 4.0
added 553 characters in body
Aug 13, 2022 at 16:42 comment added Tom J Nowell can you edit that into your question using the Edit link rather than posting it as a comment? Blocks of code don't work in comments. Also did you see my other questions? Try to answer all of them to avoid back and forth, make your question as complete and specific as possible
Aug 13, 2022 at 16:41 comment added MrLonely @TomJNowell ive tried <?php $terms = get_terms( array( "taxonomy" => "category", ) ); foreach ($terms as $term) : $posts = get_posts(["post_type" => "episodes", "cat" => $term->term_id]); ?> <h4><?= $term->name; ?></h4> <ul> <?php foreach($posts as $post) : ?> <p> <?= $post->post_title; ?> </p> <img src="<?php the_post_thumbnail_url( ); ?>" alt="<?php the_title( ); ?>"> <?php endforeach; ?> </ul> <?php endforeach; ?> But it gives me all the episodes that is in the category "Season 1"
Aug 13, 2022 at 16:26 comment added Tom J Nowell how is an episode post connected to a season post? Are episode posts children of a season post? I'm not seeing any code in your question for what you've tried so far
S Aug 13, 2022 at 16:00 review First questions
Aug 18, 2022 at 19:50
S Aug 13, 2022 at 16:00 history asked MrLonely CC BY-SA 4.0