Am I allowed to resell WordPress Premium Plugins under GPL? [closed]

Read http://www.gnu.org/licenses/gpl-3.0.html and http://www.gnu.org/philosophy/selling.html Except for one special situation, the GNU General Public License (GNU GPL) has no requirements about how much you can charge for distributing a copy of free software. You can charge nothing, a penny, a dollar, or a billion dollars…. The one exception is in the case where binaries are distributed … Read more

Orientation of featured image in post?

Basic check of aspect ratio. Display as landscape, square or portrait if ( !has_post_thumbnail()) { return ‘Error’; } else { $image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ”); $image_w = $image[1]; $image_h = $image[2]; if ($image_w > $image_h) { echo ‘landscape’; } elseif ($image_w == $image_h) { echo ‘square’; } else { echo ‘portrait’; } }

Shortcode leads to white screen [closed]

As I already stated in comments, your code is a complete mess and very hard to read and to debug. This is most probably why you are having a hard time to sort your issues. Apart from a few syntax errors, you had a couple of bugs in your code like undefined variables (like your … Read more

How much worse is querying custom fields compared to custom taxonomies, quantitatively

The trouble with meta queries is they require an additional join per filter. Say you have a property site, and you’re searching by location, rooms and price. That’s three joins. If you were using taxonomies, just two (terms and term_taxonomy) – no matter how many filters. The other reason taxonomies tend to beat meta queries … Read more

Hide certain div/ class only at front page

If the WordPress theme is doing it’s job correctly, then it’s using the body_class() function to output the classes on the <body> tag. If that’s the case, then on the home page, it will add the .home class, and we can target that class as follows: .home #page-element { display: none; } If the theme … Read more