nextsteph
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] 📣 The Events Calendar 4.6.9My 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 2397Is 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.
Forum: Fixing WordPress
In reply to: Image alignment woes with WordPress 2.92I’ve looked at Otto42 post here:
http://wordpress.org/support/topic/164999?replies=1and it seemed to fix it.
Forum: Fixing WordPress
In reply to: If Child Pages HelpI’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
- <h2>About</h2>
- <h2>Services</h2>
- <h2>eCourses</h2>
- <h2>Portfolio</h2>
if (is_page(2) || $post->post_parent==”2″) {
echo ‘‘;
}
else if (is_page(50) || $post->post_parent==”50″) {
echo ‘‘;
}else if (is_page(393) || $post->post_parent==”393″) {
echo ‘‘;
}else if (is_page(34) || $post->post_parent==”34″) {
echo ‘‘;
}
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,