episodes list

Status
Not open for further replies.

AbOoOdY

Active Member
76
2012
8
0
Hello WJ,

I deal with some one to developer my site "hd2arab.net".
I told him I need make site for TV Series in main page of TV Series I want to episodes list, he is create is very good.
When I started add episodes I face issue with showing all episodes in main page of TV Series.
like this :
Code:
http://hd2arab.net/tv-show/bitten/
is 13 episodes but showing in episodes list only 5 episodes.
I search in template theme i found "content-episodes.php" This file is responsible for display episodes list,
Code:
<?php
/**
 * The default template for displaying episodes.
 *
 * @subpackage Reverie
 * @since Reverie 4.0
 */
?>


<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<?php
            $category = get_the_category();
            $theName = $category[0]->name;
            $theChild = $category[0]->cat_ID;
$subcats = get_categories('child_of=' . $theChild);
    foreach($subcats as $subcat) {
    echo '<h2 class="epi-seas">' . $subcat->cat_name . '</h2>';
    $subcat_posts = get_posts('order=ASC&cat=' . $subcat->cat_ID);
    foreach($subcat_posts as $subcat_post) { $postID = $subcat_post->ID;
    echo '<h2><a href="' . get_permalink($postID) . '">';
    echo get_the_title($postID);
    echo '</a></h2>';
    }
    } ?>
	</article>

How i can edit to showing all episodes list ?!
 
Last edited:
Status
Not open for further replies.
Back
Top