WordPress.org

Ready to get started?Download WordPress

Forums

The page and single are not showing the right content (2 posts)

  1. johndavedecano23
    Member
    Posted 2 years ago #

    When i create a page and view it, it only shows:

    In this example, we concatenate the query before running it. First assign the variable, then concatenate and then run it. Here we’re pulling in a category variable from elsewhere.

    Please let me know how to fix this. Thanks in advance.

    In addition, it only works when using default, permalink setting

  2. johndavedecano23
    Member
    Posted 2 years ago #

    My query is:

    <?php while(have_posts()): the_post();?>
            <div class="post">
            <h2><?php the_title();?></h2>
            <?php the_content();?>
            <?php endwhile;?>

Topic Closed

This topic has been closed to new replies.

About this Topic