Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6409

    I would like to create a PAGE template based on the blog structure where the two right-hand sidebars are present. However, I would like the left hand content column to be free of any Entries. When I try to use the current blog page template, it wants to list earlier blog posts as entries in the left hand column. Don’t want that, just want a blank area to enter my desired content.

    Possible?

    Where do I look for the file(s), what code needs to be altered?

    #54038

    Hey,

    you can delete the dummy widget content in sidebar.php – search for following code and delete it:

    <div class='box box_small'>
    <h3>Categories</h3>
    <ul>
    <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0'.$exclude); ?>
    </ul>
    </div>

    <div class='box box_small'>
    <h3>Archive</h3>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    </div>
    <?php
    //right dummy sidebar
    }else { ?>
    <div class='box box_small'>
    <h3>Pages</h3>
    <ul>
    <?php wp_list_pages('title_li=' ); ?>
    </ul>
    </div>

    <div class='box box_small'>
    <h3>Bloggroll</h3>
    <ul>
    <?php wp_list_bookmarks('title_li=&categorize=0'); ?>
    </ul>
    </div>

    You can also create a second sidebar template and modify the get_sidebar function in your custom blog template: http://codex.wordpress.org/Function_Reference/get_sidebar

    #54039

    That is good info for future reference, but I was not clear enough about my needs request. The area I want to clear of entries is the wide content area on the left of the page, not the sidebars. The sidebars are fine as is.

    #54040

    Just noticed in another thread that Chris called the items I wish NOT to display…the Previews.

    #54041

    You can adjust the query in this case – there’s no need to remove anything. Open up index.php (I assume that it’s your blog template) and search for following line:

    $additional_loop = new WP_Query("cat=".$k_option['mainpage']['feature_cats_final']."&posts_per_page=".$k_option['mainpage']['feature_count']);

    You can adjust the query parameters to your needs. I.e if you’d like to create a “single” template modify it to:

    global $wp_query;
    $additional_loop = new WP_Query("page_id=".$wp_query->post->ID);

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Blog Template PAGE without the entries?’ is closed to new replies.