Backend of the WordPress.com [closed]

WordPress certainly can scale. WordPress.com alone served 14.6 billion pages last month. The key is that they had hundreds of servers so that they can widely distribute the load. Since they have a more tightly controlled platform, which helps them ensure that they don’t have badly written code slowing things down. But in the end, … Read more

Problem with isset and $_POST

After the second form </form> make a small change close the first two if’s, and remove the two } from end of function </form><?php } } if(isset($_POST[‘zapisz’])) { $woda_ciepla_kuchnia=1; $data_odczytu = ‘0013-00-00 22:00:00’; $data = array( ‘id’ => ”, ‘adres’ => ‘dasd’, ‘data_odczytu’ => $data_odczytu, ‘woda_ciepla_kuchnia’ => 1, ); $wpdb->insert(wp_ow_odczyty, (array)$data); } }

Change url tag name

This has nothing to do with htaccess and/or rewrites—at least not directly by you. Just go to Settings -> Permalinks in your WordPress Admin. Then, in the Optional section, set Tag base to article. Hit Save Changes, and that’s it.

What does $_GET[‘iphone’] do?

$_GET is for accessing variables in URL parameters, it’s not related to any detection by itself, something must be adding it to URL. In context of WordPress it might be related to $is_iphone global. If you look at wp-includes/vars.php there is number of global variables like this, which WP fills up with data via user … Read more

Woocommerce display one random product via php

You could treat products like any other post type and query using get_posts(). Limit the number of posts retrieved to 1 and change the orderby parameter to random: $args = array( ‘posts_per_page’ => 1, ‘orderby’ => ‘rand’, ‘post_type’ => ‘product’ ); $random_products = get_posts( $args ); foreach ( $random_products as $post ) : setup_postdata( $post … Read more