This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

Resolved 5 replies pluginplugin-page-builder
11 years ago · Last reply by mmoscher 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Andrew Misplon Staff 11 years, 2 months ago

    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:

    https://siteorigin.com/theme/vantage/

    Sorry I don’t have better news.

  2. jimboobrien 10 years, 4 months ago

    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. jimboobrien 10 years, 4 months ago

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

    – Jim

  4. Andrew Misplon Staff 10 years, 3 months ago

    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.

    • mmoscher 9 years, 3 months ago

      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.

Have a different question or issue?

Start New Thread