Forum Replies Created

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

    (@indievidulle)

    Thanks so much! Its working perfectly!

    A working result will take me a few hours cause I’d given up on this being fixable and deleted the rest of the changes and graphical changes I’d made lol.

    Thanks alot for you help! Highly appreciated!.

    Thread Starter indievidulle

    (@indievidulle)

    Home.php (https://wordpress.pastebin.com/gn8NiDAD)

    <?php get_header(); ?>
    
    <!-- begin colleft -->
    				<div id="colLeft">
    				<div id="colLeftInner" class="clearfix">
    					<!-- begin fetured post -->
    				 <?php query_posts('tag=featured');?>
                         <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    					<div id="featuredPost">
    						<span class="label">FEATURED POST</span>
    						<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
    						<div class="meta">
    							By <span class="author"><?php the_author_link(); ?></span> &nbsp;//&nbsp;  <?php the_category(', ') ?>  &nbsp;//&nbsp;  <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?>
    						</div>
    						<div class="featuredDetails"><?php the_excerpt()?>
                            <?php $featured_img = get_post_meta($post->ID, 'featured_img', $single = true); ?>
    						<a href="<?php the_permalink(); ?>"><img src="<?php echo $featured_img ?>" border="0" alt="<?php the_title(); ?>" /></a>
    						</div>
    					</div>
    					<!-- end featured post -->
                       <?php endwhile; ?>
                            <?php else : ?>
                        <?php endif; ?>
    
    					<?php $posts_query = new WP_Query($query_string.'tag=homepost&posts_per_page=-1');
    						  if(!$posts_query -> have_posts()){
    							  $latestposts_no = get_option('designpile_latest_posts');
    							  if($latestposts_no != null){
    								 $posts_query = new WP_Query($query_string.'posts_per_page='.$latestposts_no);
    							  }else{
    								 $posts_query = new WP_Query($query_string.'posts_per_page=6');
    							  }
    						  }
    						  $odd_or_even = 'odd'; ?>
                            <?php if ($posts_query -> have_posts()) : while ($posts_query -> have_posts()) : $posts_query -> the_post();  ?>
                            <div class="homePost <?php echo $odd_or_even; ?>">
                                <div class="date"><?php the_time('M') ?><br /><span><?php the_time('j') ?></span></div>
                                 <div class="meta">
                                    By <span class="author"><?php the_author_link(); ?></span> &nbsp;//&nbsp;  <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?>
                                </div>
                                <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    
                                <div><a href="#"><img src="<?php if ( function_exists('p75GetThumbnail') )echo p75GetThumbnail($post->ID); ?>" alt="" /></a><?php the_excerpt(); ?> </div>
                            </div>
                            <?php $odd_or_even = ('odd'==$odd_or_even) ? 'even' : 'odd'; ?>
                            <?php endwhile; ?>
    
                            <?php else : ?>
    
                                <p>Sorry, but you are looking for something that isn't here.</p>
    
                            <?php endif; ?>
    
    					 </div>
    					<!-- end colleftInner -->
    
    				</div>
    			<!-- end colleft -->
    			<?php get_sidebar(); ?>	
    
    <?php get_footer(); ?>

    Index.php (https://wordpress.pastebin.com/ms0ncNqT)

    <?php get_header(); ?>
    
    		<!-- begin colLeft -->
    		<div id="colLeft">
            <!-- begin colLeftInner -->
            <div id="colLeftInner" class="clearfix">
    		<!-- archive-title -->
    						<?php if(is_month()) { ?>
    						<div id="archive-title">
    						Browsing articles from "<strong><?php the_time('F, Y') ?></strong>"
    						</div>
    						<?php } ?>
    						<?php if(is_category()) { ?>
    						<div id="archive-title">
    						Browsing articles in "<strong><?php $current_category = single_cat_title("", true); ?></strong>"
    						</div>
    						<?php } ?>
    						<?php if(is_tag()) { ?>
    						<div id="archive-title">
    						Browsing articles tagged with "<strong><?php wp_title('',true,''); ?></strong>"
    						</div>
    						<?php } ?>
    						<?php if(is_author()) { ?>
    						<div id="archive-title">
    						Browsing articles by "<strong><?php wp_title('',true,''); ?></strong>"
    						</div>
    						<?php } ?>
    					<!-- /archive-title -->
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
            <!-- begin post -->
            <div class="blogPost">
            				<div class="date"><?php the_time('M') ?><br /><span><?php the_time('j') ?></span></div>
    						<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
    						<div class="meta">
    							By <span class="author"><?php the_author_link(); ?></span> &nbsp;//&nbsp;  <?php the_category(', ') ?>  &nbsp;//&nbsp;  <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?>
    						</div>
    						<?php the_content(__('read more')); ?> 
    
    		</div>
    		<!-- end post -->
    		<?php endwhile; ?>
    
    	<?php else : ?>
    
    		<p>Sorry, but you are looking for something that isn't here.</p>
    
    	<?php endif; ?>
        		</div>
                <!-- end colLeftInner -->
                <div class="navigation">
    						<div class="alignleft"><?php next_posts_link() ?></div>
    						<div class="alignright"><?php previous_posts_link() ?></div>
    			</div>
    		</div>
    		<!-- end colLeft -->
    
    <?php get_sidebar(); ?>	
    
    <?php get_footer(); ?>

    Thanks a lot for the help :).

    Thread Starter indievidulle

    (@indievidulle)

    Thanks, but i have already read through that information and still cannot get it to work with this particular theme.

    It uses a custom homepage, so even after using wp-navi and adding the above code, plus the pagination thing, i still cannot get it to display the newer/older posts buttons.

    I’ve also tried to implement this example (https://weblogtoolscollection.com/archives/2008/04/19/paging-and-custom-wordpress-loops/) of code in with the themes current code, yet it still will not display the buttons.

    Thread Starter indievidulle

    (@indievidulle)

    Sorry for the double post, but i can no longer edit the above post.

    After researching a trying several different things, i now understand that what i want is paging, and that i need to implement pagination, but as i am a noob at this, i don’t fully understand where to start.

    Once again, any help is appreciated.

    Thanks.

    Thread Starter indievidulle

    (@indievidulle)

    Thanks for the info, however;

    After having a look at the above links and trying them out, it didn’t really work out how i would like it to be.

    By the previous/next page icons, i didn’t intend to go to a separate page, going from Home > About as it turned out to do, but the intention was to go from Home > page 2 of Home.

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