Title: puckrat's Replies | WordPress.org

---

# puckrat

  [  ](https://wordpress.org/support/users/puckrat/)

 *   [Profile](https://wordpress.org/support/users/puckrat/)
 *   [Topics Started](https://wordpress.org/support/users/puckrat/topics/)
 *   [Replies Created](https://wordpress.org/support/users/puckrat/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/puckrat/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/puckrat/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/puckrat/engagements/)
 *   [Favorites](https://wordpress.org/support/users/puckrat/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to remove Comments off section](https://wordpress.org/support/topic/how-to-remove-comments-off-section/)
 *  [puckrat](https://wordpress.org/support/users/puckrat/)
 * (@puckrat)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/how-to-remove-comments-off-section/#post-715034)
 * [@myers1984](https://wordpress.org/support/users/myers1984/) … I think maybe 
   I understand what you’re asking for ==> you’d like for the comments references(
   i.e. comments off) to not show when a given post is not set to have comments.
   I found a method that works for me, with the theme I’m using. Perhaps it will
   work for others as well. My particular theme was showing the comment input box
   even when comments were off *and* I wanted to get rid of that oh so annoying “
   comments off” message. So …
 * With my theme it meant editing three theme files:
    - archive.php
    - comments.php
    - index.php
    - In each case, where I didn’t want the comment info to show if comments were
      off I placed the comment line display in an if statement:
    - `<?php if ('open' == $post-> comment_status) : ?> ... <?php endif; ?>`
    - i.e.
    - `| <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments');?
      >`
    - becomes
    - `<?php if ('open' == $post-> comment_status) : ?> | <?php comments_popup_link('
      Leave a Comment', '1 Comment', '% Comments'); ?><?php endif; ?>`
    - **Note:** This has some additional work needed, as the comments info will 
      not show at all if comments are off. Meaning if you had comments on, received
      comments, and then turned comments off … nothing of those previously received
      comments will be seen. I imagine something to do with
    - `<?php if ($comments) : ?><?php endif; ?>`
    - might be helpful in evaluating, and some sort of tiered if/then/else statement
      with the comments and comment_status variables. But that’s as far as I got
      this morning. :p
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Text Box width on Data Entry screen](https://wordpress.org/support/topic/text-box-width-on-data-entry-screen/)
 *  [puckrat](https://wordpress.org/support/users/puckrat/)
 * (@puckrat)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/text-box-width-on-data-entry-screen/#post-639489)
 * They are linked to the width you set for the column display width.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to switch back from permalink changing](https://wordpress.org/support/topic/how-to-switch-back-from-permalink-changing/)
 *  [puckrat](https://wordpress.org/support/users/puckrat/)
 * (@puckrat)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/how-to-switch-back-from-permalink-changing/#post-640159)
 * Drat, can’t edit. … I also set the wp_options table recently_edited option_value
   to null.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to switch back from permalink changing](https://wordpress.org/support/topic/how-to-switch-back-from-permalink-changing/)
 *  [puckrat](https://wordpress.org/support/users/puckrat/)
 * (@puckrat)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/how-to-switch-back-from-permalink-changing/#post-640158)
 * I had set permalinks away from the default setting then could not access my website—
   getting HTTP 500 Internal Server Errors on both front-end and admin interface.
 * Of course, I have since then found out that permalinks won’t work on a Windows
   server since they require use of the .htaccess file which Windows servers do 
   not support.
 * Since one can’t access the admin interface, it’s off to the database. In the 
   database, try setting wp_options table permalink_structure option_value to null.
 * Not *positive* this was the issue or the cure, but at least coincidentally I 
   am able to access my WP install now after making that database change.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error: ‘invalid argument’ instead of ‘wp_list_pages’](https://wordpress.org/support/topic/error-invalid-argument-instead-of-wp_list_pages/)
 *  [puckrat](https://wordpress.org/support/users/puckrat/)
 * (@puckrat)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-argument-instead-of-wp_list_pages/#post-160245)
 * Ahhhh … following info in [http://wordpress.org/support/topic.php?id=26896](http://wordpress.org/support/topic.php?id=26896)
   I went into the template-functions-post.php file’s get_pages() function and commented
   out the …
 * if (!isset($cache_pages) || empty($cache_pages)) {
 * … line, and it’s closing bracket, and uploaded the file. Works great! I do have
   empty categories (something that post menthioned the cache check might be gaurding
   against) and thus far am having no issues. Will keep an eye out, but hope all
   this helps someone else too. :0}`
 * lines
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error: ‘invalid argument’ instead of ‘wp_list_pages’](https://wordpress.org/support/topic/error-invalid-argument-instead-of-wp_list_pages/)
 *  [puckrat](https://wordpress.org/support/users/puckrat/)
 * (@puckrat)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-argument-instead-of-wp_list_pages/#post-160244)
 * Hmm, looking at some of the other posts (i.e. [http://wordpress.org/support/topic.php?id=24024#post-142685](http://wordpress.org/support/topic.php?id=24024#post-142685)),
   it looks like maybe the $r values need to be reset between calls made on the 
   same page as different people are getting the same types of error when explicitly
   setting one or more of the arguments … searching more …
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error: ‘invalid argument’ instead of ‘wp_list_pages’](https://wordpress.org/support/topic/error-invalid-argument-instead-of-wp_list_pages/)
 *  [puckrat](https://wordpress.org/support/users/puckrat/)
 * (@puckrat)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/error-invalid-argument-instead-of-wp_list_pages/#post-160243)
 * I too am experiencing some oddities with the wp_list_pages function resulting
   in a line 368 error.
 * I’m calling the wp_list_pages function from a static page, and there it works
   beautifully. But in the sidebar call for that page I then get the line 368 related
   error.
 * If I click to another page, the sidebar call resovles itself, but if click back
   to the page where the additional wp_list_pages function is called, it burps again.
 * code in page [see result image](http://blog.puckrat.com/wordpress/images/wp_list_pages_01.jpg)
   ():
 * < ?php
    global $id; $pagesArguments = “child_of=”.$id.”&title_li=”; //echo $pagesArguments;
   wp_list_pages($pagesArguments); ?>
 * code in sidebar: [see result image](http://blog.puckrat.com/wordpress/images/wp_list_pages_02.jpg)
 * &lt?php wp_list_pages(); ?>
 * I’m not sure I understand why the two seperate calls would affect one another.
   And there is certainly other code being successfully executed between the two.
 * I tried adding to the page the one line as mentioned in the comment above:
 * <?php wp_list_pages(‘sort_column=menu_order’); ?>
 * and then that call, and the call I make in the page, and the call in the sidebar
   then all work. But of course that first call displays *all* pages, and that’s
   not what I want.
 * I tried then removing that line again, and adding in the sort_column argument
   to just the page call, the page call & the sidebar, and then just the sidebar
   call, and all had the same results as shown in the images above. {sigh}
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Theme Switcher Plugin](https://wordpress.org/support/topic/theme-switcher-plugin/)
 *  [puckrat](https://wordpress.org/support/users/puckrat/)
 * (@puckrat)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/theme-switcher-plugin/#post-164794)
 * Unfortunately, I’ve already made that particular adjustment as I was not able
   to log in successfully after install. {sigh} :0}`
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Theme Switcher Plugin](https://wordpress.org/support/topic/theme-switcher-plugin/)
 *  [puckrat](https://wordpress.org/support/users/puckrat/)
 * (@puckrat)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/theme-switcher-plugin/#post-164783)
 * I’m having the same issue, having installed this plug-in last night. If I figure
   out the cause and hopefully fix, I’ll let you know too. :0}`
    [http://blog.puckrat.com](http://blog.puckrat.com)

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