Tiki Web Group http://www.tikiwebgroup.com Mon, 02 Apr 2018 03:56:55 +0000 en-US hourly 1 73820239 A word of caution and frustration when using media_sideload_image http://www.tikiwebgroup.com/blog/2017/07/18/a-word-of-caution-and-frustration-when-using-media_sideload_image/ http://www.tikiwebgroup.com/blog/2017/07/18/a-word-of-caution-and-frustration-when-using-media_sideload_image/#respond Wed, 19 Jul 2017 03:33:30 +0000 http://www.tikiwebgroup.com/?p=2564 media_sideload_image details.

Currently the support docs for this function read:

Parameters Parameters


(string) (Required) The URL of the image to download.


(int) (Required) The post ID the media is to be associated with.


(string) (Optional) Description of the image.

Default value: null


(string) (Optional) Accepts ‘html’ (image tag html) or ‘src’ (URL), or ‘id’ (attachment ID).

Default value: ‘html’

Unfortunately when they say “Description” they really mean “title” of the attachment, and not the field named “description” that’s on every attachment page. There is no way that I can tell to add a description to your attachments when using media_sideload_image.

http://www.tikiwebgroup.com/blog/2017/07/18/a-word-of-caution-and-frustration-when-using-media_sideload_image/feed/ 0 2564
Where does WordPress store image resolution in the MySQL database? http://www.tikiwebgroup.com/blog/2017/01/08/where-does-wordpress-store-image-resolution-in-the-mysql-database/ http://www.tikiwebgroup.com/blog/2017/01/08/where-does-wordpress-store-image-resolution-in-the-mysql-database/#respond Sun, 08 Jan 2017 18:39:44 +0000 http://www.tikiwebgroup.com/?p=2560 A full year later and I’ve discovered that the image resolution IS stored in a very poor manner, as custom fields on the attachment. I’m still not clear on exactly how that works and I think I can write a plugin that will convert that crummy method to a custom taxonomy that would allow searching and easy display on sites.

Previously in 2017:

TL;DR: WordPress does not store image resolution in the database.  Nor does it store any information on the difference sizes of the image that it automatically creates.  Looks like the only interaction WP has with images and their resized versions is on initial load, after that it has no record of what’s available for use in posts.

Spent about an hour this morning searching for an answer for this, but there’s no indication that the image size is stored anywhere in the database.  Any time the image is referenced in full from WP, getimagesize is used to get the resolution. The rest of the the image attachment’s meta data is stored haphazardly in either wp_postmeta or wp_posts.  Oddly enough when using getimagesize outside of wp_get_attachment_image_src I seem to get different results (0x0 vs 9393×12500), which may have something to do with image size limits or memory limits in WP.

Here’s where you can find the data that’s stored for each image attachment:

post_content = description
post_title = image title
post_excerpt = image caption


If you’ve created a custom taxonomy for your attachments, they’ll be found in the expected taxonomy tables (wp_termmeta, wp_terms, wp_term_relationships, wp_term_taxonomy)




http://www.tikiwebgroup.com/blog/2017/01/08/where-does-wordpress-store-image-resolution-in-the-mysql-database/feed/ 0 2560
Advertisement Companies that are not affiliated with the Tiki Web Group http://www.tikiwebgroup.com/blog/2016/02/10/advertisement-companies-that-are-not-affiliated-with-the-tiki-web-group/ http://www.tikiwebgroup.com/blog/2016/02/10/advertisement-companies-that-are-not-affiliated-with-the-tiki-web-group/#respond Wed, 10 Feb 2016 17:17:22 +0000 http://www.tikiwebgroup.com/?p=2550 For various reasons, these companies are no longer affiliated with the TWG :

Google Surveys
H12 Media
Open AdStream 24/7
Zedo / Gunggo

http://www.tikiwebgroup.com/blog/2016/02/10/advertisement-companies-that-are-not-affiliated-with-the-tiki-web-group/feed/ 0 2550
Fix Firefox’s broken search boxes http://www.tikiwebgroup.com/blog/2016/01/11/fix-firefoxs-broken-search-boxes/ http://www.tikiwebgroup.com/blog/2016/01/11/fix-firefoxs-broken-search-boxes/#comments Mon, 11 Jan 2016 18:01:29 +0000 http://www.tikiwebgroup.com/?p=2547 FFS, they disabled this too, wtf is going on over there Mozilla?

I’m not a fan of how Firefox has changed the search boxes, I always set the search box first, then hit enter, but with this new way, if you select it first, it’ll search on whatever’s in the search box, then will reset the search selection. dumb and counter intuitive, and wastes my time by being unreliable on which engine it’s going to search with.

Here’s how to disable the new search bar:

1. Go into the config by typing the following in the address bar and then hitting return (click “I’ll be careful, I promise!” if a dialogue comes up mentioning anything about dragons, if not just continue):


2. Paste the following in the wide “Search”-field that appears:


3. The value should be “true” by default, double-click on it so it says “false”

4. Restart firefox, the search bar should now have gone back to normal.


