رفتن به مطلب

ساخت درباره نویسنده برای وب


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

برید به فایل single.php و این کد رو در جایی که میخواین بزارین اطلاعات نویسنده نمایش داده میشه ، و میتونید بهش با css استایل بدین :


<?php if ($lw_post_author == "true" && is_attachment() != TRUE) : ?>
<div >
<div >
<?php echo get_avatar( get_the_author_id(), '28' ); ?>
</div>
<div >
<h4>
<?php _e('Author','lightword'); ?>: <a href="<?php the_author_url(); ?>"><?php the_author(); ?>
</a>
</h4>
<?php the_author_description(); if(!get_the_author_description()) _e('No description.
Please update your profile.','lightword'); ?>
</div>
<div >
</div>
</div>
<?php endif; ?>

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

برید به فایل single.php و این کد رو در جایی که میخواین بزارین اطلاعات نویسنده نمایش داده میشه ، و میتونید بهش با css استایل بدین :


<?php if ($lw_post_author == "true" && is_attachment() != TRUE) : ?>
<div >
<div >
<?php echo get_avatar( get_the_author_id(), '28' ); ?>
</div>
<div >
<h4>
<?php _e('Author','lightword'); ?>: <a href="<?php the_author_url(); ?>"><?php the_author(); ?>
</a>
</h4>
<?php the_author_description(); if(!get_the_author_description()) _e('No description.
Please update your profile.','lightword'); ?>
</div>
<div >
</div>
</div>
<?php endif; ?>

داداش کد رو گذاشتم اما هیچی توی سایت نمایش نداد
لینک به ارسال

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

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



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