Title: lee718's Replies | WordPress.org

---

# lee718

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get the url of image attachment](https://wordpress.org/support/topic/get-the-url-of-image-attachment/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/get-the-url-of-image-attachment/#post-4483721)
 * In case anyone needs this, here is my solution:
 *     ```
       if ($_FILES) {
   
               function insert_attachment($file_handler, $post_id, $setthumb = 'false') {
               if ($_FILES[$file_handler]['error'] !== UPLOAD_ERR_OK) __return_false();
   
               require_once(ABSPATH . "wp-admin" . '/includes/image.php');
               require_once(ABSPATH . "wp-admin" . '/includes/file.php');
               require_once(ABSPATH . "wp-admin" . '/includes/media.php');
   
               $attach_id = media_handle_upload( $file_handler, $post_id );
   
               //get url
               $attachment_url = wp_get_attachment_url($attach_id);
               add_post_meta($post_id, '_file_paths', $attachment_url);
   
               $attachment_data = array(
                   'ID' => $attach_id
               );
   
               wp_update_post($attachment_data);
   
               if ($setthumb) update_post_meta($post_id, '_thumbnail_id', $attach_id);
               return $attach_id;
   
           }
   
               foreach ($_FILES as $file => $array) {
                   $newupload = insert_attachment($file, $pid);
                   //getting the url for the new upload
                   $attachment_url = wp_get_attachment_url($newupload);
               }
   
           }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] auto responder not working](https://wordpress.org/support/topic/auto-responder-not-working/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/auto-responder-not-working/#post-4102861)
 * Anyone have any ideas as to why the mail sends but the auto response to sender
   and also the other auto responder using mail(2) does not work?
 * I really need to fix this soon or find an alternate solution.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Audio Player] Display Audio Player in Category (Full Post Display Enabled)](https://wordpress.org/support/topic/display-audio-player-in-category-full-post-display-enabled/)
 *  [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/display-audio-player-in-category-full-post-display-enabled/#post-3700758)
 * Can you tell me where that was/what you did to fix this. I am having the same
   issue.
    Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Audio Player] flash player support for ipad and iphone](https://wordpress.org/support/topic/flash-player-support-for-ipad-and-iphone/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/flash-player-support-for-ipad-and-iphone/#post-3938843)
 * Sorry, I meant html5?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Portfolio Slideshow] Can't reorder slideshow](https://wordpress.org/support/topic/cant-reorder-slideshow/)
 *  [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/cant-reorder-slideshow/#post-3369615)
 * Having the same issue since I upgraded to 3.5. Does anyone know how to reorder
   the images?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [home page duplicate active state in navigation](https://wordpress.org/support/topic/home-page-duplicate-active-state-in-navigation/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/home-page-duplicate-active-state-in-navigation/#post-3290005)
 * aha, a js conflict.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Trying to get custom sidebar to work](https://wordpress.org/support/topic/trying-to-get-custom-sidebar-to-work/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/trying-to-get-custom-sidebar-to-work/#post-3248545)
 * no link, working locally. I’ve added it to page template. Working on a twentyten
   child.
 * And yes I can get some of the standard widgets in like blogroll etc. I want to
   put in a siblings list. I have tested that function is working also, so the disconnect
   is in calling the specific sidebar. Do you see anything wrong there.
 * I appreciate your help.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Trying to get custom sidebar to work](https://wordpress.org/support/topic/trying-to-get-custom-sidebar-to-work/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/trying-to-get-custom-sidebar-to-work/#post-3248541)
 * Siblings is just referring to a function that is listing children in my sidebar
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Trying to get custom sidebar to work](https://wordpress.org/support/topic/trying-to-get-custom-sidebar-to-work/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/trying-to-get-custom-sidebar-to-work/#post-3248540)
 * Hope this is better:
    functions.php:
 *     ```
       function siblings_widgets_init() {
   
       register_sidebar( array(
       'name' => 'Children-List',
       'id' => 'sidebar-children',
       'before_widget' => '<div id="%1$s" class="widget %2$s">',
       'after_widget' => '</div>',
       'before_title' => '<h2 class="someclass ">',
       'after_title' => '</h2>',
       ) );
       }
       add_action( 'widgets_init', 'siblings_widgets_init' );
       ```
   
 * sidebar.php:
 *     ```
       <?php if ( !dynamic_sidebar('sidebar-children') ) : ?>'
       <?php siblings();?>
       <?php endif; ?>
   
       <?php endif; // end primary widget area ?>
       </div>
       ```
   
 * and the call in the template:
 *     ```
       <?php
       	if ( !dynamic_sidebar('sidebar-children') ) :
       	else :
       	?>
       	<?php endif; ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Trying to get custom sidebar to work](https://wordpress.org/support/topic/trying-to-get-custom-sidebar-to-work/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/trying-to-get-custom-sidebar-to-work/#post-3248537)
 * I have updated my code and it’s still not working. So frustrating because I don’t
   see the issue. Here is my updated code. Any ideas?
 * functions.php:
 *     ```
       function siblings_widgets_init() {
   
       register_sidebar( array(
       'name' => 'Children-List',
       'id' => 'sidebar-children',
       'before_widget' => '<div id="%1$s" class="widget %2$s">',
       'after_widget' => '</div>',
       'before_title' => '<h2 class="someclass ">',
       'after_title' => '</h2>',
       ) );
       }
       add_action( 'widgets_init', 'siblings_widgets_init' );<code></code>
   
       <?php if ( !dynamic_sidebar('sidebar-children') ) : ?>'
   
       sidebar.php
       ```
   
 * <?php siblings();?>
    <?php endif; ?>
 * <?php endif; // end primary widget area ?>
    </div><!– #primary .widget-area –
   >
 *     ```
       and the call in the template:
   
       '<?php
       	if ( !dynamic_sidebar('sidebar-children') ) :
       	else :
       	?>
       	<?php endif; ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error establishing a database connection](https://wordpress.org/support/topic/error-establishing-a-database-connection-427/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-427/#post-3244983)
 * It was indeed config ID and password. Now I am only seeing the first page. What
   can I do to fix that?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error establishing a database connection](https://wordpress.org/support/topic/error-establishing-a-database-connection-427/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-427/#post-3244944)
 * What do you mean? What should I check?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [video and post together as custom post type?](https://wordpress.org/support/topic/video-and-post-together-as-custom-post-type/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/video-and-post-together-as-custom-post-type/#post-3240998)
 * I had tried the custom fields before and it didn’t working using “video” for 
   key and the vimeo id only for the value. That seems logical. BUT I had forgotten
   to create the archive and single pages so maybe that is the issue.
 * Thanks, I’ll let you know how it goes.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [exclude page and children uisng $post->post_parent in conditional](https://wordpress.org/support/topic/exclude-page-and-children-uisng-post-post_parent-in-conditional/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/exclude-page-and-children-uisng-post-post_parent-in-conditional/#post-3235860)
 * I found the answer to my problem was that I had the following which I removed.
   `
   $parent_id = $post->post_parent;`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [News-Ticker plugin cycle.js not loading](https://wordpress.org/support/topic/news-ticker-plugin-cyclejs-not-loading/)
 *  Thread Starter [lee718](https://wordpress.org/support/users/lee718/)
 * (@lee718)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/news-ticker-plugin-cyclejs-not-loading/#post-3213890)
 * I just realized my mistake. Should be…. ( ‘cycle’, plugins_url(‘news-ticker’)
   etc.

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

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