Title: Sorcol's Replies | WordPress.org

---

# Sorcol

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Firelight Lightbox] Fancybox and Galleries in 3.5](https://wordpress.org/support/topic/fancybox-and-galleries-in-35/)
 *  [Sorcol](https://wordpress.org/support/users/sorcol/)
 * (@sorcol)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/fancybox-and-galleries-in-35/#post-3452893)
 * Thanks [@esmi](https://wordpress.org/support/users/esmi/), this worked for me
   too!
    I changed the code for a native WP gallery in my post from [gallery ids
   ="134,135,136"] to [gallery ids="134,135,136 link="file"] and now Fancybox is
   working perfectly.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Login not working after move to remote server](https://wordpress.org/support/topic/login-not-working-after-move-to-remote-server/)
 *  Thread Starter [Sorcol](https://wordpress.org/support/users/sorcol/)
 * (@sorcol)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/login-not-working-after-move-to-remote-server/#post-2771934)
 * I suspect my page redirect problem was caused by inappropriate use of wp_redirect.
   I was using the code posted [here](http://wordpress.org/support/topic/if-page-has-subpages-redirect-to-first-child-else-stay-on-current-page)
   to conditionally redirect to a page’s first child. I used the code within a loop,
   which worked fine locally but not on the live site.
 * In the end I created a new page template for pages I want to redirect. The template
   consists of the following code:
 *     ```
       <?php /* Template Name: Redirect Page */ ?>
       <?php if (have_posts()) {
         while (have_posts()) {
           the_post();
           $pagekids = get_pages("child_of=".$post->ID."&sort_column=menu_order");
           $firstchild = $pagekids[0];
           wp_redirect(get_permalink($firstchild->ID));
         }
       } ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Login not working after move to remote server](https://wordpress.org/support/topic/login-not-working-after-move-to-remote-server/)
 *  Thread Starter [Sorcol](https://wordpress.org/support/users/sorcol/)
 * (@sorcol)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/login-not-working-after-move-to-remote-server/#post-2771884)
 * The Login/out problem and white screens are fixed!
    There were some empty lines
   after the closing php tag in the custom theme’s functions.php file – I deleted
   these and can now log in/out. No more white screens either. Redirect problem 
   still to be resolved…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Login not working after move to remote server](https://wordpress.org/support/topic/login-not-working-after-move-to-remote-server/)
 *  Thread Starter [Sorcol](https://wordpress.org/support/users/sorcol/)
 * (@sorcol)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/login-not-working-after-move-to-remote-server/#post-2771793)
 * [@songdogtech](https://wordpress.org/support/users/songdogtech/) Thank-you for
   the very prompt response and the references. I’ll go through them in detail and
   report back – hopefully I have just missed a step in the transfer.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Quick Post Widget] Form validation](https://wordpress.org/support/topic/form-validation/)
 *  [Sorcol](https://wordpress.org/support/users/sorcol/)
 * (@sorcol)
 * [14 years ago](https://wordpress.org/support/topic/form-validation/#post-2109204)
 * [@krama757](https://wordpress.org/support/users/krama757/) Thanks for that…very
   useful tip for hiding the textbox.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Showing current page/category posts in sidebar](https://wordpress.org/support/topic/showing-current-pagecategory-posts-in-sidebar/)
 *  Thread Starter [Sorcol](https://wordpress.org/support/users/sorcol/)
 * (@sorcol)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/showing-current-pagecategory-posts-in-sidebar/#post-2628684)
 * Sorry! I’ve uploaded the code to Pastebin:
    [http://pastebin.com/zCHwAitw](http://pastebin.com/zCHwAitw)(
   page-posts.php extract) [http://pastebin.com/FHn8HATs](http://pastebin.com/FHn8HATs)(
   sidebar.php extract)

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