• Home
  • About Mitch
  • Speaking
  • Articles
  • Contact
  • Home
  • About Mitch
  • Speaking
  • Articles
  • Contact

Digital Strategist

WordPress Developer

Content Creator

Unapologetic Punk

Mitch Canter

  • X
  • Bluesky
  • GitHub
  • Twitch
  • YouTube
  • LinkedIn
Development

The Case of the Disappearing Widgets

CMDR Mitchcraft

Reading time: 1 minute

I’ve migrated tons of WordPress sites in my tenure as a WordPress developer, but over the years one thing would always bother me: my widgets kept disappearing.  I’d dump the SQL database and import it to the new server only to find that every single widget had vanished.

So, I looked for a solution.

WP-Migrate-DB (despite it’s fancy title) keeps every option and SQL line when you activate it, and saves it to a file just like a regular export.  The differences are very clear:

  • Unlike a traditional export, you can define ahead of time the destination URL and even the destination file structure (/home/snv/ – not  my actual structure, by the way, but a good example).
  • It saves all of the smaller options that are normally left out of an export.

You can download it through your blog or through the repository.

 

Export, phpMyAdmin, SQL, WP Migrate DB
  • Foursquare vs. Gowalla… annnnnd fight!

    Foursquare vs. Gowalla… annnnnd fight!

    Reading time: 5 minutes

    <script type=”text/javascript”>function initMenus() {    $(‘ul#accordion li ul’).hide();    $.each($(‘ul#accordion’), function(){        $(‘#’ + this.id + ‘.expandfirst ul:first’).show();    });    $(‘ul#accordion li h2.widgettitle’).click(        function() {            var checkElement = $(this).next();            var parent = this.parentNode.parentNode.id;             if($(‘#’ + parent).hasClass(‘noaccordion’)) {                $(this).next().slideToggle(‘normal’);                return false;            }            if((checkElement.is(‘ul’)) && (checkElement.is(‘:visible’))) {                if($(‘#’ + parent).hasClass(‘collapsible’)) {                    $(‘#’ + parent + ‘ ul:visible’).slideUp(‘normal’);                }                return false;           …

    Tutorial, WordPress
  • 50 Days to a Better Blog–Day 5: Tags vs Categories (and more)

    50 Days to a Better Blog–Day 5: Tags vs Categories (and more)

    Reading time: 3 minutes

    This post is the fifth of an ongoing series entitled “50 Days to a Better WordPress Blog”.  During this time, Mitch will be providing small snippits of code, plugins, and things you can do to make your blog more attractive, attain new readers, and keep old ones coming back time and time again. You can…

    WordPress