Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter 4hero

    (@4hero)

    Many thanks for you time on this dnusim, I got it working!

    Here’s the end result:

    <?php query_posts('cat=3'); ?>
    	<?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); ?>
    	<div class="post" id="post-<?php the_ID(); ?>">
    	<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    	<p class="date"><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
    	<div class="entry">
    	<?php the_content("Continue reading " . get_the_title('', '', false)); ?>
    	</div>
    	<p class="comments"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    	<p class="category"><?php the_category(', ') ?></p>
    	<span class="clearfix">&nbsp;</span>
    	</div>
    	<?php endwhile; ?>
    	<?php else : ?>
    	<p class="center">Sorry, but you are looking for something that isn't here.</p>
    <?php endif; ?>
    
    <?php query_posts('cat=5'); ?>
    	<?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); ?>
    	<div class="post" id="post-<?php the_ID(); ?>">
    	<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    	<p class="date"><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
    	<div class="entry">
    	<?php the_content("Continue reading " . get_the_title('', '', false)); ?>
    	</div>
    	<p class="comments"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    	<p class="category"><?php the_category(', ') ?></p>
    	<span class="clearfix">&nbsp;</span>
    	</div>
    	<?php endwhile; ?>
    	<?php else : ?>
    	<p class="center">Sorry, but you are looking for something that isn't here.</p>
    <?php endif; ?>
    
    <?php query_posts('cat=8'); ?>
    	<?php if (have_posts()) : ?>
    	<?php while (have_posts()) : the_post(); ?>
    	<div class="post" id="post-<?php the_ID(); ?>">
    	<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    	<p class="date"><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
    	<div class="entry">
    	<?php the_content("Continue reading " . get_the_title('', '', false)); ?>
    	</div>
    	<p class="comments"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    	<p class="category"><?php the_category(', ') ?></p>
    	<span class="clearfix">&nbsp;</span>
    	</div>
    	<?php endwhile; ?>
    	<?php else : ?>
    	<p class="center">Sorry, but you are looking for something that isn't here.</p>
    <?php endif; ?>

    Thanks again!

    Thread Starter 4hero

    (@4hero)

    Thanks for replying! I added this to index.php:

    <?php query_posts('cat=3'); ?>
    <?php query_posts('cat=5'); ?>
    <?php query_posts('cat=8'); ?>
    <?php if (have_posts()) : ?>

    I also updated the options to shot at most 1, and can only see one post on my homepage. I tried updating the options to 3, but I just get the last 3 posts from cat=3?

    I appreciate your time if you can solve this for me!

    Forum: Your WordPress
    In reply to: Behind The Lens

    where’s the “boring” smiley..

    hi, have you added <!–more–> where you want the text to stop (after your 100th character)? Just hit the “Code” tab when you are adding your post/page and put the <!–more–> tag where you want the content to stop on your archive/category pages.

    Forum: Fixing WordPress
    In reply to: Hide dashboard

    don’t know it this is the correct way, but in wp-admin/menu.php I changed

    $menu[0] = array(__(‘Dashboard’), ‘read’, ‘index.php’);

    to

    $menu[0] = array(__(‘Dashboard’), ‘edit_posts’, ‘index.php’);

    seems to work 🙂

Viewing 5 replies - 1 through 5 (of 5 total)