Forums

Display the entire story above the (6 posts)

  1. ArmanT
    Member
    Posted 1 year ago #

    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-->
  2. tom_taylor_85
    Member
    Posted 1 year ago #

    try: <?php the_content(); >? instead of <?php echo($arr[$i]["excerpt"]); ?>

  3. ArmanT
    Member
    Posted 1 year ago #

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

  4. thisisedie
    Member
    Posted 1 year ago #

    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.

  5. ArmanT
    Member
    Posted 1 year ago #

    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-->.

  6. ArmanT
    Member
    Posted 1 year ago #

    And I want to use excerpt to exclude images :)

    Grateful for any help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.