Title: David Calhoun's Replies | WordPress.org

---

# David Calhoun

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 98 total)

1 [2](https://wordpress.org/support/users/dpcalhoun/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/dpcalhoun/replies/page/3/?output_format=md)…
[5](https://wordpress.org/support/users/dpcalhoun/replies/page/5/?output_format=md)
[6](https://wordpress.org/support/users/dpcalhoun/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/dpcalhoun/replies/page/7/?output_format=md)
[→](https://wordpress.org/support/users/dpcalhoun/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How To Add Pipe ( | ) To php get_links code](https://wordpress.org/support/topic/how-to-add-pipe-to-php-get_links-code/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years ago](https://wordpress.org/support/topic/how-to-add-pipe-to-php-get_links-code/#post-2232828)
 * Darren, have you tried using CSS to float the `<li>`‘s inline?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How To Add Pipe ( | ) To php get_links code](https://wordpress.org/support/topic/how-to-add-pipe-to-php-get_links-code/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years ago](https://wordpress.org/support/topic/how-to-add-pipe-to-php-get_links-code/#post-2232759)
 * I’d agree with Ipstenu. Using deprecated functions can cause you a lot of headache.
 * When using `wp_list_bookmarks()`, why not float the elements if you need them
   to be on the same line? What is the HTML that `wp_list_bookmarks()` is outputting?`
   <li>`‘s?
 * The solution I used incorporated `wp_list_bookmarks()`. [http://wordpress.org/support/topic/adding-special-characters-between-bookmark-links-using-wp_list_bookmarks?replies=4#post-1313855](http://wordpress.org/support/topic/adding-special-characters-between-bookmark-links-using-wp_list_bookmarks?replies=4#post-1313855)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [.htaccess file can't be replaced to change URLs](https://wordpress.org/support/topic/htaccess-file-cant-be-replaced-to-change-urls/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/htaccess-file-cant-be-replaced-to-change-urls/#post-2074061)
 * You should **not** be removing the code that WordPress places in the .htaccess
   file by default. It is needed to make the site run properly. Leave what is already
   in there and add the pieces I’ve talked about.
 * Also, I’m assuming you are replacing “mydomain.com” with your actual domain, 
   correct?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [.htaccess file can't be replaced to change URLs](https://wordpress.org/support/topic/htaccess-file-cant-be-replaced-to-change-urls/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/htaccess-file-cant-be-replaced-to-change-urls/#post-2073845)
 * Crystal, I read your post quickly and overlooked the part where you redirecting
   individual pages as well. Sorry about that. The code I posted will fix the non-
   www issue.
 * To redirect individual pages, try doing the following for each page URL:
 *     ```
       RewriteRule ^about.html$ http://www.mydomain.com/about-us [L,R=301]
       RewriteRule ^work.html$ http://www.mydomain.com/our-work [L,R=301]
       ```
   
 * If the above doesn’t work, try adding a leading / before like so:
 *     ```
       RewriteRule ^/about.html$ http://www.mydomain.com/about-us [L,R=301]
       RewriteRule ^/work.html$ http://www.mydomain.com/our-work [L,R=301]
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Theme Broken in Firefox Only](https://wordpress.org/support/topic/theme-broken-in-firefox-only/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/theme-broken-in-firefox-only/#post-2073278)
 * Firefox doesn’t like your CSS on line 700 of style.css:
 *     ```
       .art-sheet {
           cursor: auto;
           margin: -10px auto 0;
           min-height: 17px;
           min-width: 17px;
           position: relative;
           width: 960px;
       }
       ```
   
 * If you remove the -10px `margin-top`, it all works out fine.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [.htaccess file can't be replaced to change URLs](https://wordpress.org/support/topic/htaccess-file-cant-be-replaced-to-change-urls/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/htaccess-file-cant-be-replaced-to-change-urls/#post-2073823)
 * You should be able to just add the following to your .htaccess file:
 *     ```
       RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
       RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Images sporadically not loading](https://wordpress.org/support/topic/images-sporadically-not-loading/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/images-sporadically-not-loading/#post-2056736)
 * Is it possible some of the images are CMYK? I know IE won’t display them while
   other browsers will.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Where are the excerpts in new version?](https://wordpress.org/support/topic/where-are-the-excerpts-in-new-version/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/where-are-the-excerpts-in-new-version/#post-2032664)
 * Click and drag the bottom right corner.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress URL in address bar](https://wordpress.org/support/topic/wordpress-url-in-address-bar/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/wordpress-url-in-address-bar/#post-2032396)
 * Can you provide the actual URL’s?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Where are the excerpts in new version?](https://wordpress.org/support/topic/where-are-the-excerpts-in-new-version/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/where-are-the-excerpts-in-new-version/#post-2032395)
 * Is the excerpt box just hidden in the post write panel? Make sure “Excerpt” is
   checked in the “Screen Options” panel. You can find that in the upper right corner
   when you are editing/writing a post.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permission Levels and access](https://wordpress.org/support/topic/permission-levels-and-access/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/permission-levels-and-access/#post-2031868)
 * [Members](http://wordpress.org/extend/plugins/members/) is also a good solution
   to check out.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Safari adding 30px top margin to background image](https://wordpress.org/support/topic/safari-adding-30px-top-margin-to-background-image/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/safari-adding-30px-top-margin-to-background-image/#post-2024205)
 * You have a `margin-top: 33px` on your `div#header`. I believe that is what is
   causing the extra space above.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [ONLY show future (and today) posts](https://wordpress.org/support/topic/only-show-future-and-today-posts/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/only-show-future-and-today-posts/#post-2028544)
 * Check out the [time parameters](http://codex.wordpress.org/Function_Reference/WP_Query#Time_Parameters)
   for `query_posts`. You might could do something like:
 *     ```
       function filter_where( $where = '' ) {
       	// posts in the next 30 days
       	$where .= " AND post_date > '" . date('Y-m-d', strtotime('+30 days')) . "'";
       	return $where;
       }
       add_filter( 'posts_where', 'filter_where' );
   
       $query = new WP_Query( $query_string );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Is there a WordPress plugin similar to Drupal's Features module?](https://wordpress.org/support/topic/is-there-a-wordpress-plugin-similar-to-drupals-features-module/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/is-there-a-wordpress-plugin-similar-to-drupals-features-module/#post-1799778)
 * This would be **awesome**. I’d pay money to have this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Custom Post Type Parent](https://wordpress.org/support/topic/custom-post-type-parent/)
 *  [David Calhoun](https://wordpress.org/support/users/dpcalhoun/)
 * (@dpcalhoun)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/custom-post-type-parent/page/2/#post-1563595)
 * This is what I ended up doing. Since it checks based on the href and not the 
   page ID, it prevents you from having to rewrite your code if you delete and recreate
   any pages.
 * I made this for my “gallery” post type. Feel free to change it out for whatever
   post type you need. Mine checked for single gallery pages, gallery archive pages
   and archives for a custom taxonomy called “styles”.
 *     ```
       if ( $('body').hasClass('post-type-archive-gallery') || $('body').hasClass('tax-style') || $('body').hasClass('single-gallery') ) {
           var current_page = $('nav#primary-navigation ul li.current_page_parent');
           var gallery_page = $('nav#primary-navigation ul li a[href="/gallery"]');
           $(current_page).removeClass('current_page_parent');
           $(gallery_page).parent('li').addClass('current_page_parent');
         }
       ```
   

Viewing 15 replies - 1 through 15 (of 98 total)

1 [2](https://wordpress.org/support/users/dpcalhoun/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/dpcalhoun/replies/page/3/?output_format=md)…
[5](https://wordpress.org/support/users/dpcalhoun/replies/page/5/?output_format=md)
[6](https://wordpress.org/support/users/dpcalhoun/replies/page/6/?output_format=md)
[7](https://wordpress.org/support/users/dpcalhoun/replies/page/7/?output_format=md)
[→](https://wordpress.org/support/users/dpcalhoun/replies/page/2/?output_format=md)