رفتن به مطلب

ادغام دو کد، آخرین ارسال ها


پست های پیشنهاد شده

تگ لینک شما به این صورت هست :

<a class="last" href="<?php the_permalink(); ?>" alt="post-<?php the_ID(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>

به این صورت تغییرش بدین :

<a class="last" href="<?php the_permalink(); ?>" target="_blank" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
  • امتیاز 4
لینک به ارسال

سلام

اگر بخوام با این کد اخرین ارسال های انجمنم (مای بی بی) رو نماش بدم،باید چه تغییری داده بشه؟


<div class=div54>
<div class="div15">
<div class="div015"></div>
<div class="div18"><font class="text6">آخرین ارسال های سایت</font></div>
</div>
<div class="div21">
<div class=div55></div>
<div class=div56><font class=text4>
<ul>
<?php $recent = new WP_Query("cat=0&showposts=10"); while ($recent->have_posts()) : $recent->the_post(); ?>
<li><a class="last" href="<?php the_permalink(); ?>" alt="post-<?php the_ID(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a><span class="post-date">(<?php the_time(get_option('date_format')); ?>)</span></li>
<?php endwhile; wp_reset_query(); ?>
</ul>
</font>
</div></div>
<div class=div26m>
</div>
</div>

لینک به ارسال

کد شما برای سایت جاری هست و از سایت دیگر امکان این کار نیست

برای RSS هم قبلا راهنمایی شده

  • امتیاز 1
لینک به ارسال

شما باید به دیتابیس انجمنتون سلکت بزنید. اصلا پیشنهاد نمیشه. همون فید بهترین حالت هست.

لینک به ارسال

لطفا برای ارسال دیدگاه وارد شوید

شما بعد از اینکه وارد حساب کاربری خود شدید می توانید دیدگاهی ارسال کنید



ورود به حساب کاربری
×
×
  • اضافه کردن...