Title: Han's Replies | WordPress.org

---

# Han

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/hswebdev/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/hswebdev/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Shadowbox JS] Shadowbox JS does not play YouTube video](https://wordpress.org/support/topic/shadowbox-js-does-not-play-youtube-video/)
 *  [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/shadowbox-js-does-not-play-youtube-video/#post-3395121)
 * Droopie–make sure your URL query strings starts with a ? and separated by &. 
   Here is an example of one of your video’s code:
 * This:
    [http://www.youtube.com/embed/RyfmqoHdT7M?rel=0?autoplay=1](http://www.youtube.com/embed/RyfmqoHdT7M?rel=0?autoplay=1)
 * Should be:
    [http://www.youtube.com/embed/RyfmqoHdT7M?rel=0](http://www.youtube.com/embed/RyfmqoHdT7M?rel=0)**&**
   autoplay=1
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [3.7.1 HTTP Error](https://wordpress.org/support/topic/371-http-error/)
 *  [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/371-http-error/#post-4294113)
 * I think this has to do with WordPress reading media metadata (Exif, ID3 tags,
   etc.) and storing them into the database. WP crashes while crunching (or reading
   in these data).
 * I use NextGen Gallery plugin and received “internal server error” when crunching(
   creating thumbnails) for uploaded photos. It was interesting to see some photos
   go through successfully while others do not. I thought it was the GD library 
   or some Apache setting causing the issue. So after a week of upgrading PHP, MySQL,
   GD library, etc., what I did was commented out the functions in NextGen Gallery
   plugin that reads in the Exif metadata, and everything went smooth afterwards.
 * This same concept may apply to the media library and how it reads in the uploaded
   files.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Cannot use nl2br(). How does WordPress display its content?](https://wordpress.org/support/topic/cannot-use-nl2br-how-does-wordpress-display-its-content/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/cannot-use-nl2br-how-does-wordpress-display-its-content/#post-3573955)
 * I resolved this myself after looking harder online:
 *     ```
       When you retrieve the post content from the database you get the unfiltered content. If you want to achieve the same output like WordPress does in its’ posts or pages then you need to apply filter to the content. You can use the following code:
   
       <?php
       $post_id = 26;
       $queried_post = get_post($post_id);
       $content = $queried_post->post_content;
       $content = apply_filters('the_content', $content);
       $content = str_replace(']]>', ']]>', $content);
       echo $content;
       ?>
       ```
   
 * [Source](http://www.tipsandtricks-hq.com/query-or-show-a-specific-post-in-wordpress-php-code-example-44)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Questions/concerns with WordPress speed issues](https://wordpress.org/support/topic/questionsconcerns-with-wordpress-speed-issues/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/questionsconcerns-with-wordpress-speed-issues/#post-3561677)
 * Thank you! I will give the P3 Profiler plugin a try. Over the weekend, I found
   that one of the plugin that utilized the **wp_get_nav_menu_items()** WP hook 
   to create parent and child pages for navigation was taking up all the MySQL resources.
   We have over 750 pages and by using the hook, it queried those pages six times
   on every page load.
 * A note for those people using similar WordPress functions–these hooks are not
   optimized for larger websites. Create your own queries that pull in essential
   parts instead!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_postmeta: querying multiple meta_values from a random post_id](https://wordpress.org/support/topic/wp_postmeta-querying-multiple-meta_values-from-a-random-post_id/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/wp_postmeta-querying-multiple-meta_values-from-a-random-post_id/#post-3544781)
 * You are a lifesaver! Very clever way to put multiple data into one column. Thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Disable plugin javascripts in admin, but enable on front-end only?](https://wordpress.org/support/topic/disable-plugin-javascripts-in-admin-but-enable-on-front-end-only/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/disable-plugin-javascripts-in-admin-but-enable-on-front-end-only/#post-3542230)
 * This has been resolved.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Disable plugin javascripts in admin, but enable on front-end only?](https://wordpress.org/support/topic/disable-plugin-javascripts-in-admin-but-enable-on-front-end-only/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/disable-plugin-javascripts-in-admin-but-enable-on-front-end-only/#post-3542215)
 * I got it to work! Thank you Andrew!
 * I didn’t realize you had **wp**_enqueue_scripts. I thought you had **admin**_enqueue_scripts(
   wp vs. admin). There is a difference between the two according to the API. I 
   also took out the is_admin part because we no longer need to check for that.
 *     ```
       function myfunction()
       {
       	wp_enqueue_script('myscript', $url_to . 'myscript.js', array('jquery','jquery-ui-core'));
   
       }
       add_action('wp_enqueue_scripts','myfunction');
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Disable plugin javascripts in admin, but enable on front-end only?](https://wordpress.org/support/topic/disable-plugin-javascripts-in-admin-but-enable-on-front-end-only/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/disable-plugin-javascripts-in-admin-but-enable-on-front-end-only/#post-3542199)
 * Oops, I forgot the NOT in front of is_admin in my original post. The case still
   holds though. Basically, it should be saying:
 * _“do not load the JavaScript in the admin panel, but load them on the front-end
   website”_
 * I actually need it to say this:
 * _“do not load the JavaScript in the admin panel, but load them in the front-end
   website (while logged in too)”_
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Shadowbox JS] Shadowbox JS does not play YouTube video](https://wordpress.org/support/topic/shadowbox-js-does-not-play-youtube-video/)
 *  [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/shadowbox-js-does-not-play-youtube-video/#post-3395039)
 * Calling the shadowbox manually + using the embed YouTube link as follows works
   for now:
 * `<a href="http://www.youtube.com/embed/ID_GOES_HERE?autoplay=1" rel="shadowbox;
   width=640;height=385">Watch the video</a>`
 * But then again, you have to manually add width and height.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Website keeps loading infinitely](https://wordpress.org/support/topic/website-keeps-loading-infinitely/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/website-keeps-loading-infinitely/#post-3534639)
 * Website is back after removing the following from the header.php file:
 * <meta name=”expires” content=”Sat, 01 Jan 2000″>
 * I am not sure if that is related, but just after I removed that snippet, the 
   website came back. Also, my widgets were screwed up–some had gone missing. I 
   imagine this is due to enabling/disabling plugins. This is a very strange issue
   and I am tempted to say it may happen again. For now, it has been resolved.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Website keeps loading infinitely](https://wordpress.org/support/topic/website-keeps-loading-infinitely/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/website-keeps-loading-infinitely/#post-3534588)
 * Thank you. I will try to retrieve the error_logs from our admins.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [?page_id=111 vs. ?p=111 in URL](https://wordpress.org/support/topic/page_id111-vs-p111-in-url/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/page_id111-vs-p111-in-url/#post-3526870)
 * So this makes me think, does ?page_id= go to a page while ?p= go to a post?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [?page_id=111 vs. ?p=111 in URL](https://wordpress.org/support/topic/page_id111-vs-p111-in-url/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/page_id111-vs-p111-in-url/#post-3526855)
 * Our site has been modified to use posts for news sorted by date, hence setting
   the “day and name” permalink. Our website’s pages are defined in such a way when
   we have a page ID 111 and permalink for that page is “…/test-page”, we get to“…/
   test-page” when we use ?p=111 (now ?page_id=111), and vice.
 * It’s odd that ?p=xxx used to work.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [?page_id=111 vs. ?p=111 in URL](https://wordpress.org/support/topic/page_id111-vs-p111-in-url/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/page_id111-vs-p111-in-url/#post-3526838)
 * [http://dev7.hs.iastate.edu/?p=3495](http://dev7.hs.iastate.edu/?p=3495)
 * vs.
 * [http://dev7.hs.iastate.edu/?page_id=3495](http://dev7.hs.iastate.edu/?page_id=3495)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [?page_id=111 vs. ?p=111 in URL](https://wordpress.org/support/topic/page_id111-vs-p111-in-url/)
 *  Thread Starter [Han](https://wordpress.org/support/users/hswebdev/)
 * (@hswebdev)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/page_id111-vs-p111-in-url/#post-3526823)
 * After changing to the “default” permalink and removing the rewrite rules from.
   htaccess (as recommended), the ?p does not work, and ?page_id works.

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

1 [2](https://wordpress.org/support/users/hswebdev/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/hswebdev/replies/page/2/?output_format=md)