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:
Here I have created posts with the regular Wordpress posting:
Here are the 2 latest posts within the category 9 (Featured) supposed to be shown:
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.
<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>
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?
- Functions.php, something is wrong here
- Types, something is wrong the setup