WordPress.org

Ready to get started?Download WordPress

Forums

Showing a specific categogy post in full post (1 post)

  1. dhimas130184
    Member
    Posted 1 year ago #

    hello....i am new in wordpress so don't i don't understand anything in php.
    I need some help to showing full post from specific category but i don;t know how to to that, i am using BoomWPA the that support blogpost to write any review and tutorial about the game, in page category is work fine ( page that show review or game tutorial with except post ) but when i click the post from that post ( redmore button ) the text not show full article ( only show a little description ), here my template blog page

    <?php
    /*
    Template Name: Blog Template
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content_left">
    
         <div id="bottomleft">
    
    				<div id="pad_blog">
    
        				<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
            </div><!-- end #pad_container2 -->
    
    		</div><!-- end #bottomleft2 -->
    
    	<?php $blog_cat = get_option('wpa_blog_cat'); ?>
        <?php $blogcat_id = get_cat_ID( "$blog_cat" ); ?>
    
     		<?php query_posts("cat=$blogcat_id" . '&paged=' . get_query_var('paged')); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    		<div id="bottomleft" style="margin-bottom:-3px;">
    
    				<div id="pad_container">
    
    								<div class="category_2">
    
    								<div class="title">
                                    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                                    </div><!-- end .title -->
    
    								</div><!-- end .category_2 -->
    
    							<div class="blogpost">
    
    								<div class="bpost">
    
    										<div class="bleft">
    
    										<div class="image">
                        <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
                        <img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php getImage('1'); ?>&w=75&h=75&zc=1&q=100" border="0"  alt="<?php the_title(); ?>" />
                        </a>
                        </div><!-- end .image-->
    
    										</div><!-- end .bleft -->
    
    												<div class="bright">
    
    												<div class="text">
                            <p><?php echo dp_clean($post->post_content, 410); ?>... <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="nofollow"><?php _e(' continue reading &raquo; ', 'wparcade');?></a></p>
    												</div><!-- end .text -->
    
    												</div><!-- end .bright -->
    
    									</div><!-- end .blogpost -->		
    
    						</div><!-- end .blogpost-->
    
          <div class="info">
          <p><?php _e("Added by", "wparcade"); ?> <?php the_author_posts_link(); ?> <?php _e("on", "wparcade"); ?> <?php the_time('F j, Y'); ?> &middot; <a href="<?php the_permalink(); ?>#comments"><?php comments_number(__('0 Comments', 'wparcade'), __('1 Comment', 'wparcade'), __('% Comments', 'wparcade')); ?></a>&nbsp;<?php edit_post_link('(Edit)', '', ''); ?></p>
          </div><!-- end .info -->
    
    				</div><!-- end #pad_container -->
    
    		</div><!-- end #bottomleft -->
    
    <?php endwhile; else: ?>
    <?php endif; ?>
    
         <div id="bottomleft">
    
    				<div id="pad_container" style="padding-top:10px;">
    
        				<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> 
    
            </div><!-- end #pad_container -->
    
    		</div><!-- end #bottomleft -->
    
    	</div><!-- end #content_left -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    and here my template blog post

    <?php
    /* Single Post Template: Blog Post Template */
    ?>
    
    <?php get_header(); ?>
    
    <?php if (have_posts()) : the_post();?>
    
    <div id="content_left">
    
    		<div id="bottomleft">
    
    				<div id="pad_container">
    
    								<div class="category_2">
    
    								<div class="title">
                                    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                                    </div><!-- end .title -->
    
    								</div><!-- end .category_2 -->
    
    		<div class="info">
    		<?php the_content(); ?>
    		</div><!-- end .info -->
    
    		<div class="info">
    		<p><?php _e("Added by", "wparcade"); ?> <?php the_author_posts_link(); ?> <?php _e("on", "wparcade"); ?> <?php the_time('F j, Y'); ?> &middot; <a href="<?php the_permalink(); ?>#comments"><?php comments_number(__('0 Comments', 'wparcade'), __('1 Comment', 'wparcade'), __('% Comments', 'wparcade')); ?></a>&nbsp;<?php edit_post_link('(Edit)', '', ''); ?></p>
    		</div><!-- end .info -->
    
    					<div class="spacerg"></div><!-- end .spacerg -->
    
    					</div><!-- end #pad_container2 -->
    
    		</div><!-- end #bottomleft2 -->
    
    		<div id="bottomleft">
    
    				<div id="pad_container">
    
    								  <div class="category_2">
    									  <div class="title">
                                        <h2><?php _e("Comments", "wparcade"); ?> (<?php comments_number('0','1','%'); ?>)</h2>
                                        </div><!-- end .title -->
    
    								</div><!-- end .category_2 -->
    
    			 		 <div id="comments">
    					  <?php comments_template('', true); ?>
                          </div><!-- end #comments -->
    
    					<?php else : ?>
    
    				 <h3><?php _e("Not Found !", "wparcade"); ?></h3>
    				 <p><?php _e("Please use a different search terms.", "wparcade"); ?></p>
    
    					<?php endif; ?>
    				</div>
    				<!-- end pad -->
    
    		</div>
    		<!-- end bottomleft -->
    
    </div>
    <!-- end content_left -->
    
    <?php include (TEMPLATEPATH . '/sidebar-blog-post.php'); ?>
    
    <?php get_footer(); ?>

    this template doesn't have archive but have categories template

    <?php
    global $options;
    foreach ($options as $value) {
        if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
    }
    $dateformat = get_option('date_format');
    $timeformat = get_option('time_format');
    ?>
    <?php get_header(); ?>
    
    <?php if ($wpa_cat_featuredad == 'No') {?>
    <?php include (TEMPLATEPATH . '/featured.php'); ?>
    <?php } ?>
    
    <div id="content_left">
    
    		<div id="bottomleft">
    
    				<div id="pad_container">
    
    								<div class="category_2">
    
                                    <div class="title">
     <h2><?php if ( get_post_meta($post->ID, 'wpa_post_type', true) == 'game' ) : ?><?php _e("Game", "wparcade"); ?><?php endif; ?><?php if ( get_post_meta($post->ID, 'wpa_post_type', true) == 'video' ) : ?><?php _e("Video", "wparcade"); ?><?php endif; ?><?php if ( get_post_meta($post->ID, 'wpa_post_type', true) == 'image' ) : ?><?php _e("Image", "wparcade"); ?><?php endif; ?> &raquo; <?php echo(get_category_parents($cat, TRUE, ' &raquo; ')); ?></h2>
                                    </div><!-- end .title -->
    
    								</div><!-- end .category_2 -->
    
    				<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
    						<div class="gamecontainer">
    
    						<div class="games">
    
    										<div class="gleft">
    
    										<div class="image"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php if(has_post_thumbnail()){ the_post_thumbnail('Thumb48',array('title'=>trim(strip_tags( get_the_title())))); } else { if ($wpa_disable_timthumb == 'No') {?><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo wpa_get_thumbnail_url($post->ID); ?>&w=48&h=48&zc=1&q=100"  width="48" height="48" border="0"  alt="<?php the_title(); ?>" /><?php } else { ?><img src="<?php echo wpa_get_thumbnail_url($post->ID); ?>"  width="48" height="48" border="0"  alt="<?php the_title(); ?>" /><?php } } ?></a>
                                            </div><!-- end .image -->
    
    										</div><!-- end .gleft-->
    
    										<div class="gright">
    
    										<div class="title">
                                            <h3><a href="<?php the_permalink(); ?>"><?php echo substr($post->post_title,0, 25); ?></a></h3>
    										</div><!-- end .title -->
    
    										<div class="text">
                                            <p><?php echo dp_clean($post->post_content, 48); ?>...</p>
                                            </div><!-- end .text -->
    
    										</div><!-- end .gright -->
    
    								</div><!-- end .games -->			
    
    						</div><!-- end .gamecontainer -->
    
    					    <?php endwhile; ?>
    
    						<?php else : ?>
                            <?php endif; ?>
    
    					<div class="spacerg"></div><!-- end .spacerg -->
    
    					  <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> 
    
              </div><!-- end #pad_container -->
    
    		</div><!-- end #bottomleft -->
    
    			<?php include (TEMPLATEPATH . '/traffictradebanners.php'); ?>
    
    </div><!-- end #content_left -->
    
    <?php get_sidebar(); ?>
    
    <?php if ($wpa_cat_description == 'No') {?>
    <div id="footer">
    
    		<div class="txtdescriptions">
    
              <?php echo category_description(); ?>
    
              </div><!-- end .site_description -->
    
    </div><!-- end .footer -->
    <?php } ?>
    
    <?php get_footer(); ?>

    Please help me how to show the full post when i click the tittle from template-blog.
    The example of the template-blog : http://gamereviver.com/blog-2/
    and the post that i wrote : http://gamereviver.com/anime-online-transforms/

Topic Closed

This topic has been closed to new replies.

About this Topic