Gleb Kemarsky
Forum Replies Created
-
Forum: Plugins
In reply to: [Dynamic Featured Image] Want to get all of the images associated with a postI see two issues in your code:
1)
get_the_ID
is a function, so you need to add brackets after it.$featured_images = $dynamic_featured_image->get_featured_images( get_the_ID() );
2) You are viewing an array of featured images, taking the maximum value of the index value from the
product-total
field. It is likely that for some indexes there will not be images in the array.If this does not help, then write the text of the error message. Most likely, there will be a key to solving the problem inside it.
- This reply was modified 5 years, 5 months ago by Gleb Kemarsky.
- This reply was modified 5 years, 5 months ago by Gleb Kemarsky.
- This reply was modified 5 years, 5 months ago by Gleb Kemarsky.
Forum: Plugins
In reply to: [WP Translitera] После обновления вордпрес до 5.0 перестало работатьТа же проблема. После перехода на 5ый вордпресс ссылки новых страниц перестали транслитероваться, остаются русскими буквами.
Forum: Plugins
In reply to: [WooCommerce Cart Tab] Cart settings have disappeared@x1-bot Thank you for an explanation about the Storefront theme! I was almost in despair…
Forum: Reviews
In reply to: [Custom Post Template] How do you use this plugin with a child theme?Try to copy template php-files into the subfolder of the child theme.
Forum: Plugins
In reply to: [Custom Post Template By Templatic] Child ThemesI solved the problem by copying the template php-files into the subfolder of the child theme.
Forum: Plugins
In reply to: [Wp-Pro-Quiz] Correction option is not savedI’ve got the same issue. Please fix this bug.
@akaydavid Thank you for the trick!
Forum: Reviews
In reply to: [Import Products from any XML, CSV or Excel to WooCommerce] Can’t activateCan’t activate too ??
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Sidebar not showing in brand viewMisha, you can send me the fuctions.php from the Candy Shop child theme. I’ll try to help.
[email protected]Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Sidebar not showing in brand viewIt seems that I came up with a solution.
The Divi theme adds a sidebar on the page that match the conditions in the function B. But this function does not account the taxonomy of brands. Therefore, you need to add one more condition.
1) Open file
themes/Divi/functions.php
2) Findfunction et_divi_output_content_wrapper_end()
3) Find condition( is_shop() || is_product_category() || is_product_tag() )
4) Add|| is_tax( 'pwb-brand' )
before the closing bracket.So you get
function custom_divi_output_content_wrapper_end() { echo '</div> <!-- #left-area -->'; if ( ( is_product() && 'et_full_width_page' !== get_post_meta( get_the_ID(), '_et_pb_page_layout', true ) ) || ( ( is_shop() || is_product_category() || is_product_tag() || is_tax( 'pwb-brand' ) ) && 'et_full_width_page' !== et_get_option( 'divi_shop_page_sidebar', 'et_right_sidebar' ) ) ) { woocommerce_get_sidebar(); } echo ' </div> <!-- #content-area --> </div> <!-- .container --> </div> <!-- #main-content -->'; }
Please tell me if it helped you.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Sidebar not appearingIt seems that I came up with a solution.
The Divi theme adds a sidebar on the page that match the conditions in the function B. But this function does not account the taxonomy of brands. Therefore, you need to add one more condition.
1) Open file
themes/Divi/functions.php
2) Findfunction et_divi_output_content_wrapper_end()
3) Find condition( is_shop() || is_product_category() || is_product_tag() )
4) Add|| is_tax( 'pwb-brand' )
before the closing bracket.So you get
function custom_divi_output_content_wrapper_end() { echo '</div> <!-- #left-area -->'; if ( ( is_product() && 'et_full_width_page' !== get_post_meta( get_the_ID(), '_et_pb_page_layout', true ) ) || ( ( is_shop() || is_product_category() || is_product_tag() || is_tax( 'pwb-brand' ) ) && 'et_full_width_page' !== et_get_option( 'divi_shop_page_sidebar', 'et_right_sidebar' ) ) ) { woocommerce_get_sidebar(); } echo ' </div> <!-- #content-area --> </div> <!-- .container --> </div> <!-- #main-content -->'; }
Please tell me if it helped you.
- This reply was modified 8 years, 1 month ago by Gleb Kemarsky.
- This reply was modified 8 years, 1 month ago by Gleb Kemarsky.
Forum: Plugins
In reply to: [Perfect Brands for WooCommerce] Sidebar not appearingI have the same problem. I am using WordPress 4.7.2 and Divi too.
When I activate the Storefront theme, the sidebar displays normally throughout the site. But the sidebar becomes different. So I suppose that the Divi theme defines its own sidebar.
- This reply was modified 8 years, 1 month ago by Gleb Kemarsky.
- This reply was modified 8 years, 1 month ago by Gleb Kemarsky.
Thank you, Gerroald!
Maybe $php_gid should be checked for existence?
if ( is_callable( 'posix_getegid' ) && ( false === in_array( 'posix_getegid', $disabled_functions_array ) ) ) { $php_gid = @posix_getegid(); } ?> <li><?php _e( 'PHP Process User (UID:GID)', 'it-l10n-better-wp-security' ); ?>: <strong><?php echo $php_user . ' (' . $php_uid . ':' . $php_gid . ')'; ?></strong></li>
Hey Gerroald,
WordPress 4.0–ru_RU
iThemes Security 4.4.18I did as you suggested. This error occurs when I activate “xCRUD loader”:
https://codecanyon.net/item/xcrud-data-management-system-php-crud/3215400
I quote the description of the plugin:You can use <xcrud></xcrud> or [xcrud][/xcrud] tags in your posts. Plugin automaically loads xcrud files. Plugin automatically sets scripts_url for xcrud. Plugin deactivates WP autoformating for content.
Thanks,
Gleb