Support » Plugin: Subpage Listing » [Plugin: Subpage Listing] Expected string error

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • jtma508


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

    I also have this problem. Any suggestions?

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Subpage Listing] Expected string error’ is closed to new replies.