Support » Plugin: Page Builder by SiteOrigin » Unfortunately your theme doesn't have any post loops.

  • Resolved mihok

    (@mihok)


    Trying out Page Builder and so I installed it onto a fresh wordpress install. Everything seems to work except the Post Loop widget, it returns the following:

    Warning: Invalid argument supplied for foreach() in /home/mihok/development/wordpress/test/wp-content/plugins/siteorigin-panels/inc/widgets.php on line 256

    Warning: Invalid argument supplied for foreach() in /home/mihok/development/wordpress/test/wp-content/plugins/siteorigin-panels/inc/widgets.php on line 260

    Unfortunately your theme doesn’t have any post loops.

    Although the error message makes sense I think this is a bug since I’m using the default theme and it cant find the post types (I’m guessing) since their content-aside.php, content-*.php, and the post loop widget looks for loop*.php

    http://wordpress.org/extend/plugins/siteorigin-panels/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Greg Priday

    (@gpriday)

    Those warning messages shouldn’t be there, so I’ll sort that out.

    You’re so right about using content-*.php. I’ll make some changes to the loop widget to get it supporting these. Thanks for the idea!

    Getting the “Unfortunately your theme doesn’t have any post loops.” message too, couldn’t find anything on it in the documentation on the Plugin Site nor on the plugin page here. So thanks for mentioning loop*.php 🙂

    Not sure about the other errors though (don’t have error display enabled atm).

    Is there a solution for this problem? I would like to display posts but get the message “Unfortunately your theme doesn’t have any post loops.”

    Thanks.

    Plugin Author Greg Priday

    (@gpriday)

    Right now, themes don’t have a standard way of specifying how they display a post loop. Page Builder tries to guess which files in your theme it could use based on the conventions used by many themes, including the default WordPress themes.

    You’re still at the mercy of your theme though. The only solution is to ask your theme developer to include a loop.php file or a content.php file in the theme. They can check Twenty Twelve to see what needs to be in these files.

    Fortunately the theme I am using is able to show the posts. So for me the problem no longer exists.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unfortunately your theme doesn't have any post loops.’ is closed to new replies.