http://www.tikiwebgroup.com/blog/2016/01/11/fix-firefoxs-broken-search-boxes/feed/ 1 2547
How to remove Emoji support from WordPress http://www.tikiwebgroup.com/blog/2015/04/28/how-to-remove-emoji-support-from-wordpress/ http://www.tikiwebgroup.com/blog/2015/04/28/how-to-remove-emoji-support-from-wordpress/#comments Tue, 28 Apr 2015 15:13:33 +0000 http://www.tikiwebgroup.com/?p=2536 The latest version of WordPress has some pretty stupid additions to it, namely the mandatory support of “emoji”, which are one of the greatest diseases on the internet. Why they thought adding more overhead to every WordPress installation just to add this little wanted feature was a good idea is beyond me, but if you’d like to remove it from your sites, add this bit of code either to your theme’s function.php file or your own custom fuction plugin that you’ve previously created:

remove_action( ‘wp_head’, ‘print_emoji_detection_script’, 7 );
remove_action( ‘wp_print_styles’, ‘print_emoji_styles’ );

thanks to antsanchez.com for the heads up.

http://www.tikiwebgroup.com/blog/2015/04/28/how-to-remove-emoji-support-from-wordpress/feed/ 2 2536
How to remove the Link Manager for your Blogroll from your WordPress dashboard http://www.tikiwebgroup.com/blog/2014/11/05/how-to-remove-the-link-manager-for-your-blogroll-from-your-wordpress-dashboard/ http://www.tikiwebgroup.com/blog/2014/11/05/how-to-remove-the-link-manager-for-your-blogroll-from-your-wordpress-dashboard/#respond Wed, 05 Nov 2014 18:13:42 +0000 http://www.tikiwebgroup.com/?p=2528
  • go to example.com/wp-admin/options.php
  • find “link_manager_enabled”
  • Change the “1” to “0”
  • Hit enter
  • Please note this just hides the “Links” menu item on your dashboard, to truly remove the links, navigate to your database and remove the “wp_links” table.

    http://www.tikiwebgroup.com/blog/2014/11/05/how-to-remove-the-link-manager-for-your-blogroll-from-your-wordpress-dashboard/feed/ 0 2528
    echo the referer with PHP http://www.tikiwebgroup.com/blog/2014/07/18/echo-the-referer-with-php/ http://www.tikiwebgroup.com/blog/2014/07/18/echo-the-referer-with-php/#respond Fri, 18 Jul 2014 13:57:16 +0000 http://www.tikiwebgroup.com/?p=2519 ]]> <?php
    echo $_SERVER[‘HTTP_REFERER’];

    http://www.tikiwebgroup.com/blog/2014/07/18/echo-the-referer-with-php/feed/ 0 2519
    show how many attachments a wordpress post has http://www.tikiwebgroup.com/blog/2011/01/29/show-how-many-attachments-a-wordpress-post-has/ http://www.tikiwebgroup.com/blog/2011/01/29/show-how-many-attachments-a-wordpress-post-has/#respond Sat, 29 Jan 2011 16:41:11 +0000 http://www.tikiwebgroup.com/?p=2457

    Files: <?php echo $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->posts WHERE post_parent = ‘$post->ID’ AND post_type = ‘attachment'” ); ?> |

    http://www.tikiwebgroup.com/blog/2011/01/29/show-how-many-attachments-a-wordpress-post-has/feed/ 0 2457
    DC Cover Theme http://www.tikiwebgroup.com/blog/2010/10/15/dc-cover-theme/ http://www.tikiwebgroup.com/blog/2010/10/15/dc-cover-theme/#respond Fri, 15 Oct 2010 17:35:06 +0000 http://www.tikiwebgroup.com/?p=2452 “This January, we’re putting the focus squarely on the characters and iconic heroes of the DCU,” said DCU Co-Publisher Dan DiDio. “Not only will we tell new stories some of the more-deserving with special one-shots, but we’ll be giving every title in the line a unique treatment that puts the spotlight on the heroes and villains that populate the DC Universe.”

    You can see the placeholder covers below, when the actual covers come out I’ll put them here.

    via DC Blog

    http://www.tikiwebgroup.com/blog/2010/10/15/dc-cover-theme/feed/ 0 2452
    ComicCovers.com Blog Returns http://www.tikiwebgroup.com/blog/2010/07/11/comiccovers-com-blog-returns/ http://www.tikiwebgroup.com/blog/2010/07/11/comiccovers-com-blog-returns/#respond Mon, 12 Jul 2010 02:55:03 +0000 http://www.tikiwebgroup.com/2010/07/comiccovers-com-blog-returns/ I’ve re-added a blog to www.comiccovers.com Not much to say other then after a much needed rest from the comic book cover scan world I’m diving back in.  Feel free to subscribe to either the Latest Blog RSS feed or the Latest Scan RSS feed.

    http://www.tikiwebgroup.com/blog/2010/07/11/comiccovers-com-blog-returns/feed/ 0 2433