• I’m trying to get this code to work. I want to publish everything above the <!–more–>, but instead it cuts down automatically. I would not have to show some pictures (it works now). What should I do?

    <p><?php echo($arr[$i]["excerpt"]); ?></p>

    The entire code of the publication is as follows:

    <div id="slides">
    		<?php for ($i = 1; $i <= $featured_num; $i++) { ?>
    			<div class="slide">
    				<?php print_thumbnail($arr[$i]["thumb"], $arr[$i]["use_timthumb"], $arr[$i]["fulltitle"] ,$width, $height); ?>
    				<div class="overlay"></div>
    				<div class="description">
    					<h2 class="title"><a href="<?php echo($arr[$i]["permalink"]); ?>"><?php echo($arr[$i]["title"]); ?></a></h2>
    					<p><?php echo($arr[$i]["excerpt"]); ?></p>
    					<a href="<?php echo($arr[$i]["permalink"]); ?>" class="readmore"><span><?php _e('l?s mer','Professional'); ?></span></a>
    				</div> <!-- end .description -->
    			</div> <!-- end .slide -->
    		<?php }; ?>
    	</div> <!-- end #slides-->
Viewing 5 replies - 1 through 5 (of 5 total)
  • try: <?php the_content(); >? instead of <?php echo($arr[$i]["excerpt"]); ?>

    Thread Starter ArmanT

    (@armant)

    No, it does not work. Nor does the_excerpt() works

    If you want the entire post to show instead of an excerpt, replace:

    <p><?php echo($arr[$i]["excerpt"]); ?></p>
    <a href="<?php echo($arr[$i]["permalink"]); ?>" class="readmore"><span><?php _e('l?s mer','Professional'); ?></span></a>

    with

    <?php the_content(); ?>

    If that’s not what you want, please explain in more detail what you’re trying to do.

    Thread Starter ArmanT

    (@armant)

    What I want is to display the text until the <!–more–>.

    Now it display more text than I want. It is not aware of the <!–more–>.

    Thread Starter ArmanT

    (@armant)

    And I want to use excerpt to exclude images ??

    Grateful for any help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display the entire story above the’ is closed to new replies.