Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi koning75,

    Luckily for you, it is not something that is very difficult to do. You need to resort to The Loop. All templates display content on the frontpage/homepage this way.
    Basically, you can instruct your webpage how you want your content displayed anywhere on your site through php statements. All the info you need to understand how The Loop works is in the WP Codex here.
    As for the reference site you included, it is displaying the following elements: post image, post title, post excerpt, and permalink (the “Read More” link).

    Hope this helps!

    Thread Starter koning75

    (@koning75)

    Thanks Marventus, I’ll check it out later this day.

    Thread Starter koning75

    (@koning75)

    Marventus, did I understand it right that the use of the loop is used to loop posts. I’d like to loop some specified pages on my frontpage.

    I’ve read the loop in action page and the loop. Can’t find anything about looping some pages.

    Hi Koning,

    So sorry I didn’t get back to you earlier. Even though I had subscribed to this thread, I didn’t get the e-mail notification after your last reply (it happens).
    I’ll take a look at this tonight, but I’m pretty sure you can also do this with pages.
    Let me do a little research and I’ll let you know.
    Take care,

    M

    Thread Starter koning75

    (@koning75)

    Hope You still can find a moment for an answer.
    I’ve made a new template, oneculumn-homepage.php. In there I would like do display the content (which already is) and some contentblock of other pages in the website. How can I write that in?


    <?php get_header(); ?>
    <div id=”container” class=”one-column”>
    <div id=”content” role=”main”>

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <h1 class=”entry-title”><?php the_title(); ?></h1>
    <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_footer(); ?>’

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Contentblocks from pages on homepage’ is closed to new replies.