WordPress.org

Ready to get started?Download WordPress

Forums

Debug template error (2 posts)

  1. ThorHammer
    Member
    Posted 4 years ago #

    My custom single template returns this source:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META content="text/html; charset=utf-8" http-equiv=Content-Type></HEAD>
    <BODY></BODY></HTML>

    I have gone through every line of my templates for God knows how many times, but I am unable to find anything wrong. Is it possible to suggest any place in my code (which follows the rules in the codex) where it all stops? Is it anything really wrong with the loop??

  2. Lukich
    Member
    Posted 4 years ago #

    From what you have described and shown - there's no way to tell. Here's a suggestion - put a few echo and var_dump statements in different parts of the loop to see it it returns the info at all and if it returns the right info. Hope that helps,

    Luka

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags