• hello, after some googeling and trying still not working…. here is my code that should (theoraticly) fetch the post

    <div class="container">
        <?php if ( have_posts() ) : ?>
    <?php while ( have_posts() ) : the_post(); ?>
      <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <div class="post-header">
            <div class="date"><?php the_time( 'M j y' ); ?></div>
            <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
            <div class="author"><?php the_author(); ?></div>
        </div><!--end post header-->
        <div class="entry clear">
            <?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail(); ?>
            <?php the_content(); ?>
            <?php edit_post_link(); ?>
            <?php wp_link_pages(); ?>
        </div><!--end entry-->
    
        </div><!--end post footer-->
      </div><!--end post-->
    <?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
      <div class="navigation index">
        <div class="alignleft"><?php next_posts_link( 'Older Entries' ); ?></div>
        <div class="alignright"><?php previous_posts_link( 'Newer Entries' ); ?></div>
      </div><!--end navigation-->
    <?php else : ?>
    <?php endif; ?></div>

    could any1 please tell me what i did wrong ?

    Luke

Viewing 4 replies - 1 through 4 (of 4 total)
  • what template is that?

    what is the result?

    can you post link to your site to illustrate what the output of that code?

    what theme are you working with?

    Thread Starter lukeg01

    (@lukeg01)

    I’m not using a template, simply my Own thingy
    The output is simpley

    Page name
    User that made the page

    is that the code of index.php?

    what (web) page are you looking at?

    what is the full html code in the browser?

    try to simplify this line:
    <?php if ( function_exists( 'add_theme_support' ) ) the_post_thumbnail(); ?>
    to:
    <?php the_post_thumbnail(); ?>

    enable DEBUG to see if you get any error messages; https://codex.www.ads-software.com/Debugging_in_WordPress

    Thread Starter lukeg01

    (@lukeg01)

    yes, that is the code that represents the content in the index.php file
    editing that line had no effect, and in debug, wel activating it didn’t seem te cause anything to hebben, no error messages at all so….

    btw output is
    <date>
    <name of the page>
    <user who made it>

    i forgot date in previus post

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘content in mobile page’ is closed to new replies.