0

とにかく、デフォルトで画像リンクを投稿自体に設定できますか? 毎回メディア アップローダーに画像リンクを設定したくありません。投稿のコンテンツを取得する私のコードは次のとおりです。

                        <?php if (!$is_paged && $archives == "false") { ?>
                            <?php woo_image('class=thumbnail&width='.get_option('woo_home_thumb_width').'&height='.get_option('woo_home_thumb_height')); ?> 
                            <div class="post-title">
                                <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
                                <p class="post-details"><?php _e('Posted on',woothemes); ?> <?php the_time('d. M, Y'); ?> <?php _e('by',woothemes); ?>  <?php the_author_posts_link(); ?>.</p>

                            </div>
                        <?php } else { ?>
                            <?php woo_image('class=alignleft thumbnail&width='.get_option('woo_thumb_width').'&height='.get_option('woo_thumb_height')); ?> 
                            <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
                            <p class="post-details"><?php _e('Posted on',woothemes); ?> <?php the_time('d. M, Y'); ?> <?php _e('by',woothemes); ?>  <?php the_author_posts_link(); ?>.</p>
                          <!--  <div class="comment-cloud">
                                <a href="<?php comments_link(); ?>"><?php comments_number('0','1','%'); ?></a>
                            </div> -->
                        <?php } ?> <?php global $more; $more = 0;?>

                        <?php if ( get_option('woo_content') == "true" ) { the_content('Read More >>'); } else { the_excerpt();?><?php } ?>


                    </div> 
                    <!-- Normal Post Ends -->

私がしているのは、その下にいくつかの行を含む画像を投稿し、続きを読むタグを挿入することです。タイトルと同じように、投稿の最初の画像と記事へのリンクを使用する方法はありますか?

4

1 に答える 1