• I’m using WordPress Version 3.5.1 with Theme Custom Community with 7 Widgets. I am trying to set up the ‘more’ function on a static page. I have read pretty much all the documentations and tried most of the suggestions but nothing seems to work.

    When I insert <?php global $more; $more = 0;?>
    in the Full Width Page Template (full-width.php) of my template only one article (I have 8) shows up 2x on the page and the links don’t work.

    When I use the_exerpt() tag it’s even worse. The format is striped and I only get one article.

    I have been working on this for a week and really at my wits’ end. please HELP with this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    A more tag on static page

    Give this a read, it may help you.

    https://codex.www.ads-software.com/Customizing_the_Read_More#How_to_use_Read_More_in_Pages

    kees78

    (@kees78)

    I have a simulair problem.

    I have altered my page.php file and inserted the $more code before the loop, but after the post is called.

    I do get a “read more” link on my page, however, when i click on it, it doesnt work. https://evhoppe.nl/projecten

    I cant figure out why it doesnt work. below my page.php:

    <?php get_header(); ?>
    	<div id="container">
    		<?php if( 'sidebar-content-sidebar' == esplanade_get_option( 'layout' ) ) : ?>
    			<div class="content-sidebar-wrap">
    		<?php endif; ?>
    		<section id="content">
    			<?php if( have_posts() ) : the_post(); ?>
    				<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
    					<div class="entry">
    						<?php if( esplanade_get_option( 'breadcrumbs' ) ) : ?>
    							<div id="location">
    								<?php esplanade_breadcrumbs(); ?>
    							</div><!-- #location -->
    						<?php endif; ?>
    						<header class="entry-header">
    							<<?php esplanade_title_tag( 'post' ); ?> class="entry-title"><?php the_title(); ?></<?php esplanade_title_tag( 'post' ); ?>>
    						</header><!-- .entry-header -->
    						<div class="entry-content">
    							<?php
    							global $more;
    							$more = 0;
    							?>
    
    							<?php the_content('Continue Reading'); ?>
    							<div class="clear"></div>
    						</div><!-- .entry-content -->
    						<?php wp_link_pages( array( 'before' => '<footer class="entry-utility"><p class="post-pagination">' . __( 'Pages:', 'esplanade' ), 'after' => '</p></footer><!-- .entry-utility -->' ) ); ?>
    					</div><!-- .entry -->
    					<?php comments_template(); ?>
    				</article><!-- .post -->
    			<?php else : ?>
    				<?php esplanade_404(); ?>
    			<?php endif; ?>
    		</section><!-- #content -->
    		<?php if( 'sidebar-content-sidebar' == esplanade_get_option( 'layout' ) ) : ?>
    				<?php get_sidebar( 'left' ); ?>
    			</div><!-- #content-sidebar-wrap -->
    			<?php get_sidebar( 'right' ); ?>
    		<?php elseif( ( 'no-sidebars' != esplanade_get_option( 'layout' ) ) && ( 'full-width' != esplanade_get_option( 'layout' ) ) ) : ?>
    			<?php get_sidebar(); ?>
    		<?php endif; ?>
    	</div><!-- #container -->
    <?php get_footer(); ?>

    It would be awesome if i could solve this one!

    Cheers, Kees

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A more tag on static page’ is closed to new replies.