Hallo,
bin noch bei neu im Thema WP und habe ne Frage bgzl unserer HP.
Und zwar nutze ich das Pinboard Theme und habe mir ein eigenes Template für meine News Seite gemacht, da alle Seiten bei mir statische Seiten sind, und ich auf der News Seite aber Artikel anzeigen möchte die ich einer Kategorie schreibe. Deswegen habe ich dann dieses Template geschrieben:
<?php/*
Template Name: news_template
*/
?>
<?php get_header(); ?>
<?php if( is_home() && ! is_paged() ) : ?>
<?php if( pinboard_get_option( 'slider' ) ) : ?>
<?php get_template_part( 'slider' ); ?>
<?php endif; ?>
<?php get_sidebar( 'wide' ); ?>
<?php get_sidebar( 'boxes' ); ?>
<?php elseif( ( is_home() && is_paged() ) || ( ! is_home() && pinboard_get_option( 'location' ) ) ) : ?>
<?php pinboard_current_location(); ?>
<?php endif; ?>
<div id="container">
<section id="content" <?php pinboard_content_class(); ?>>
<?php if( is_category( pinboard_get_option( 'portfolio_cat' ) ) || ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) : ?>
<?php pinboard_category_filter( pinboard_get_option( 'portfolio_cat' ) ); ?>
<?php endif; ?>
<?php if( have_posts() ) : ?>
<div class="entries">
<?php query_posts('category_name=News'); ?>
<?php while( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
</div><!-- .entries -->
<?php pinboard_posts_nav(); ?>
<?php else : ?>
<?php pinboard_404(); ?>
<?php endif; ?>
</section><!-- #content -->
<?php if( 'no-sidebars' != pinboard_get_option( 'layout' ) && 'full-width' != pinboard_get_option( 'layout' ) && ! is_category( pinboard_get_option( 'portfolio_cat' ) ) && ! ( is_category() && cat_is_ancestor_of( pinboard_get_option( 'portfolio_cat' ), get_queried_object() ) ) ) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
<div class="clear"></div>
</div><!-- #container -->
<?php get_footer(); ?>
Alles anzeigen
Nun zu meiner Frage. Alle Seiten bei mir nutzen als Template das Standardtemplate, nur meine News Seite nutzt mein news_template. Nun möchte ich, das die Seite genauso breit ist wie die andereren Seiten bei mir auch. Ist das möglich? Und ich möchte, das die Nachrichten untereinander angeordnet werden. Ist das auch möglich. Wobei das letztere jz nicht so relevant ist.
Danke schonmal im vorraus für die Antworten.