$args numberposts variable

$args = array( ‘numberposts’ => ’10’, ‘post_type’ => ‘newposttype’); $recent_posts = wp_get_recent_posts( $args ); I know it’s not a simple thing to ask but how could I set the numberposts depending on the screen width? That is: for a desktop visitor I show 10 posts and for a mobile visitor I show 3 posts. 2 … Read more

Sharing link on WhatsApp from mobile website (not application) for Android

I have developed a website which is mainly used in mobile phones. I want to allow users to share information directly from the web page into WhatsApp. Using UserAgent detection I can distinguish between Android and iOS. I was able to discover that in order to implement the above in iOS I can use the … Read more

Cause: buildOutput.apkData must not be null

My android application using Kotlin is throwing this exception when I try to Run ‘app’ in the emulator o in my cellphone. When I build my project it runs well, with no errors. I am using: SDK 28 (Android 9.0 (Pie)) Gradle 5.1.1 Gradle Plugin 3.5.0-alpha03 Kotlin 1.3.10 Java 1.8.0_151 OSX 10.13.2 org.gradle.internal.exceptions.LocationAwareException: buildOutput.apkData must … Read more

@Media min-width & max-width

I have this @media setup: HTML: <head> <meta name=”viewport” content=”width=device-width, user-scalable=no” /> </head> CSS: @media screen and (min-width: 769px) { /* STYLES HERE */ } @media screen and (min-device-width: 481px) and (max-device-width: 768px) { /* STYLES HERE */ } @media only screen and (max-device-width: 480px) { /* STYLES HERE */ } With this setup it … Read more

WordPress on WP7

Is there an app for the Windows Phone (7) that allows submission to WordPress? Having used the WordPress app on the Blackberry, I’m looking for one that is similar to that, but for the WP7. I’ve had a look and not found anything, though there are rumours (potentially unsubstantiated) that one is being created.. 4 … Read more