我是wordpress的初学者。
                <?php if( have_posts() ): 
                    while( have_posts() ): the_post(); ?>
                        <p><?php the_title(); ?></p>
                        <p><?php the_category(); ?></p>
                        <p><?php the_content(); ?></p>
                 <?php
                    endwhile;
                endif;
                ?>
 我曾经使用过这个post循环,但现在它不起作用了。我哪里做错了。我在搜索,但我不能很好地理解。非常感谢。
-----------------------------EDİT-----------------------------
我创建这样的主题。

结果是这样的:(只有lile页面标题)。

如果你想要我的页面。php代码:
    <?php if(is_page(albumlerimiz)): ?>
    <div id="albumlerimiz">
        <div class="baslik">
            <h1> Albümlerimiz </h1>
        </div>  
        <div class="content">
         <div class="container">
           <div class="center-align">
              <div class="portfolio_filter">
                <ul>
                    <li data-filter="*"> TÜM ALBÜMLER </li>                    
                    <li data-filter=".dugun"> DÜGÜN ALBÜMLERİ </li>                    
                    <li data-filter=".cocuk"> ÇOCUK ALBÜMLERİ </li>                    
                    <li data-filter=".okul"> OKUL ALBÜMLERİ </li>                    
                    <li data-filter=".sunnet"> SÜNNET ALBÜMLERİ </li>                    
                </ul>        
              </div>
              <div class="portfolio_items">
                <?php if( have_posts() ): 
                    while( have_posts() ): the_post(); ?>
                        <p><?php the_title(); ?></p>
                        <p><?php the_category(); ?></p>
                        <p><?php the_content(); ?></p>
                 <?php
                    endwhile;
                endif;
                ?>
            </div>
        </div>
       </div>
    </div>
<?php endif ?>