• Resolved customdesign

    (@customdesign)


    I’ve created a child theme and made a new page in which I make the call
    <?php get_template_part( 'content', 'aside' ); ?>
    and to controll the except I use the wordpress “tag” <!–more–>
    This works just fine on the home page, but it will not function on other pages.

    Anyone got any ideas?

    To solve temporarely the problem I had to make another page and call it by
    <?php get_template_part( 'content', 'glesus' ) ?>
    and in that page write
    <?php the_excerpt(__('Continue Reading &rarr;', 'pilotfish')); ?>
    but that do not work as expected since the <!–more–> “tag” does not get changed in the right place.

    You may see what am talking about on: http://www.glesus.it
    here the <!–more–> tag works, but on this page it does not: http://www.glesus.it/holidays/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The <!--more--> quicktag doesn’t work in a single post view, like your second link. There may be a workaround, though, if you tell us what you’re trying to accomplish.

    Thread Starter customdesign

    (@customdesign)

    I’m trying to get the same lenght of the excerpts on all pages. Where and which is the call for the <!–more–> quicktag? I’ve been searchings everywhere.

    Please let me know your workaraound.

    From what you’re describing, it sounds like everything is working as expected. When you call the_excerpt(), WordPress displays either the first 55 words of the post, or until it encounters the <!--more--> quicktag. If you delete the quicktag from each of your posts, then WordPress will display the first 55 words of each post instead.

    Thread Starter customdesign

    (@customdesign)

    Thank you Stephen, but I found a solution in this thread: http://wordpress.org/support/topic/singlephp-not-honoring-the-more-link?replies=12

    For anyone having the same issue, put this code just before your loop:

    <?php function set_more($value) {
        global $more;
        $more = $value;
    }
    set_more(0);?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Excerpts strange behavior…’ is closed to new replies.