Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter bmabetha

    (@bmabetha)

    To: abooze

    Thanks to you too man.
    Is finally working, I just removed this <?php global $query_string; query_posts( $query_string . '&posts_per_page=4'); ?>

    and went to dashboard > settings > reading and set Blog pages show at most to 5. as Xam 1.0 said and it worked well on all pages!

    But thanks to you too man.

    Thread Starter bmabetha

    (@bmabetha)

    Hey, Thanks a lot, if finally works, this is how is did id

    Or just delete the query

    <?php global $query_string; query_posts( $query_string . '&posts_per_page=4'); ?>

    and go dashboard > settings > reading and set Blog pages show at most to 5.

    That should fix it.


    Now let me try the category links.

    Many Thanks!!

    Thread Starter bmabetha

    (@bmabetha)

    By the way,

    I also wanted to add categories on my sidebar, look at this link here http://harukami.co.za/blog/

    If you notice there’s a heading named Case Studies which displays categories, Other Links to be the same, but display different categories.

    Do you have an idea on how I could do that?

    Thread Starter bmabetha

    (@bmabetha)

    Thanks,

    Well I dont know what’s wrong with it, it only works well on the home.php page but I also need it on the category page.

    There’s no plugin that I should install and activate?

    Meaning you want to add another one? Im asking cos I can see a thin black line between your posts and a sidebar.

    You can send at least a code for your design.

    Thread Starter bmabetha

    (@bmabetha)

    But this is how it should be, Is that so? or should I say this how I want it to be.

    <?php get_header(); ?>
    
     <?php global $query_string; query_posts( $query_string . '&posts_per_page=4'); ?>
    
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div class="post">
       <div class="date"><?php the_time('F dS Y'); ?></div>
         <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
     <div class="tags">
     <?php the_tags('Selected works: ', ', ', '<br />'); ?>
    </div>
    
         <div class="entry">
        <?php the_content( '<div id="entry-more">More Information</div>' ); ?>
        <div id="separate">|</div>
        <div id="comm"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div>
    
       <div id="dividerLine"></div>
    
         </div>
        </div>
         <?php endwhile; ?>
    
    <div id="navigation">
    	 <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    			else { ?>
                            <div id="prev_link"><?php previous_posts_link('&laquo; Previous') ?></div>
    			<div id="next_link"><?php next_posts_link('Next &raquo;') ?></div>
    			<?php } ?>
    <!-- Page number inattivo
    <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>
    --></div>
    
    <?php else: ?>
        <h2>Not Found</h2>
        <p>Sorry, but you are looking for something that isn't here.</p>
        <?php endif; ?>
    <?php get_sidebar();?>
    <?php get_footer();?>
    Thread Starter bmabetha

    (@bmabetha)

    But this is how it should be, Is that so?

    <?php get_header(); ?>
    
     <?php global $query_string; query_posts( $query_string . '&posts_per_page=4'); ?>
    
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div class="post">
       <div class="date"><?php the_time('F dS Y'); ?></div>
         <div class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
     <div class="tags">
     <?php the_tags('Selected works: ', ', ', '<br />'); ?>
    </div>
    
         <div class="entry">
        <?php the_content( '<div id="entry-more">More Information</div>' ); ?>
        <div id="separate">|</div>
        <div id="comm"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div>
    
       <div id="dividerLine"></div>
    
         </div>
        </div>
         <?php endwhile; ?>
    
    <div id="navigation">
    	 <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    			else { ?>
                            <div id="prev_link"><?php previous_posts_link('&laquo; Previous') ?></div>
    			<div id="next_link"><?php next_posts_link('Next &raquo;') ?></div>
    			<?php } ?>
    <!-- Page number inattivo
    <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>
    --></div>
    
    <?php else: ?>
        <h2>Not Found</h2>
        <p>Sorry, but you are looking for something that isn't here.</p>
        <?php endif; ?>
    <?php get_sidebar();?>
    <?php get_footer();?>
    Thread Starter bmabetha

    (@bmabetha)

    I did, but i ended up removing them!

    Thread Starter bmabetha

    (@bmabetha)

    Im not sure which url you are looking for, so this is the url to the site that im woking on http://www.harukami.co.za/blog/

    Hey just found out, this links only are working on the home.php page but they dont on the category.php page.

    Thread Starter bmabetha

    (@bmabetha)

    Oh ,I want to display 5posts per page, need help with the next & Prev links, they work on localhost but they dont on the hosting server.
    This is how i did it <?php next_posts_link(‘Next’); ?>
    What should I do?

    I installed the plugin and activated it but my next and prev link dont work

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