Hallo zusammen,
ich habe eine Seite erstellt, welche sich die Inhalte aus den Menüseiten zieht und dann auch darstellt.
Nun ist in einer dieser Seiten ein ( Standard-Wordpress ) Kontaktformular, welches auch korrekt angezeigt wird, aber wenn "abschicken" benutzt wird, erfolgt kein E-Mail Versand bzw. auch nicht die Nachricht, dass die Nachricht verschickt wurde.
Ich nehme einmal an, es fehlt dann eine Logik des Kontakformulars, welches die Daten weiterverarbeitet?
Hat jemand schon einmal ähnliche Probleme erfahren dürfen?
Anbei einmal der Code:
<?php/**
* Template Name: Alle Seiten untereinander
*
* Description: A page template that provides a key component of WordPress as a CMS
* by meeting the need for a carefully crafted introductory page. The front page template
* in Twenty Twelve consists of a page content area for adding text, images, video --
* anything you'd like -- followed by front-page-only widgets in one or two columns.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header();
?>
<style type="text/css">
<!--
.button
{
cursor: pointer;
}
-->
</style>
<script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/jquery.scrollTo-1.4.3.1-min.js"></script>
<script type="text/javascript">
<!--
jQuery(document).ready(function(){
addNavigationHandler();
});
var addNavigationHandler = function(){
console.log(" addNavigationHandler ");
jQuery('#menu-topnavigation').find("a").each(function(){
var button = jQuery(this);
button.removeAttr("href");
button.addClass("button");
button.click( function(){
var id = jQuery(this).parent().attr("id");
var target = jQuery('a[name="'+id+'"]');
jQuery('body').scrollTo(target, 600);
});
});
}
-->
</script>
<div id="primary" class="site-content">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
<?php
$args = array(
'order' => 'ASC',
'orderby' => 'menu_order',
'post_type' => 'nav_menu_item',
'post_status' => 'publish',
'output' => ARRAY_A,
'output_key' => 'menu_order',
'nopaging' => true,
'update_post_term_cache' => false
);
$items = wp_get_nav_menu_items( "topnavigation", $args );
foreach( $items as $item )
{
$menuItemId = $item->ID;
$page = get_post( $item->object_id );
$id = $page->ID;
$title = $page->post_title;
$content = $page->post_content;
$content = apply_filters('the_content', $content);
?>
<a name="menu-item-<?=$menuItemId?>"></a>
<article id="post-<?= $id; ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?= $title ?></h1>
</header>
<div class="entry-content">
<?= $content ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<!-- <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>-->
</footer><!-- .entry-meta -->
</article><!-- #post -->
<?
}
?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar( 'front' ); ?>
<?php get_footer(); ?>
Alles anzeigen