Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • My site didn’t break, but there’s an error message on every page of my site. I just updated the plugin yesterday.

    Here’s the error message:
    Warning: trim() expects parameter 1 to be string, array given in /homepages/45/d317052786/htdocs/wp-content/plugins/the-events-calendar/src/Tribe/Main.php on line 2397

    Is this like 2 releases ago, where we have to wait for a release for it to clear up? I inherited the site 6 months ago and I don’ t want to mess it up.

    Thread Starter nextsteph

    (@nextsteph)

    I’ve looked at Otto42 post here:
    http://wordpress.org/support/topic/164999?replies=1

    and it seemed to fix it.

    I’m having a similar issue.

    Ever since my webhost changed servers, my child pages will not show up.

    In other words, when I’m on a parent page (except for the homepage) I want the child pages to appear on both the parent and the child pages.

    Here’s the code I had before the switch:

    <?php
    if($post->post_parent)
    $children = wp_list_pages(“title_li=&child_of=”.$post->post_parent.”&echo=0&exclude=314,317,422,425,427,430,438″); else
    $children = wp_list_pages(“title_li=&child_of=”.$post->ID.”&echo=0&exclude=314,317,422,425,427,430,438″);

    if ($children) { ?>

      <?php

      if (is_page(2) || $post->post_parent==”2″) {
      echo ‘

    • <h2>About</h2>
    • ‘;

      }

      else if (is_page(50) || $post->post_parent==”50″) {
      echo ‘

    • <h2>Services</h2>
    • ‘;
      }

      else if (is_page(393) || $post->post_parent==”393″) {
      echo ‘

    • <h2>eCourses</h2>
    • ‘;
      }

      else if (is_page(34) || $post->post_parent==”34″) {
      echo ‘

    • <h2>Portfolio</h2>
    • ‘;

      }

      else {
      echo ”; // Fall-through
      }

      ?>
      <?php echo $children; ?>

    <?php } ?>

    However, when I do list pages, it lists all the pages.

    <?php wp_list_pages(‘exclude=314,317,422,425,427,430,438&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>

    I just don’t know what else to so,

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