WordPress.org

Ready to get started?Download WordPress

Forums

Subpage Listing
Expected string error (4 posts)

  1. David Radovanovic
    Member
    Posted 1 year ago #

    Warning: strpos() expects parameter 1 to be string, array given in /home/thewordp/public_html/wp-content/plugins/subpage-listing/subpage-listing.php on line 35

    I'm using in template as:

    <?php txfx_wp_subpages(5, false, false, '<div id="subpages"><ul>', '</div></ul>', true); ?>

    Line 35 is:

    if ( strpos($text, '<!--%subpages') !== false || is_array($text) || '' == $text || '' == $post->post_content || $post->post_content == "<br />\n" ) {

    Any ideas? Thanks for a great plugin.

    http://wordpress.org/extend/plugins/subpage-listing/

  2. jtma508
    Member
    Posted 1 year ago #

    We just started having tyhe same issue this week after the site having been up for a couple years. Any leads on the cause?

  3. sven_bruun
    Member
    Posted 1 year ago #

    I also have this problem. Any suggestions?

  4. jtma508
    Member
    Posted 1 year ago #

    I've gotten nowhere looking for a solution. If you find one PLEASE let me know. Very frustrating. One person walked me through going with the WP built-in subpage listing function but it doesn't work as they said it would.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic