shaila10 on "Why my custom posts aren't showing in my local WordPress website?"

ساخت وبلاگ

0
down vote
favorite
I'm leaing WordPress. I'm in the way to lea "How to create and show custom post in WP". I'm using a plugin call "Custom Post Types UI". Via this plugin I add the new custom post called Project Feature with the post_type project_feature. Ot has a title, a thumbnail and a description area.

In my php file I wrote the following codes to display this:

<?php
$loop = new WP_Query(array('post_type' => 'project_feature', 'orderby' => 'post_id', 'oider' => 'ASC'));
?>
<?php
while($loop->have_post()):$loop->the_post();
?>

<div class="col-sm-4">

<?php
if(has_post_thumbnail())
{
the_post_thumbnail();
}
?>
<h3><?php the_title(); ?></h3>
<p class="black_text"><?php the_content(); ?></p>
</div> <!-- col -->

<?php endwhile; ?>

But this isn't working. Can you please help me to understand what the wrong I am doing?

Thanks in Advance... :-)

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 134 تاريخ : سه شنبه 14 ارديبهشت 1395 ساعت: 23:06