Site icon Hip-Hop Website Design and Development

Displaying Customized Posts on a Web page

I’ve created a web page template and customized submit sort ‘pa’ that I wish to show on the web page template. I’ve the template created, additionally made archive-pa.php, single-pa.php
My template: page-pa.php accommodates this:

<?php
/*
 Template Identify: Private Assistants
 */
get_header(); ?>

<div id="main" class="content-area">
    <primary id="primary" class="site-main" position="primary">

        <?php $loop = new WP_Query( array( 'post_type' => 'pa', 'posts_per_page' => 6 ) ); ?>
<?php whereas ( $loop->have_posts() ) : $loop->the_post(); ?>

stuff right here

<?php endwhile; wp_reset_query(); ?>

    </primary><!-- #primary -->
</div><!-- #main -->

<?php
get_sidebar();
get_footer();

It will solely present no matter textual content I put the place ‘stuff right here’ is. As I’m new to this I don’t know on how I ought to show the precise posts; I would like some extra php queries right here to show the posts like it will a traditional weblog? I discovered the get_ queries, I don’t know assemble it – all I can work out is a little bit of a hack the place I exploit the permalink as a customized hyperlink menu merchandise however I do additionally wish to create a customized search, and classes sidebar too. Any assist can be a lot appreciated!