Category: Coding

itemprop="url"

Problem WordPress’ cron doesn’t work when a site has basic authentication.  You basically would get a 401 error.   Solution Thanks to Nick Ohrn (in 2014) this problem is solved with a simple mu-plugin.  You just need to set the

Tagged with:

itemprop="url"

Problem After creating a user with a certain role I need to do a custom sql query where it only selected users of a specific role.  This failed to find anything: select u.ID, u.display_name, u.user_login from $wpdb->users as u inner

Tagged with: , ,

itemprop="url"

Problem: When zooming in or out on Chrome, the widths of elements increases very slightly and causes some elements to shift to the next line. Solution: The actual problem is Chrome adjusts the widths of elements by tenths.  So something

Tagged with: ,

itemprop="url"

Problem:  When setting a property type to ’email’ like so: $schema = array( ‘$schema’ => ‘http://json-schema.org/schema#’, ‘title’ => ‘user’, ‘type’ => ‘object’, ‘properties’ => array( ’email’ => array( ‘description’ => __( ‘The optional email address for the something.’ ), ‘type’

Tagged with: ,

itemprop="url"

The two functions, map_meta_cap and user_has_cap allow you to change capabilities on the fly without having to add to roles in the database.  These also allow you to have a ton of flexibility. Some examples from the talk:  If you can

itemprop="url"

Fatal error: Cannot redeclare the_post_thumbnail_caption() (previously declared in …. This error occurs because the_post_thumbnail_caption is a new function in WordPress 4.6.  However, people have been using this function for over 5 years now.  How?  Stackoverflow and other WordPress forums are flooded with

Tagged with: ,

itemprop="url"

I haven’t had time to look into the exact reason or the exact version this changed, but as of at least WordPress version 4.5.2 the nav menu uses the_title multiple times for one item. For example if your theme used something like

Tagged with:

itemprop="url"

Firefox displayed this warning in the Firebug console.  This warning indicates an absolutely positioned does not consider a table element relatively positioned so it may not appear as expected.  A better explanation is here: https://www.sencha.com/forum/showthread.php?289315-Relative-positioning-of-table-rows-and-row-groups-is-now-supported.-This-site-may-nee and solution to fix is here:

Tagged with: , ,

itemprop="url"

This is weird.  Font Awesome has a ton of fonts, but no draggable icon.  Issue #816 is on github shows much love for this added feature, open since 2013. A workaround for this suggested by abanctelchevrel: /* \f142 is ellipsis-v */

Tagged with:

itemprop="url"

After years of not having a client get hacked, I got 2 in a few weeks.  One client (client A) has a WordPress site which I developed the theme on.  Another client (client B) was brand new, no WordPress.  Client

Tagged with: , , ,
Top