Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter eggbird

    (@eggbird)

    Thread Starter eggbird

    (@eggbird)

    The code is saved in the index.php file in the theme map

    Thread Starter eggbird

    (@eggbird)

    No looping any more : no posts ?

    Moderator bcworkz

    (@bcworkz)

    You shouldn’t require_once wp-load.php. Such a statement is not fully portable to other sites because where it is relative to document root is unpredictable. It’s also entirely unnecessary to do so in a theme template. WP has already been loaded by the time your template file executes.

    Template files should always call wp_head(); as one of its first things. Or load a header template file that does so. Failing to do so somewhere means important resources are not included in the page.

    If you are getting “Geen berichten”, the query was not able to find any posts matching the query vars used. You need to determine what query vars were in place to prevent posts from being returned. Try using the Query Monitor plugin to help you diagnose what’s wrong with the query vars.

    Thread Starter eggbird

    (@eggbird)

    Thanks, the code works !

    Thread Starter eggbird

    (@eggbird)

    resolved …

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wordpress theme from scratch, code issues …’ is closed to new replies.