Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8870
    somekyleguy
    Participant

    On one of my pages I have the need to have a static “information” area at the top and an update-able blog category displayed at the bottom. This is for products so that the Product Information can be at the top of the page complete with a downloader, while at the bottom I can post constant product updates directly to its blog category.

    I believe I would need to create a new page template and insert the following somewhere in it:`<?php $my_query = new WP_Query('category_name=CATEGORY-NAME&showposts=2'); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <a href=”<?php the_permalink() ?>” title=”<?php the_title(); ?>”>
    <?php the_title(); ?></a><?php the_excerpt(); ?>
    <?php endwhile; ?>
    `

    I’m just not sure about what else needs to be in the template file to correctly display a second content area.

    #8874
    somekyleguy
    Participant

    I would use my educated guess and say that you make a new template for this specific page and place the following in it TWICE for 2 content areas:

    <?php get_template_part( 'content', 'page' ); ?>

    ?

    #8894
    Sakin
    Keymaster

    @somekyleguy: You need to create page template For that. For example you can see the page.php, page-disable-sidebar.php, page-fullwidth.php and page-onecolumn.php.

    For the build child theme and add the additional page template for your products.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Not sure if this is possible… But… 2 Content areas?’ is closed to new replies.