Posts created with Types does not appear
-
I have created posts with Custom Posts and the regular Posts by WordPress. However, the custom posts does not appear on the website. Only the regular posts appears.
Here I have created Custom Posts:
https://i.stack.imgur.com/lZFnP.pngHere I have created posts with the regular WordPress posting:
https://i.stack.imgur.com/oXTvu.pngHere are the 2 latest posts within the category 9 (Featured) supposed to be shown:
https://i.stack.imgur.com/iMTlx.pngAs you see, it does not show the one made with Custom Post. This is not the only example, but this is the easiest one to explain.
<div class="col-md-12 myeluft"> <?php $catquery = new WP_Query( 'cat=9&posts_per_page=2' ); while($catquery->have_posts()) : $catquery->the_post(); ?> <div class="featured-post"> <ul> <li> <div class="col-md-5 featuredimage myeluftned"> <?php the_post_thumbnail( 'singlepost-thumb' ); ?> </div> <div class="col-md-7 myeluftned"> <h2 class="nomargintop blacklink"> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> </h2> <div class="light offblack"> <?php the_content(); ?> </div> <a href="<?php the_permalink() ?>" rel="bookmark"> <button class="btn thin luft" type="button">Se prosjekt</button> </a> </div> </li> </ul> </div> <div class="col-md-12"> <hr class="myeluft clearboth"> <?php endwhile; ?> </div></div>
Anyone?
I will post detailed if you want, I just need to know what you want to know.
Is there a function I need to make Custom Fields Post to work?
Plugin used: Types
I have created posts with Custom Posts and the regular Posts by WordPress. However, the custom posts does not appear on the website. Only the regular posts appears.
Here I have created Custom Posts: Custom Posts
Here I have created posts with the regular WordPress posting: WordPress Posts
Here are the 2 latest posts within the category 9 (Featured) supposed to be shown: 2 latest posts within the category 9
As you see, it does not show the one made with Custom Post. This is not the only example, but this is the easiest one to explain.
Code
<div class=”col-md-12 myeluft”>
<?php
$catquery = new WP_Query( ‘cat=9&posts_per_page=2’ );
while($catquery->have_posts()) : $catquery->the_post();
?>
<div class=”featured-post”>-
<div class=”col-md-5 featuredimage myeluftned”>
<?php the_post_thumbnail( ‘singlepost-thumb’ ); ?>
</div>
<div class=”col-md-7 myeluftned”>
<h2 class=”nomargintop blacklink”>
” rel=”bookmark”><?php the_title(); ?>
</h2>
<div class=”light offblack”>
<?php the_content(); ?>
</div>
” rel=”bookmark”>
<button class=”btn thin luft” type=”button”>Se prosjekt</button>
</div>
</div>
<div class=”col-md-12″>
<hr class=”myeluft clearboth”>
<?php endwhile; ?>
</div></div>
Anyone?I will post detailed if you want, I just need to know what you want to know.
Is there a function I need to make Custom Fields Post / Types to work?
Suggestions:
- Functions.php, something is wrong here
- Types, something is wrong the setup
Question also asked here: https://wordpress.stackexchange.com/questions/193188/posts-with-custom-fields-does-not-appear
-
<div class=”col-md-5 featuredimage myeluftned”>
- The topic ‘Posts created with Types does not appear’ is closed to new replies.