• I am using the default Kubrick theme. My posts are HTML with images and sometimes tables.

    When I click on an archive date or particular category, the display only shows text and all HTML formatting is lost as well as images. I think it is because it is building an excerpt only from text.

    I had this problem on the search pages, but I fixed it by changing the php code to show the post instead of the excerpt. However I don’t know how how to do it in this case as the code calls “wp_list_cats()”.

    The problem with the excerpt is worse for me as my posts don’t have a title because it is an affiliate product site.

    For a sample of the problem visit:
    https://megagolfmart.com/wp/category/golf-products/

    and compare it to the main page:
    https://megagolfmart.com/

    Any pointers or help will be very much appreciated.

    Kind regards,
    Balraj

Viewing 3 replies - 1 through 3 (of 3 total)
  • I *think* you need to replace “the_excerpt” with “the_content”….

    Thread Starter balraj

    (@balraj)

    But there is no occurrence of “the_excerpt()” on the archive page, it has only “wp_list_cats()”.

    Thread Starter balraj

    (@balraj)

    Sorry, your were right, I was looking in the wrong php file. It should be in the archive.php file and not the archives.php. It’s all fixed now. Many thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML Formatting Lost in Archive & Category Pages’ is closed to new replies.