• Resolved BayTheMoon

    (@baythemoon)


    My site has a post which contains an embedded YouTube file which works perfectly:

    OK Link

    However, the same post when viewed via the Categories link does not show the embedded video.

    Not OK link

    Any clues as to why?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Your theme may be using <?php the_excerpt();?> instead of <?php the_content();?> in its category template file. Try editing the category.php (or archive.php) and replacing <?php the_excerpt();?> with <?php the_content();?>.

    Thread Starter BayTheMoon

    (@baythemoon)

    esmi

    Thanks for the response, but no luck I’m afraid. Neither archive.php nor category.php contain either of those bits of code.

    I just had a thought: The list of posts shown after clicking Categories has a restriction on how big the excerpt is, is it possible that embedding is not permitted or not readable by the code that restricts the excerpt? Or any idea where the bit of code is that allows me to lengthen the excerpt?

    All formatting & images/embeds are removed from the_excerpt().

    Thread Starter BayTheMoon

    (@baythemoon)

    Looks that way. have to settle for what I’ve got. Thanks for replying.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Odd link behaviour in Categories’ is closed to new replies.