Beiträge von ICYE Schweiz

    Das wäre der php-code der front page:


    get_header(); ?>


    <?php
    $page_array = array( get_theme_mod( 'page-setting-one' ), get_theme_mod( 'page-setting-two' ), get_theme_mod( 'page-setting-three' ) );
    for ($i=4; $i < 10; $i++) {
    array_push( $page_array, get_theme_mod( 'page-setting-'.$i ) );
    }
    $get_featured_pages = new WP_Query( array(
    'posts_per_page' => 9,
    'post_type' => array( 'page' ),
    'post__in' => $page_array,
    'orderby' => 'post__in',
    'ignore_sticky_posts' => 1
    ));
    ?>
    <div id="featured_pages" class="clearfix">
    <?php
    $j = 1;
    while ( $get_featured_pages->have_posts() ) :
    $get_featured_pages->the_post();
    if( $j % 3 == 0 && $j > 1 ) { $page_class = "tg-one-third tg-one-third-last"; }
    else { $page_class = "tg-one-third"; }
    if ( $j % 3 == 1 && $j > 1 ) {
    $page_class = $page_class." tg-after-three-blocks-clearfix";
    }
    ?>
    <div class="<?php echo $page_class; ?>">
    <div class="page_text_container">
    <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?>
    <h3 class="entry-title"><a title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    <?php the_excerpt(); ?><a class="more-link" title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><?php _e( 'Read more','radiate' ); ?></a>
    </div>
    </div>
    <?php $j++;
    endwhile;
    wp_reset_postdata();
    ?>
    </div>

    <div id="primary" class="content-area">
    <main id="main" class="site-main" role="main">


    /* Include the Post-Format-specific template for the content.
    * If you want to override 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 radiate_paging_nav(); ?>

    <?php else : ?>

    <?php get_template_part( 'content', 'none' ); ?>

    <?php endif; ?>

    </main><!-- #main -->
    </div><!-- #primary -->

    <?php radiate_sidebar_select(); ?>
    <?php get_footer(); ?>

    Hallo Zusammen,

    ich arbeite mit dem Theme Radiate Pro.
    Gerne möchte ich eine statische Front Page einrichten, allerdings habe ich nicht herausgefunden,
    wo und wie ich das am Besten machen kann. Im php-Code selber? Wenn ja, wo? :)

    Es zeigt mir auf der Front Page immer die Beiträge einer Seite an.
    Dabei möchte ich nur den Slider und das Menü als Startseite, so dass der
    Besucher auf der ersten Seite nicht runterscrollen muss...

    Hoffe Jemand kann mir weiter helfen. Danke!