• Hello,
    I am running the SuperSkeleton or Superfish theme on this website, and was noticing on my blog that the <!–more–> tag was getting ignored. After several different attempts to correct this, I discovered this thread:
    http://wordpress.org/support/topic/more-tag-ignored-on-home-page?replies=20

    It turns out that this theme lacks an archive.php file and a categories.php file,
    So I made the changes to the index.php file within the only “LOOP” area I could locate.

    I simply added this code:

    <?php
    global $more;
    $more = 0;
    ?>

    to this block of code:

    <!-- QUERY + START OF THE LOOP -->
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <?php
    global $more;
    $more = 0;
    ?>
    
    				<?php get_template_part( 'element', 'content' ); ?>
    
    			<?php endwhile; ?>
    			<?php endif; ?>
    			<!-- /POST LOOP -->

    Was this correct, and does the lack of a traditional get_the_content line mean anything?

    SO my 2 questions are this:
    1. Was this a correct fix? If not, what is the correct fix?
    2. Where do I edit the inserted (more…) text to customize it to say something else? The other forum topic about “customizing the Read more tag” does not address these issues since the ‘content’ code seems to be different than other examples.

    Thanks in advance for your help! The website is:
    permanentsupply.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • there should generally be no need to edit the index.php to get the ‘more-tag’ to work; assuming it uses the function the_content()
    http://codex.wordpress.org/Function_Reference/the_content

    as for the text of the ‘more-link’, try to check element-content.php (?) which is (possibly) called by this code: <?php get_template_part( 'element', 'content' ); ?>
    http://codex.wordpress.org/Function_Reference/get_template_part

    you might need to contact the theme’s developer for support, as this forum here only suppports themes from http://wordpress.org/extend/themes/

    Thread Starter distrikt

    (@distrikt)

    Thanks for the reply. What php file do I need to edit?

    And yes, I do have a element-content.php file…

    But there is no ‘more’ text that I can find.

    <!-- THE POST CONTENT (copied from the excerpt) -->
    				<div class="the_content post type-post hentry excerpt clearfix" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>	
    
    					<hr class="partial-bottom" />
    
    					<div class="my-avatar">
    						<a href="<?php the_permalink(); ?>">
    							<?php echo get_avatar( get_the_author_meta('email'), '32' ); ?>
    						</a>
    					</div>		
    
    					<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
    
    					<div class="date">
    						<?php _e('Posted on', 'skeleton') ?> <?php the_time(__ ('F', 'skeleton'));?> <?php the_time(__ ('jS', 'skeleton'));?>, <?php _e('by', 'skeleton')?> <?php the_author(); ?> <?php _e('in', 'skeleton')?> <?php the_category(', ') ?>. <?php comments_popup_link(__ ('No Comments', 'skeleton'), __ ('1 Comment', 'skeleton'), __ngettext ('% comment', '% comments', get_comments_number (),'skeleton')); ?>
    					</div>	 
    
    				 	<!-- Grab the image path and set our variables -->
    					<?php if (has_post_thumbnail( $post->ID )) {
    
    						// Grab the URL for the thumbnail (featured image)
    						$thumb = get_post_thumbnail_id();
    						$image_full = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); 
    
    							if (ot_get_option('default_image_height')) :
    								$imgheight = ot_get_option('default_image_height', $theme_options, false, true, 0 );
    								$image = vt_resize( $thumb, '', 700, $imgheight, true );
    							else :
    								$image = vt_resize( $thumb, '', 700, 2000, false );
    							endif;
    
    						// Check for a lightbox link, if it exists, use that as the value.
    						// If it doesn't, use the featured image URL from above.
    						if(get_custom_field('lightbox_link')) {
    							$lightbox_link = get_custom_field('lightbox_link');
    						} else {
    							$lightbox_link = $image_full[0];
    						}
    
    					?>
    
    						<div class="three columns alpha">
    							<div class="aside">
    								<a href="<?php if (get_option_tree('open_as_lightbox') == 'Yes') { echo $lightbox_link; } else { the_permalink(); } ?>" <?php if (get_option_tree('open_as_lightbox') == 'Yes') { ?>data-rel="prettyPhoto[Gallery]"<?php } ?>>
    									<img src="<?php echo $image[url]; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" alt="<?php the_title(); ?>" />
    								</a>
    							</div>
    						</div>															
    
    						<div class="eight columns omega">
    							<?php the_content(); ?>
    						</div> 
    
    						<br class="clearfix" />
    
    					<?php } else { ?>
    						<div>
    							<?php the_content(); ?>
    						</div>
    					<?php } ?>					
    
    					<!-- META AREA -->
    					<div class="meta-space">
    						<div class="tags clearfix <?php echo get_option_tree('tags_color'); ?>">
    							<img src="<?php echo WP_THEME_URL; ?>/assets/images/theme/tag.png" class="tag_icon" />
    							<?php the_tags(' ',' '); ?>
    						</div>
    					</div>
    					<!-- /META AREA -->
    				</div>
    				<!-- /THE POST CONTENT -->

    Try http://themeforest.net/user/MDNW

    We do not support commercial products here.

    Thread Starter distrikt

    (@distrikt)

    Is this not a public forum where users can exchange techniques and fixes for WordPress in all it’s forms?

    Perhaps there is a different thread within the Forum where I can submit this?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Is this not a public forum where users can exchange techniques and fixes for WordPress in all it’s forms?

    yes – that is the reason the topic is kept open in case somebody comes along to answer your question.

    you also got some links to Codex chapters you will need to work through as they might have the answer already.

    what stops you contacting the theme’s developer for support? after all this is part of what you pay for when you buy a theme…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘(more…) feature in blog problems: Did I find a buggy workaround or actual fix?’ is closed to new replies.