Jump to content
  • 0

вывод постов по меткам


vitaxastifler
 Share

Question

Есть шаблон,который выводи посты по id рубрик,а мне нужно что бы выводились по id меток!
Помогите переписать,спасибо.
 

<?php/*Template Name: Анонс * To change this template, choose Tools | Templates * and open the template in the editor. */get_header(); ?><div style="line-height: 25px;margin-top: 5px;">    <div class="content-headline">        <h1 class="entry-headline"><span class="entry-headline-text"><?php the_title(); ?></span></h1>        <?php maidenhair_get_breadcrumb(); ?>    </div><?php $posts = get_posts ("category=11&orderby=date&numberposts=5"); ?><?php if ($posts) : ?><?php echo category_description(0);?>    <?php foreach ($posts as $post) : setup_postdata ($post); ?>        <div id="module_title">        </div>        <li class="map1">            <h2><?php the_title(); ?></h2>            <?php the_post_thumbnail(); ?>            <p><?php the_content(); ?>                <a href="<?php the_permalink(); ?>">                    <?php                    if ( is_user_logged_in() ) {                        echo '<span class="mayak-more">Подробней »</span>';}?> </a>            </p>        </li>    <?php endforeach; ?><?php endif; ?><?php get_footer(); ?><?php
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy