andyganesh
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Redirect to ‘/es/el_post’ when go to ‘/post’up
Forum: Localhost Installs
In reply to: Website is displayed incorrectly after moving to localhost@sterndata LocalWP helped me! And you as well)) thank you
Forum: Localhost Installs
In reply to: Website is displayed incorrectly after moving to localhost@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
In reply to: Website is displayed incorrectly after moving to localhost@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
In reply to: Website is displayed incorrectly after moving to localhost@sterndata it’s absolutely the same on this page ??
Forum: Localhost Installs
In reply to: Website is displayed incorrectly after moving to localhost@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
In reply to: Authorized bot-visitor for my websiteadd_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 2 years, 11 months ago by andyganesh.
- This reply was modified 2 years, 11 months ago by andyganesh.
Forum: Fixing WordPress
In reply to: Authorized bot-visitor for my website@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
In reply to: Redirect to the previous page@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
In reply to: Caching & Preload for Logged-in 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
In reply to: Caching & Preload for Logged-in 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
@suhoydj Поздравляю с активацией! А ничего и не должно было. Вы читали описание?
@vadikcoma на гитхабе вроде бы более или менее старая версия лежит: https://github.com/wp-plugins/woocommerce-and-1centerprise-data-exchange
@vadikcoma Вам поможет это
Смог отключить перезапись краткого описания! (а этого мне, в принципе, уже достаточно). Итак, вот что делаем. Надо закомментить следующие строки:
//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');
Итог: Краткое описание не затирается.