Home>Support>Wpestate – Your theme doesn’t have any post loops.

Wpestate – Your theme doesn’t have any post loops.

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Good morning,

I want to use the pagebuilder post loop to show some properties of my site.
They’re not the standard post type.

When I add the Post Loop Widget in my page where I want the loop to show some posts from specified categories, I get this message:

“Your theme doesn’t have any post loops.”

What can I do?
I do not have an URL to show because I’m developing in localhost.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 7 months ago Andrew Misplon
    Hi, I Work Here

    Hi Pedro

    This is unfortunately true. There aren’t any matching templates that the Post Loop widget can pickup in Estate. Ideally, try our Vantage theme which that widget was crafted for:

    Theme: Free, multi-purpose, responsive WordPress theme from SiteOrigin

    Sorry I don’t have better news.

  2. 9 years, 8 months ago jimboobrien

    I have found a way to make this work:

    Create a loop.php file in your theme. Then paste this code:

    <?php
    /**
     * Just displays a post loop. Intended to be included in child themes using get_template_part('loop'). Also works with SiteOrigin page builder loop widget.
     *
     * Loop Name: Blog Loop
     *
     * @package vantage
     * @since vantage 1.0
     * @license GPL 2.0
     */
    ?>
    <?php if ( have_posts() ) : ?>
    
    	<?php /* Start the Loop */ ?>
    	<?php while ( have_posts() ) : the_post(); ?>
    
    		<?php the_content(); ?>
    
    	<?php endwhile; ?>
    
    	<?php //vantage_content_nav( 'nav-below' ); ?>
    
    <?php endif : ?>

    Then you can create a query in the backend of wordpress in the SiteOrgin Builder once you refresh the page.

    – Jim

  3. 9 years, 8 months ago jimboobrien

    I am not using the WPestate theme. I am using my own custom built bootstrap theme.

    – Jim

  4. 9 years, 8 months ago Andrew Misplon
    Hi, I Work Here

    Perfect. The Post Loop widget looks for loops with the following file name format:

    content-*.php
    *-content.php
    loop-*.php
    *-loop.php

    * is a maverick. It can be any name.

    Glad to hear you’ve made progress. All the best with your site.

    • 8 years, 8 months ago mmoscher

      For a short hint/recap: there seems to be a bug or your suggestion is wrong.

      Naming the file “loop-products_small.php” leads to success whereas “products_small-loop.php” does not.
      This happens using PageBuilder version v2.4.17.

      Best regards,
      Marco

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More