• I want to use More tags in the wp project pages for the Hero theme by ThemeTrust.

    The page example where I have added the more tag is:

    https://designstage.tv/project/premios-gaudi-3/

    I have changed the single-project.php to the following but although the ‘Read more’ link is generated in the page it does not open the remaining text in the project page?

    All/any help appreciated! I am royally stuck:

    <?php get_header(); ?>			
    
    		<div id="pageHead">
    			<h1><?php the_title(); ?></h1>
    			<div class="projectNav clearfix">
    				<div class="previous <?php if(!get_previous_post()){ echo 'inactive'; }?>">
    					<?php previous_post_link('%link', '← %title'); ?>
    				</div>
    				<div class="next <?php if(!get_next_post()){ echo 'inactive'; }?>">
    					<?php next_post_link('%link', '%title →'); ?>
    				</div>
    			</div> <!-- end navigation -->
    		</div>
    
    		<div id="content" class="full">
    			<?php while (have_posts()) : the_post(); ?>
    			<div class="project clearfix">
    				<?php global $more; $more = 0; ?>
    				<?php the_content('Read more'); ?>				
    
    				<?php $project_url = get_post_meta($post->ID, "_ttrust_url_value", true); ?>
    				<?php $project_url_label = get_post_meta($post->ID, "_ttrust_url_label_value", true); ?>
    				<?php $project_url_label = ($project_url_label!="") ? $project_url_label : __('Visit Site', 'themetrust'); ?>
    				<ul class="skillList clearfix"><?php ttrust_get_terms_list(); ?>
    				<?php if ($project_url) : ?>
    					<p><a>"><?php echo $project_url_label; ?></a></p>
    				<?php endif; ?>			
    
    			</div>
    			<?php comments_template('', true); ?>
    			<?php endwhile; ?>
    		</div>
    
    <?php get_footer(); ?>

    [Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code may now have been permanently damaged/corrupted by the forum’s parser.]

  • The topic ‘More Tag in Project Page’ is closed to new replies.