Support » Theme: Pilot Fish » Excerpts strange behavior…

  • Resolved 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:
    here the <!–more–> tag works, but on this page it does not:

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator stephencottontail


    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.

    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.

    Moderator stephencottontail


    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.

    Thank you Stephen, but I found a solution in this thread:

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

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

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