• Good afternoon.

    I was to ask if it is possible to make a page that contains diferent posts and it is like an index. I mean I want to make a new page in my site, that I will put few posts (articles) that I want to categorize in tables.

    Is there any plugin or any other way I cat do that?

Viewing 1 replies (of 1 total)
  • <?php
    /**
     * Template Name: Flyers Page
     *
     * The template for displaying all pages.
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @sin
     * Selectable from a dropdown menu on the edit page screen.
     */
    
    get_header(); ?>
    <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri();?>/flyercss.css" />
    		<div id="container">
    			<div id="content" role="main">
    
    			<?php
    
    //$loop = new WP_Query( array( 'post_type' => 'flyers', 'posts_per_page' => 3 ) );
    			while ( have_posts() ) : the_post();
    			?>
    			<div class="flyer">
    			<div class="thumb-fly"><?php the_post_thumbnail('full');
    			  ?></div>
    			  <h3 class="flyertitle"><?php the_title(); ?></h3>
    			  <p><?php the_content(); ?></p>
    				<?php  echo the_category(); ?>
    								<h5><?php echo get_the_author(); ?></h5>
    <?php
    			endwhile;
    
    			?>
    			</div>
    
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    
    try this .. make a page and choose this custome template for this ...
Viewing 1 replies (of 1 total)

The topic ‘add posts in page’ is closed to new replies.