StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   No read more thingy anywhere... (http://www.studiopress.com/support/showthread.php?t=21955)

vij 02-18-2010 12:19 PM

No read more thingy anywhere...
 
I dont have thje "read more" thingy on my "home page post" or "category section".
I guess it has something to do with page_blog.php from what I gathered reading around.
This is what I have currently on page_blog.php
I have not touched it. Its the default file. Please help!
Code:

<?php
/*
Template Name: Blog
*/
?>

<?php get_header(); ?>

<div id="content">

        <div id="contentleft">
       
                <div class="postarea">
       
                <?php include(TEMPLATEPATH."/breadcrumb.php");?>
                               
                        <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=".get_theme_mod('blog_cat')."&showposts=".get_theme_mod('blog_cat_num')."&paged=$page"); while ( have_posts() ) : the_post() ?>
           
                        <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
                               
                        <div class="date">
                       
                                <div class="dateleft">
                                        <p><span class="time"><?php the_time('F j, Y'); ?></span> <?php _e("by", 'studiopress'); ?> <?php the_author_posts_link(); ?> &nbsp;<?php edit_post_link(__('(Edit)', 'studiopress'), '', ''); ?> <br /> <?php _e("Filed under", 'studiopress'); ?> <?php the_category(', ') ?></p>
                                </div>
                               
                                <div class="dateright">
                                        <p><span class="icomment"><a href="<?php the_permalink(); ?>#comments"><?php comments_number(__('Leave a Comment', 'studiopress'), __('1 Comment', 'studiopress'), __('% Comments', 'studiopress')); ?></a></span></p>
                                </div>
                               
                        </div>
                               
                        <?php the_excerpt(); ?><div class="clear"></div>
                               
                        <div class="postmeta2">
                                <p><span class="tags"><?php _e("Tags", 'studiopress'); ?>: <?php the_tags('') ?></span></p>
                        </div>
                                                       
                        <?php endwhile; ?>
                       
                        <p><?php posts_nav_link(); ?></p>
               
                </div>
               
        </div>
       
<?php get_sidebar(); ?>
               
</div>

<?php get_footer(); ?>


CharlesClarkson 02-18-2010 03:58 PM

Quote:

Originally Posted by vij (Post 110986)
I dont have thje "read more" thingy on my "home page post" or "category section".

These pages are generated using the home.php and archive.php theme files, not the page_blog.php theme file. What are the urls to example pages with the problem you describe?

vij 02-18-2010 09:38 PM

My archive,php and blog_page.php are different from whats mentioned in this tutorial here http://www.studiopress.com/support/s...ad.php?t=19267
I know they are talking about something else, but the code snippet they are talking about doesn't exist for me at all. So was concerned.


Anyways. Please see my pages.
<edit>

I have no read more link. Only way to view the complete post is to click the title. Pl help.

CharlesClarkson 02-18-2010 11:14 PM

Show us the contents of the home.php theme file.

vij 02-19-2010 05:01 AM

Quote:

Originally Posted by CharlesClarkson (Post 111151)
Show us the contents of the home.php theme file.

Here it is:
PHP Code:

<?php get_header(); ?>

<div id="content">

    <div id="homepage">
    
        <?php // checks to see if the Featured Content Gallery plguin is enabled - if it isn't, nothing will diplay ?>
        <?php if (function_exists('gallery_styles')) : ?>
        <div id="homepagetop">
            <div class="featuredtop">
                <?php include (ABSPATH '/wp-content/plugins/featured-content-gallery/gallery.php'); ?>
            </div>
        </div>
        <?php endif; ?>
        <?php // end ?>
                    
        <div id="homepageleft">
                
            <div class="hpfeatured">
            <h3><?php echo cat_id_to_name(get_theme_mod('featured_top_left')); ?></h3>
                
                <?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left')."&showposts=".get_theme_mod('featured_top_left_num')); while($recent->have_posts()) : $recent->the_post();?>
                <?php if( get_post_meta($post->ID"thumb"true) ): ?>
                <a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID"thumb"$single true); ?>&amp;h=<?php echo get_theme_mod('featured_top_left_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_left_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" /></a>    
                <?php else: ?>
                <?php endif; ?>                    
                
                <strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
                <?php the_content_limit(80""); ?>
                
                <hr/>
                
                <?php endwhile; ?>
                
                <?php if(get_theme_mod('featured_top_left')) : ?>
                <strong><a href="<?php echo get_category_link(get_theme_mod('featured_top_left')); ?>" rel="bookmark"><?php _e("Read more posts from "'studiopress'); echo get_cat_name(get_theme_mod('featured_top_left')); ?></a></strong>
                <?php endif; ?>
                
            </div>            
                
        </div>
        
        <div id="homepageright">
        
            <div class="hpfeatured">
            <h3><?php echo cat_id_to_name(get_theme_mod('featured_top_right')); ?></h3>
            
                <?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_right')."&showposts=".get_theme_mod('featured_top_right_num')); while($recent->have_posts()) : $recent->the_post();?>
                <?php if( get_post_meta($post->ID"thumb"true) ): ?>
                <a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID"thumb"$single true); ?>&amp;h=<?php echo get_theme_mod('featured_top_right_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_top_right_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" /></a>    
                <?php else: ?>
                <?php endif; ?>        
                        
                <strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>                
                <?php the_content_limit(80""); ?>
                                
                <hr/>
                
                <?php endwhile; ?>
                
                <?php if(get_theme_mod('featured_top_right')) : ?>
                <strong><a href="<?php echo get_category_link(get_theme_mod('featured_top_right')); ?>" rel="bookmark"><?php _e("Read more posts from "'studiopress'); echo get_cat_name(get_theme_mod('featured_top_right')); ?></a></strong>
                <?php endif; ?>
                
            </div>        
            
        </div>
        
        <div id="homepagebottom">
        
            <div class="hpbottom">
            <h3><?php echo cat_id_to_name(get_theme_mod('featured_bottom')); ?></h3>
                
                <?php $recent = new WP_Query("cat=".get_theme_mod('featured_bottom')."&showposts=".get_theme_mod('featured_bottom_num')); while($recent->have_posts()) : $recent->the_post();?>
                <?php if( get_post_meta($post->ID"thumb"true) ): ?>
                <a href="<?php the_permalink() ?>" rel="bookmark"><img class="thumb" src="<?php bloginfo('template_directory'); ?>/tools/timthumb.php?src=<?php echo get_post_meta($post->ID"thumb"$single true); ?>&amp;h=<?php echo get_theme_mod('featured_bottom_thumb_height'); ?>&amp;w=<?php echo get_theme_mod('featured_bottom_thumb_width'); ?>&amp;zc=1" alt="<?php the_title(); ?>" /></a>    
                <?php else: ?>
                <?php endif; ?>                
                
                <strong><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></strong>
                <?php the_content_limit(350__("[Read more of this review]"'studiopress')); ?>
                    
                <hr/>
                    
                <?php endwhile; ?>
                        
                <?php if(get_theme_mod('featured_bottom')) : ?>
                <strong><a href="<?php echo get_category_link(get_theme_mod('featured_bottom')); ?>" rel="bookmark"><?php _e("Read more posts from "'studiopress'); echo get_cat_name(get_theme_mod('featured_bottom')); ?></a></strong>
                <?php endif; ?>
            
            </div>
        
        </div>
        
    </div>
    
<?php get_sidebar(); ?>
        
</div>

<?php get_footer(); ?>


CharlesClarkson 02-19-2010 06:27 AM

Quote:

Originally Posted by vij (Post 111195)
Here it is:
PHP Code:

<?php the_content_limit(80""); ?>


Change that to this:
PHP Code:

<?php the_content_limit(80'Read more'); ?>


HTH,


All times are GMT -5. The time now is 01:52 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.