• Hello

    I’m having real issues with by blog posts. It doesn’t show the same content in the post list on the front page and on the page showing one post in full.

    Let me explain. If I create a post with i.e. image or youtube embeded, the post looks fine after publish. But on the startpage, when my post is on the top of the list, it only shows text. No image, no youtube. Only text. Very bad. How can I fix this? I want my post list to show what I want. I haven’t asked WordPress to remove anything.

    Please help ??

    /Zyhorn

Viewing 4 replies - 1 through 4 (of 4 total)
  • Your theme may be using <?php the_excerpt();?> instead of <?php the_content();?> in its main posts template file (index.php?). Try creating a child theme, editing the relevant template file in your child and replacing <?php the_excerpt();?> with <?php the_content();?>

    Thread Starter Zyhorn

    (@zyhorn)

    Thanks, that did the trick!

    Thread Starter Zyhorn

    (@zyhorn)

    Edit:
    I didn’t create a child template. I just edited index.php. My theme had this code:
    <?php get_the_featured_excerpt($excerpt_length=200); ?>

    I changed it to:
    <?php the_content();?>

    I didn’t create a child template

    If you make changes in the theme files, when the theme is updated, you will lose all your changes… If you are using a default theme, you may run into bigger problems as you need a clean copy for troubleshooting purposes.

    Really, take the time now to make a child theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not remove html or images in blog posts’ is closed to new replies.