Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #441

    Hi,

    How do I change the index.php to change the lower right screen to show a page or any custom page instead of showing recent post, comments, popular posts?

    Thanks.

    #31401

    Sure, open up index.php and find this code:

    <?php
    $show_special_items = new kriesi_list_post_items;
    $show_special_items -> recent_posts('<h4>latest blog entries</h4>');
    $show_special_items -> recent_comments('<h4>recent comments</h4>');
    $show_special_items -> popular_posts('<h4>most popular entries</h4>');
    ?>

    Replace it with:

    <?php
    $args = "'p' => 1";
    $additional_loop = new WP_Query($args);
    while ($additional_loop->have_posts()) : $additional_loop->the_post();
    the_title();
    the_content();
    endwhile; endif;
    ?>

    replace the 1 of $args = “‘p’ => 1″; in the first line with the ID of the page you want to show.

    #31402

    It didnt work… I want to replace it with either a page or a scroller… please help.

    <div class=”content_right”>

    <!– latest blog, latest comment, most popular–>

    <?php

    $args = “‘p’ => 5″;

    $additional_loop = new WP_Query($args);

    while ($additional_loop->have_posts()) : $additional_loop->the_post();

    the_title();

    the_content();

    endwhile; endif;

    ?>

    </div><!–end content_right–>

    </div><!–end main–>

    #31403

    Sorry made a mistake with the $args code (the way I’ve written it is how you would put it into an array). Change this:

    $args = "'p' => 1";

    to this:

    $args = "page_id=1";

    replacing the 1 with the ID of the page you want to display.

    If you want to include a scroller this would involve more work, it would be easier to custom code your scroller and include the page instead of the $additional_loop code.

    #31404

    How do you display more than five recent posts?

    #31405

    Hi jenmattuchio,

    You would need to tell us what theme you’re using before we could answer that question. Some themes come with a pre-built widget for display recent posts, others may not.

    If you will create a new thread in your theme’s forum and we’ll be glad to answer.

    Regards,

    Mya

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Amplify – How do I modify the lower right screen – (index.php)’ is closed to new replies.