WordPress.org

Ready to get started?Download WordPress

Forums

Obliteration (8 posts)

  1. toe
    Member
    Posted 9 years ago #

    I want to remove the template so its just the feed and the back and forward so that I can include it to the center of my website as a news feed, any ideas?

  2. Have a read through this:
    http://codex.wordpress.org/The_Loop

  3. toe
    Member
    Posted 9 years ago #

    Is this loop just for the news, I dont want the side navigation, I dont want all the fancy graphics, all I want to do is add a news feed to http://www.mistix.info, as you can see its got news down the middle, I want this to be done by WordPress, instead of the current way which I hae updated by hand.

    If I could just get the main stuff, like the news, the next and previous and the comments. I need this basic parts so I can add news on the main site instead of pointing to http://www.mistix.info/wordpress/

    Being able to do some kind of include would be great.

  4. "The Loop is used by WordPress to display each of your posts. Using The Loop, WordPress processes each of the posts to be displayed on the current page and formats them according to how they match specified criteria within the The Loop tags."

    http://codex.wordpress.org/The_Loop

  5. Jinsan
    Member
    Posted 9 years ago #

    You could try some of the single colmn themes available and then remove all the bits you don't want, such as a menu or whatever else. Might be the easiest route.

  6. Or, just use the Loop, which is used by WordPress to display each of your posts (and only your posts).

  7. carthik
    Member
    Posted 9 years ago #

    Take your existing design, and modify it to fit around the_loop as others have suggested here.
    Take a look at one or two WP themes' index.php with all the files in it, and you will get an idea as to the function of the various code segments that go into it. This should be good enough for you to start modifying your index.php to do what you want it to.
    Excluding sidebar.php, header.php and footer.php from the default theme in 1.5 should give you a page with only the content (posts). Instead of "include" ing this index.php into your homepage, try editing your homepage to have the elements required to display those posts.

  8. toe
    Member
    Posted 9 years ago #

    2fargon, I managed to successfully eradicate the uneeded parts of the front page, now it has no actual stye to it, any ideas how I can add the color back to it.

    Modified:

    <div id="content">

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

    <?php the_date('','<h2>','</h2>'); ?>

    <div>
    <h3 class="storytitle" id="post-<?php the_ID(); ?>">" rel="bookmark"><?php the_title(); ?></h3>
    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>

    <div class="storycontent">
    <?php the_content(__('(more...)')); ?>
    </div>

    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>

    <!--
    <?php trackback_rdf(); ?>
    -->

    </div>

    <?php endwhile; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>

    <?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?>

    Unmodified:

    <div id="content">

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

    <?php the_date('','<h2>','</h2>'); ?>

    <div>
    <h3 class="storytitle" id="post-<?php the_ID(); ?>">" rel="bookmark"><?php the_title(); ?></h3>
    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>

    <div class="storycontent">
    <?php the_content(__('(more...)')); ?>
    </div>

    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>

    <!--
    <?php trackback_rdf(); ?>
    -->

    </div>

    <?php endwhile; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>

    <?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?>

    Hope that is clear?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.