WordPress.org

Ready to get started?Download WordPress

Forums

Page Builder by SiteOrigin
[resolved] Unfortunately your theme doesn't have any post loops. (6 posts)

  1. mihok
    Member
    Posted 1 year ago #

    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/

  2. Greg Priday
    Member
    Plugin Author

    Posted 1 year ago #

    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!

  3. Hiranthi
    Member
    Posted 1 year ago #

    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).

  4. Jan
    Member
    Posted 1 year ago #

    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.

  5. Greg Priday
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  6. Jan
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags