コード例 #1
0
            <ul>
                <?php 
    while (have_posts()) {
        the_post();
        ?>

                    <li>
                        <a href="<?php 
        the_permalink();
        ?>
" rel="bookmark" title="<?php 
        echo showAndTitle($post);
        ?>
">
                            <?php 
        echo showAndTitle($post);
        ?>
                        </a>

                        <span class="mini light">
                            <?php 
        the_time(get_option('date_format'));
        ?>
                        </span>
                    </li>

                    <?php 
    }
    ?>
            </ul>
コード例 #2
0
            echo get_terms_meta($catID, 'thumbnail', true);
            ?>
">
                    </td>
                    <td>

                        <a href="<?php 
            the_permalink();
            ?>
" rel="bookmark" title="<?php 
            the_title();
            ?>
">
                            <h2>
                                <?php 
            echo showAndTitle($postID);
            ?>
                            </h2>
                        </a>

                        <div class="mini light">
                            <?php 
            if (function_exists('powerpress_get_enclosure_data')) {
                $EpisodeData = powerpress_get_enclosure_data($post->ID);
                if ($EpisodeData) {
                    $duration = $EpisodeData['duration'];
                    $parts = explode(':', $duration);
                    $times = array(array('hour', 'hours'), array('min', 'mins'), array('second, seconds'));
                    $output = '';
                    /* ignore seconds */
                    for ($i = 0; $i < 2; $i++) {
コード例 #3
0
            if (get_terms_meta($catID, 'sponsor2', true)) {
                echo '<li>' . get_terms_meta($catID, 'sponsor2', true) . '</li>';
            }
            if (get_terms_meta($catID, 'sponsor3', true)) {
                echo '<li>' . get_terms_meta($catID, 'sponsor3', true) . '</li>';
            }
            ?>
                                </ul>
                            <?php 
        }
        ?>
                        </div><!-- end of .post-entry -->

                        <?php 
        if (function_exists('the_ratings') && (in_category('mo') || in_category('ww') || in_category('wntt'))) {
            $titleWithStuff = showAndTitle($postID);
            $titleWithoutStuff = substr($titleWithStuff, strpos($titleWithStuff, ":") + 1);
            ?>
                            <div class="headcontent">
                                How did <strong>you</strong> like <?php 
            echo $titleWithoutStuff;
            ?>
?
                            <?php 
            the_ratings();
            ?>
                            </div>
                        <?php 
        }
        ?>