moabman1
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Sliding Panel] It didn’t work for me, but I fixed itI had the same problem as Chris. The panel.js script was not appearing in the code. After insuring it wasn’t loading, I tried what Chris suggested and then everything worked fine. I double checked to make sure it wasn’t loading twice after implementing Chris’ suggestion and it only one script appeared. Thanks for the tip Chris and thanks for the warning green.
Forum: Fixing WordPress
In reply to: wp_list_pages attributes only functioning for AdminRESOLVED .. I discovered there was a conflict between the javascript related to sponsors-slideshow-widget and the problems above. Removing that plugin solved the issue.
Forum: Fixing WordPress
In reply to: wp_list_pages attributes only functioning for AdminUPDATE II … Using this code
<?php
$thePostID = $post->ID;
echo $thePostID;
$thePostParentID = $post->post_parent;
echo $thePostParentID;
?>I’ve determined that no results occur unless logged in as administrator.
Forum: Fixing WordPress
In reply to: wp_list_pages attributes only functioning for AdminUPDATE … ok, I’ve narrowed the problem down to this. When logged in as administrator I am able to get results when I try to call for the page ID number such as:
.$post->ID
But, when not logged in as an admin, I can’t get any results from that equation. This is what is causing my php sub page request to fail.
Forum: Themes and Templates
In reply to: Upgraded to 9.1 and my navigation is misbehavingAlso, the example noted in post 1 has been corrected based on the work-around mentioned in post 3.
The site is https://www.ewillys.com
My feeling at this point is that there is some conflict that is keeping non registered users from accessing the code necessary (maybe even function.php?) to make the submenus, and perhaps the sidebar, operate correctly.
I think I will try manually installing wordpress 9.1 to see if there was a problem installing the upgrade correctly. That might explain my unusual glitches.
Forum: Themes and Templates
In reply to: Upgraded to 9.1 and my navigation is misbehavingI finally created a box that appears on all subpages which states that there was a problem with the wordpress upgrade and that all uses who wish to see the subpage options should register.
It’s non optimal, but I’m not sure what else to do at this point.
Forum: Themes and Templates
In reply to: Upgraded to 9.1 and my navigation is misbehavingI tested a different piece of code. This PHP piece correctly returns the right menu when users are logged in:
<?php wp_list_pages('child_of=' . wpe_highest_ancestor()); ?>
with this inserted in the functions.php file
function wpe_highest_ancestor(){
global $post;
$page_ancestors = end($post->ancestors);
if(!empty($page_ancestors)){
$child_of = $page_ancestors;
}else{
$child_of = $post->ID;
}
return $child_of;
}However, when users are logged out, instead of a repeat of the top menu in the submenu space (discussed above), I get all the submenus for each parent menu item AND I get an error message that says: Warning end() [function end]: Passed variable is not an array or object in the functions.php on line 3634
Forum: Fixing WordPress
In reply to: New Posts Disappear?Yes, we had this happen yesterday. Interestingly, the author whose post disappeared posted the same post to his own wp instance with no problem. He runs 2.1.3 while we run 2.1.2.
The post existed for around 24 hours and had a comment. When the author went in to look at his code, he hit the edit button and recieved a message “you are not allowed to
edit this post”I went into the db and discovered his post was completely gone.
I have asked him to report on what plugins he uses to see if a plugin might somehow be causing a problem.