Hallo, ich habe schon die Suchfunktion genutzt und hier und da mal was ausprobiert aber ich komme einfach nicht weiter. Also ich habe eine Statische Seite, wo ich Beiträge poste. Jetzt stört mich da dran nur so ein paar Kleinigkeiten: das Datum muss weg und der Autor sollte da auch nicht stehen und in welcher Katergorie es gepostet wurde muss auch weg.
Zu sehen ist das ganze hier: http://www.die-schnabeltiere.de/index.php/plattensammlung
ich nutze das reddle theme. der code vom template:
<?php /* Template Name: Plattensammlung */
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php get_template_part( 'content', 'page' ); ?>
<?php if ( have_posts() ) : ?>
<?php reddle_content_nav( 'nav-above' ); ?>
<?php /* Start the Loop */ ?>
<?php query_posts('category_name=Plattensammlung'); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>
<?php reddle_content_nav( 'nav-below' ); ?>
<?php comments_template(); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nix gefunden', 'reddle' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<p><?php _e( 'Vielleicht hilft ihnen die Suchfunktion weiter.', 'reddle' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</article><!-- #post-0 -->
<?php endif; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
und hier noch die page.php:
<?php
/**
* 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 Reddle
* @since Reddle 1.0
*/
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php comments_template(); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Ich hatte es schon fast, aber dann hat die seite ewig lange gebraucht zu laden und die beiträge waren auch durcheinander. Bin noch ein wordpress newbie und kenne mich auch nicht so gut mit php aus. Wäre nett wenn mir jemand dabei helfen könnte und ich die sache schnell abschließen kann...
Thx schon mal und mfg...