Category : wordpress

Warning: is_readable(): open_basedir restriction in effect. File(C:inetpubvhostsaemschikhli.orghttpdocs/wp-content/plugins/C:inetpubvhostsaemschikhli.orghttpdocswp-contentpluginsdisable-comments-rb/languages/disable-comments-rb-en_US.mo) is not within the allowed path(s): (C:/Inetpub/vhosts/aemschikhli.org;C:WindowsTemp) in C:inetpubvhostsaemschikhli.orghttpdocswp-includesl10n.php on line 741 How can resolve? Sourc..

Read more

Is there a way to write a custom code to create different versions of the product category URL, based on the user visited country, handling what is the country code is an easy part however I want to have a dynamic URL based on detected country code. for example https://website.com/uk/category1 https://website.com/us/category1 https://website.com/fr/category1 this will be ..

Read more

After updating my loop to get everything I want with this code: <?php $json = ""; if ( have_posts() ) { while ( have_posts() ) { the_post(); global $wpdb; $query = "SELECT * FROM ". $wpdb->prefix ."options WHERE option_id = 1"; $results = $wpdb->get_results($query); if ($results){ $json .= json_encode($results); } } } echo $json; ?> ..

Read more

I need to sort the location items in alphabetical order in this search form: http://v2trgmanagementcompanycom.temp312.kinsta.cloud/portfolio/ The locations should be listed alphabetically. Can someone help with updating the below code? This is the current code: <?php $array = OSF_Custom_Post_Type_Portfolio::getInstance()->get_all_meta_field_value(); ?> <div class="search-project"> <form action="<?php echo get_post_type_archive_link(‘osf_portfolio’); ?>" method="get"> <div class="d-flex justify-content-center project-group"> <div class="project-inner"> <select name="osf_portfolio_type"> ..

Read more

I am using code that displays the Related Products tab on a single product page. // Display a multiselect field in "Linked Products" section add_action( ‘woocommerce_product_options_related’, ‘display_handles_product_field’ ); function display_handles_product_field() { global $product_object, $post; ?> <h2><strong>Related products in tabs</strong></h2> <p class="form-field"> <label for="handles_product"><?php _e( ‘Related products’, ‘woocommerce’ ); ?></label> <select class="wc-product-search" multiple="multiple" id="handles_product_ids" name="_handles_product_ids[]" data-placeholder="<?php ..

Read more