Mein Problem mit der Installation des Event-Page-Plugins nochmals zu umschreiben:
Die Installation verlangt dies:
ZitatAlles anzeigenUnpack the downloaded zipped file
* Upload the "event-page" folder to your /wp-content/plugins directory
* Log into Wordpress
* Go to the "Plugins" page
* Activate the Event Page Plugin
* You'll need to create a new template file entitled "events.php"
** To do this copy your file entitled page.php and name it events.php.
** Place this code `<?php
/*
Template Name: Events
*/
?>` on the first line of the file.
** [COLOR=Red]Remove the code that prints the post to the page and replace it with this code: `<?php tern_wp_events(); ?>`[/COLOR]
** Upload the new file to the server.
* Now you'll need to create a new page which you can title whatever you like.
* [COLOR=Red]Assign this page to the template entitled "Events"[/COLOR]
* Remember to alter your Event Page settings to reflect the new name of this page and any other options you may wish to alter.
* That should be it. View the page and you should see the Event Page in its moderately useful glory!
Mit den beiden rot markierten Punkten komme ich nicht klar. Kann mir jemand sagen, was ich nun in der neuen events.php (die habe ich) ersetzen muss? Ich kann drum kein PHP. Der Datei-Code lautet:
<?php
/*
Template Name: Events
*/
?><?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 WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
`<?php tern_wp_events(); ?>`
get_header(); ?>
<div id="container">
<div id="content" role="main">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if ( is_front_page() ) { ?>
<h2 class="entry-title"><?php the_title(); ?></h2>
<?php } else { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php } ?>
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
</div><!-- #post-## -->
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
</div><!-- #content -->
</div><!-- #container -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen
Vielen Dank!