function WYBT_getTheMainContent()
{
    global $wp_query;
    $res = "";
    $totalCount = $wp_query->post_count;
    $index = 1;
    if (have_posts()) {
        $res .= WYBT_getTheArticleListBeforeInLoop(array());
        while (have_posts()) {
            the_post();
            $res .= WYBT_getTheArticle(get_the_ID(), $index, $totalCount);
            $index++;
        }
        $res .= WYBT_getTheArticleListAfterInLoop();
    }
    return $res;
}
Example #2
0
<?php

echo WYBT_getTheArticle();