Title: andyganesh's Replies | WordPress.org

---

# andyganesh

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

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

 Search replies:

## Forum Replies Created

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

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Redirect to ‘/es/el_post’ when go to ‘/post’](https://wordpress.org/support/topic/redirect-to-es-el_post-when-go-to-post/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/redirect-to-es-el_post-when-go-to-post/#post-16131561)
 * up
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [Website is displayed incorrectly after moving to localhost](https://wordpress.org/support/topic/website-is-displayed-incorrectly-after-moving-to-localhost/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/website-is-displayed-incorrectly-after-moving-to-localhost/#post-15873635)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) LocalWP helped me!
   And you as well)) thank you
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [Website is displayed incorrectly after moving to localhost](https://wordpress.org/support/topic/website-is-displayed-incorrectly-after-moving-to-localhost/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/website-is-displayed-incorrectly-after-moving-to-localhost/#post-15873593)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) ok thank you, I 
   will try.
 * It looks like some theme’s files are damaged. Is there a way to change the theme
   by editing some file or DB table? Sorry for dumb question))
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [Website is displayed incorrectly after moving to localhost](https://wordpress.org/support/topic/website-is-displayed-incorrectly-after-moving-to-localhost/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/website-is-displayed-incorrectly-after-moving-to-localhost/#post-15873541)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) BTW, I also tried
   to make a new installation of WP and to move wp-contents folder there. And all
   the same.
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [Website is displayed incorrectly after moving to localhost](https://wordpress.org/support/topic/website-is-displayed-incorrectly-after-moving-to-localhost/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/website-is-displayed-incorrectly-after-moving-to-localhost/#post-15873536)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) it’s absolutely 
   the same on this page 🙁
 *   Forum: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
   
   In reply to: [Website is displayed incorrectly after moving to localhost](https://wordpress.org/support/topic/website-is-displayed-incorrectly-after-moving-to-localhost/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/website-is-displayed-incorrectly-after-moving-to-localhost/#post-15873382)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) yes it is working.
   Did it, I can see this page with “Hello World”. But I am not sure that my localhost
   php version is the same as original website’s server had.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Authorized bot-visitor for my website](https://wordpress.org/support/topic/authorized-bot-visitor-for-my-website/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [4 years ago](https://wordpress.org/support/topic/authorized-bot-visitor-for-my-website/#post-15602233)
 * [@threadi](https://wordpress.org/support/users/threadi/)
 *     ```
       add_action( 'wp', 'sc_capture_before_login_page_url' );
       function sc_capture_before_login_page_url(){
       	session_start();
           if( !is_user_logged_in() && !is_page('nobodyknowsthisurl') && !is_page('wp-admin') && !is_page('partylogin')  ):
           $_SESSION['referer_url'] = get_the_permalink();
           endif;
       }
       ```
   
 *     ```
       add_action( 'template_redirect', 'redirect_to_specific_page' );
       function redirect_to_specific_page() {
   
       if ( !is_user_logged_in() && !is_page('partylogin')  && !is_page('nobodyknowsthisurl') && !is_page('wp-admin')) {
       wp_redirect('https://party-code.com/partylogin'); 
         exit;
           }
       }
       ```
   
 *     ```
       add_action('wp_logout','unlog');
       function unlog(){
         wp_redirect( site_url() );
         exit();
       }
       ```
   
 *     ```
       if( !function_exists('sc_after_login_redirection') ):
           function sc_after_login_redirection() {
       		session_start();
           $redirect_url = home_url('/');
           if ( isset($_SESSION['referer_url']) ):
               $redirect_url = $_SESSION['referer_url'];
           endif;
           return $redirect_url;
           exit;
          }
          add_filter('login_redirect', 'sc_after_login_redirection',10,3);
       endif; 
       ```
   
    -  This reply was modified 4 years ago by [andyganesh](https://wordpress.org/support/users/andyganesh/).
    -  This reply was modified 4 years ago by [andyganesh](https://wordpress.org/support/users/andyganesh/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Authorized bot-visitor for my website](https://wordpress.org/support/topic/authorized-bot-visitor-for-my-website/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [4 years ago](https://wordpress.org/support/topic/authorized-bot-visitor-for-my-website/#post-15599083)
 * [@threadi](https://wordpress.org/support/users/threadi/) thanks for your answer.
   Blocking is realized this way: I got the custom code snippet in functions.php,
   that redirects all unauthorized users to the fully custom login page (not wp-
   login.php)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Redirect to the previous page](https://wordpress.org/support/topic/redirect-to-the-previous-page-2/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/redirect-to-the-previous-page-2/#post-15003218)
 * [@bcworkz](https://wordpress.org/support/users/bcworkz/) thank you for your respond.
   Have added this call to sc_capture_before_login_page_url(), but it continues 
   to work the same 🙁
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Caching & Preload for Logged-in Users](https://wordpress.org/support/topic/caching-preload-for-logged-in-users/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/caching-preload-for-logged-in-users/#post-14660692)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) yes, I am happy 
   with this plugin too, but my case is too uncommon. Usually authorization is added
   to differentiate the content for different users, but my website uses authorization
   only to access the website.
 * I started the same topics on these plugins’ forums. But, as I said before, it
   is not mandatory to use these plugins, I can use any to resolve the issue. That’s
   why I am here 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Caching & Preload for Logged-in Users](https://wordpress.org/support/topic/caching-preload-for-logged-in-users/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/caching-preload-for-logged-in-users/#post-14660646)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) thank you for joining
   the discussion:) I managed to cache pages for logged-in users, as I described,
   with WP Optimize and Hummingbird. All other plugins (I have tried about dozen
   of them) do not have this functionality (or I just didn’t succeed…). It is ok
   for me to use any plugin, free or premium, the main goal is to solve the issue,
   because I want every user to load any page in a flash.
 * Thank you in advance
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] После активации ничего нету](https://wordpress.org/support/topic/%d0%bf%d0%be%d1%81%d0%bb%d0%b5-%d0%b0%d0%ba%d1%82%d0%b8%d0%b2%d0%b0%d1%86%d0%b8%d0%b8-%d0%bd%d0%b8%d1%87%d0%b5%d0%b3%d0%be-%d0%bd%d0%b5%d1%82%d1%83/)
 *  [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/%d0%bf%d0%be%d1%81%d0%bb%d0%b5-%d0%b0%d0%ba%d1%82%d0%b8%d0%b2%d0%b0%d1%86%d0%b8%d0%b8-%d0%bd%d0%b8%d1%87%d0%b5%d0%b3%d0%be-%d0%bd%d0%b5%d1%82%d1%83/#post-13099168)
 * [@suhoydj](https://wordpress.org/support/users/suhoydj/) Поздравляю с активацией!
   А ничего и не должно было. Вы читали описание?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Откат на более старую версию плагина](https://wordpress.org/support/topic/%d0%be%d1%82%d0%ba%d0%b0%d1%82-%d0%bd%d0%b0-%d0%b1%d0%be%d0%bb%d0%b5%d0%b5-%d1%81%d1%82%d0%b0%d1%80%d1%83%d1%8e-%d0%b2%d0%b5%d1%80%d1%81%d0%b8%d1%8e-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d0%b0/)
 *  [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/%d0%be%d1%82%d0%ba%d0%b0%d1%82-%d0%bd%d0%b0-%d0%b1%d0%be%d0%bb%d0%b5%d0%b5-%d1%81%d1%82%d0%b0%d1%80%d1%83%d1%8e-%d0%b2%d0%b5%d1%80%d1%81%d0%b8%d1%8e-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d0%b0/#post-12969482)
 * [@vadikcoma](https://wordpress.org/support/users/vadikcoma/) на гитхабе вроде
   бы более или менее старая версия лежит: [https://github.com/wp-plugins/woocommerce-and-1centerprise-data-exchange](https://github.com/wp-plugins/woocommerce-and-1centerprise-data-exchange)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Откат на более старую версию плагина](https://wordpress.org/support/topic/%d0%be%d1%82%d0%ba%d0%b0%d1%82-%d0%bd%d0%b0-%d0%b1%d0%be%d0%bb%d0%b5%d0%b5-%d1%81%d1%82%d0%b0%d1%80%d1%83%d1%8e-%d0%b2%d0%b5%d1%80%d1%81%d0%b8%d1%8e-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d0%b0/)
 *  [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/%d0%be%d1%82%d0%ba%d0%b0%d1%82-%d0%bd%d0%b0-%d0%b1%d0%be%d0%bb%d0%b5%d0%b5-%d1%81%d1%82%d0%b0%d1%80%d1%83%d1%8e-%d0%b2%d0%b5%d1%80%d1%81%d0%b8%d1%8e-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd%d0%b0/#post-12960316)
 * [@vadikcoma](https://wordpress.org/support/users/vadikcoma/) Вам поможет [это](https://ru.wordpress.org/plugins/wp-rollback/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Data Exchange for WooCommerce and 1C:Enterprise/1С:Предприятие] Отключить перезапись всех описаний](https://wordpress.org/support/topic/%d0%be%d1%82%d0%ba%d0%bb%d1%8e%d1%87%d0%b8%d1%82%d1%8c-%d0%bf%d0%b5%d1%80%d0%b5%d0%b7%d0%b0%d0%bf%d0%b8%d1%81%d1%8c-%d0%b2%d1%81%d0%b5%d1%85-%d0%be%d0%bf%d0%b8%d1%81%d0%b0%d0%bd%d0%b8%d0%b9/)
 *  Thread Starter [andyganesh](https://wordpress.org/support/users/andyganesh/)
 * (@andyganesh)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/%d0%be%d1%82%d0%ba%d0%bb%d1%8e%d1%87%d0%b8%d1%82%d1%8c-%d0%bf%d0%b5%d1%80%d0%b5%d0%b7%d0%b0%d0%bf%d0%b8%d1%81%d1%8c-%d0%b2%d1%81%d0%b5%d1%85-%d0%be%d0%bf%d0%b8%d1%81%d0%b0%d0%bd%d0%b8%d0%b9/#post-12953613)
 * Смог отключить перезапись краткого описания! (а этого мне, в принципе, уже достаточно).
   Итак, вот что делаем. Надо закомментить следующие строки:
    `//if (!defined('WC1C_PRODUCT_DESCRIPTION_TO_CONTENT'))
   define('WC1C_PRODUCT_DESCRIPTION_TO_CONTENT', false);`
 * и эти:
 *     ```
         /*if (!$post_excerpt) $post_excerpt = '';
           if (WC1C_PRODUCT_DESCRIPTION_TO_CONTENT) {
           $post_content = $post_excerpt;
           $post_excerpt = '';
         } */
       ```
   
 * далее комментим маленький кусочек в следующей строке (не знаю, необходимо ли 
   это, но я на всякий случай не стал ничего трогать, пока работает как мне надо):
   `
   $args = compact('post_type', 'post_title', /*'post_excerpt',*/ 'post_content');`
 * Итог: Краткое описание не затирается.

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

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