Fixing OpenSSL on WordPress Windows PHP 5.6+

Background:

i ran into OpenSSL errors during the Disqus plugin setup.
there’s tons of hits suggesting various solutions, below is the very simple solution that worked for me…

Sample error messages:

SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto in ...

TL;DR:

  1. download latest cacert.pem
  2. place it in a pertinent folder (e.g. $\wp-includes\certificates)
  3. edit your php.ini > openssl.cafile={full path to cacert.pem}

WordPress – show all Tags in Cloud

wordpress defaults to only showing the first 45 tags
tweak this file => \wp-includes\widgets\class-wp-widget-tag-cloud.php
add the “number=0” parameter to this code:

    /**
         * Filter the taxonomy used in the Tag Cloud widget.
         *
         * @since 2.8.0
         * @since 3.0.0 Added taxonomy drop-down.
         *
         * @see wp_tag_cloud()
         *
         * @param array $current_taxonomy The taxonomy to use in the tag cloud. Default 'tags'.
         */
        $tag_cloud = wp_tag_cloud( apply_filters( 'widget_tag_cloud_args', array(
            'taxonomy' => $current_taxonomy,
            'echo' => false,
      'number' => 0
        ) ) );

 
now go consolidate all your single count tags dangling out there 🙂

WordPress Append HashTag to PermaLink

Motivation: Running a site with a big banner header — of course this decision must be weighed itself — on a user screen with low vertical res (e.g. 1024 x 768), the homepage would only show the header link of the first post summary (we’re also using “Add Posts to Page” plugin, with it’s ‘read more’ summary function)… clicking on the post would then nav to relatively same thing, staring at a big banner.

Simple potential solution: Quick inspection of page structure proved that simply jumping to #main would do dandy to scroll content well into view… it seemed like a simple matter of selecting wp-admin > Settings > Permalinks > Custom Structure and slapping #main on the end… but no, of course that’s too easy…WP strips # hash tag out upon save… searched around quite a bit and all suggested solutions are long hacky affairs of forcing the jump after the page is rendered…

SOLVED: Skip the admin UI and simply modify the database => select * from wp_options where option_name like ‘%link%’