Title: Khairil Zhafri's Replies | WordPress.org

---

# Khairil Zhafri

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/poppacket/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/poppacket/replies/page/3/?output_format=md)…
[8](https://wordpress.org/support/users/poppacket/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/poppacket/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/poppacket/replies/page/10/?output_format=md)
[→](https://wordpress.org/support/users/poppacket/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to display the number of search results found (redux)](https://wordpress.org/support/topic/how-to-display-the-number-of-search-results-found-redux/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/how-to-display-the-number-of-search-results-found-redux/#post-858515)
 * replace:
    `if( have_posts () ) :`
 * with:
 *     ```
       if ( ! $_GET["cat"] == '' ) { $filter_cat = '&cat='.$_GET["cat"]; }
       $allsearch = &new WP_Query('s='.str_replace(' ', '+', get_search_query()).'&showposts=-1'.$filter_cat);
       $count = $allsearch->post_count;
       wp_reset_query();
   
       if( have_posts () ) :
       $have_post = '1';
       $actual_url = currentURL();
       $constructed_url = get_bloginfo(url).'/search/'.str_replace(' ', '+', get_search_query()).'/';
       $replace = str_replace('page', '', str_replace('/', '', str_replace($constructed_url, '', $actual_url)));
       $count_max = $replace*10;
       if ( $count_max < $count ) { $the_max = $count_max; } elseif ( $count_max >= $count ) { $the_max = $count; }
       $the_min = $replace*10-9;
       $display_count = 'Results '.$the_min.' - '.$the_max.' of '.$count;
       $display_count = str_replace('Results -9 - 0 of', 'Results 1 - 10 of', $display_count);
       ```
   
 * Then place
    `<?php echo $display_count; ?>` where you wanna show it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [WordPress 2.5 Share users table](https://wordpress.org/support/topic/wordpress-25-share-users-table/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/wordpress-25-share-users-table/#post-724478)
 * 1. Upgrade to 2.6.
 * 2. Make sure all WordPress instances on the same database.
 * 3. Say the primary blog have table prefix set to `wp_` and the secondary ones
   with `wp2_` `wp3_` etc. Add the following in _wp-config.php_ of the secondary
   installations:
 *     ```
       define('CUSTOM_USER_TABLE', 'wp_users');
       define('CUSTOM_USER_META_TABLE', 'wp_usermeta');
       ```
   
 * Very neat with v 2.6!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [WordPress 2.5 Share users table](https://wordpress.org/support/topic/wordpress-25-share-users-table/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years ago](https://wordpress.org/support/topic/wordpress-25-share-users-table/#post-724398)
 * I am getting this error:
 * Fatal error: Cannot access empty property in /home/poppacket/domains/domain2.
   com/public_html/wp-includes/capabilities.php on line 169
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Question on Domain Transfer](https://wordpress.org/support/topic/question-on-domain-transfer/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/question-on-domain-transfer/#post-713980)
 * Well this is what I do.
 * Assuming your blog currently hosted on ohthisismysite.com,
 * 1. Point/park ohthisismysite.org to ohthisismysite.com using domain pointer/parking
   in your hosting control panel.
 * 2. Add the following codes in wp-config.php after the $table_prefix line:
 *     ```
       $hostname = $_SERVER['SERVER_NAME'];
       $hostname = str_replace('www.', '', $hostname);
       if ($hostname == 'ohthisismysite.org') {
       define('WP_SITEURL', 'http://ohthisismysite.org');
       define('WP_HOME', 'http://ohthisismysite.org');
       }
       ```
   
 * 3. Have your lunch.
 * 4. Voila!
 * The code above is when you have installed WP in the public root and your WordPress
   address and Blog address (in wp-admin/general-options) is set to `http://ohthisismysite.
   com`. If you have something like `http://ohthisismysite.com/blog` then, change
   the value for `WP_SITEURL` and/or `WP_HOME` appropriately.
 * This method works perfectly for my site but not for some other people I had introduced
   it to. So feel free to try and I’d be happy if it work for you.
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [2 domains, same blog](https://wordpress.org/support/topic/2-domains-same-blog/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/2-domains-same-blog/#post-703498)
 * Sorry, I forgot the http:// part
 *     ```
       $hostname = $_SERVER['SERVER_NAME'];
       $hostname = str_replace('www.', '', $hostname);
       if ($hostname == 'blog.iklerik.com') {
       define('WP_SITEURL', 'http://blog.iklerik.com');
       define('WP_HOME', 'http://blog.iklerik.com');
       }
       ```
   
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Advice on Multiple Blogs](https://wordpress.org/support/topic/advice-on-multiple-blogs/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/advice-on-multiple-blogs/#post-713979)
 * This is like asking which ice cream flavor I wanna have today? Chocolate? Vanilla?
   Both? 🙂
 * Subdomains or directories? Most of the times I’d prefer subdomains. But using
   subdomains, all WP-generated emails (e.g. password reset) will bear [wordpress@subdomain.domain.com](https://wordpress.org/support/users/poppacket/replies/wordpress@subdomain.domain.com?output_format=md).
   To me, that ain’t pretty.
 * Separate databases or not? There won’t be much difference.
 * But then again it all depends on why you want to have 4 different blogs in the
   first place?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to style text in text widget?](https://wordpress.org/support/topic/how-to-style-text-in-text-widget/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/how-to-style-text-in-text-widget/#post-713377)
 * add `style="font-size: 10px"` to the `<p>` tag. You can change 10px to whatever.
 * It’d be much easier for others to help if you give the relevant part of the HTML.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Change Blog Post Title to other links like my homepage link](https://wordpress.org/support/topic/change-blog-post-title-to-other-links-like-my-homepage-link/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/change-blog-post-title-to-other-links-like-my-homepage-link/#post-713371)
 * When writing/editing a post/page look for [Post Slug](http://codex.wordpress.org/Writing_Posts)
   on the right-hand side.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Does this suppost Akismet?](https://wordpress.org/support/topic/does-this-suppost-akismet/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/does-this-suppost-akismet/#post-713370)
 * Akismet only filters spam comments. It won’t filter spam emails from contact 
   form. Your email can do that.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp-stats how to use it on a hosted package](https://wordpress.org/support/topic/wp-stats-how-to-use-it-on-a-hosted-package/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/wp-stats-how-to-use-it-on-a-hosted-package/#post-713367)
 * _one login for both on WP.com_
    Not possible. WP.com and your self-hosted WP 
   are 2 different wordpress altogether.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Cross-domain single sign on](https://wordpress.org/support/topic/cross-domain-single-sign-on/)
 *  Thread Starter [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/cross-domain-single-sign-on/#post-711094)
 * yeah, probably.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Cross-domain single sign on](https://wordpress.org/support/topic/cross-domain-single-sign-on/)
 *  Thread Starter [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/cross-domain-single-sign-on/#post-711026)
 * 😐
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permalinks and how listings appear in Google](https://wordpress.org/support/topic/permalinks-and-how-listings-appear-in-google/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/permalinks-and-how-listings-appear-in-google/#post-710936)
 * Alright, you can replace that with:
    `<title><?php echo wp_title(''); if (is_home()){
   echo ''; } else { echo ' | '; } bloginfo('name'); ?></title>`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Feed website with current blog title](https://wordpress.org/support/topic/feed-website-with-current-blog-title/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/feed-website-with-current-blog-title/#post-710890)
 * What do you mean by “to feed”?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Replace RSS Feed with my own (for real)](https://wordpress.org/support/topic/replace-rss-feed-with-my-own-for-real/)
 *  [Khairil Zhafri](https://wordpress.org/support/users/poppacket/)
 * (@poppacket)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/replace-rss-feed-with-my-own-for-real/#post-710889)
 * It has been [discussed before](http://wordpress.org/support/topic/140253?replies=18#post-679382).

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

1 [2](https://wordpress.org/support/users/poppacket/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/poppacket/replies/page/3/?output_format=md)…
[8](https://wordpress.org/support/users/poppacket/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/poppacket/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/poppacket/replies/page/10/?output_format=md)
[→](https://wordpress.org/support/users/poppacket/replies/page/2/?output_format=md)