• I purchased the “revolution music” theme from a wordpress theme website and basically the items on the homepage are not shown fully, instead its a little excerpt and a picture (https://www.strikemma.com)

    Can someone tell me how I can modify this code so that on the homepage it shows the Entire Posts instead of a sample and a read more button. I also want to make sure its only showing posts in category “23”.

    This is the current code to the homepage

    <?php get_header(); ?>
    
    <div id="content">
    
    	<div id="homepage">
    
    		<div id="homepagetop">
    
    			<div class="hptabber">
    
    				<h3>Mixed Martial Arts News</h3>
    
    				<!--This is where the thumbnails are found for the homepage bottom section - note the custom field name for this image is "hpbottom". Recommended image size is 70x70, as the stylesheet is written for this size.-->
    
    				<?php $recent = new WP_Query("cat=23&showposts=7"); while($recent->have_posts()) : $recent->the_post();?>
    				<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
    				    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a>
    				<?php else: ?>
    				   	<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;"  src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
    				<?php endif; ?>
    				<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
    				<?php the_content_limit(350, "[Read more]"); ?>
    
    				<div style="border-bottom:1px dotted #2255AA; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
    
    				<?php endwhile; ?>
    
    				<!--This is where you can specify the archive link for each section. Replace the # with the appropriate URL-->
    
    				<b><a href="https://www.strikemma.com/category/mixed-martial-arts-news/" rel="bookmark">Read More Mixed Martal Arts News...</a></b>
    
    			</div>
    
    		</div>
    
    	</div>
    
    <?php include(TEMPLATEPATH."/sidebar_home.php");?>
    
    </div>
    
    <!-- The main column ends  -->
    
    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Revolution Music has support forum
    https://www.revolutiontwo.com/support/viewforum.php?f=24
    Brian Gardner and volunteers would easily point you to correct configuration.

    Both questions can be addressed with “The_Loop“.

    To view the full articles replace

    <?php the_content_limit(350, "[Read more]"); ?>

    with

    <?php the_content('Read more...'); ?>

    You wouldn’t have to change anything else to make sure that only posts from category 23 are posted.

    <?php $recent = new WP_Query("cat=23&showposts=7"); while($recent->have_posts()) : $recent->the_post();?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show entire posts on homepage.’ is closed to new replies.