Wordpress

Secret WordPress Settings Page

WordPress has a secret options page to update values in the options table. Access it by changing the options page URL from /options-general.php to /options.php. I have found this useful for updating the admin email address since they have an authorization feature now.  This let me skirt this feature for making a change to the …

Secret WordPress Settings Page Read More »

Modifying Print Invoices and Packing Lists Template in Woocommerce

Modifying “Print Invoices & Packing Lists” WooCommerce add-on to remove unwanted columns.  This will remove the sku column from the invoice, and the weights column from the packing list.  The weight column was the primary reason for this code, and makes it simple to eliminate unwanted information. source: https://www.skyverge.com/blog/modifying-print-invoices-packing-lists-templates/

Limit Search Results For Specific Post Types

Change the default wordpress search, and limit the results to only specific post types.  Change the array that is set to only include the post types that you want returned for the search.   reference: https://www.wpbeginner.com/wp-tutorials/how-to-limit-search-results-for-specific-post-types-in-wordpress/

Enqueue stylesheet for jQuery UI from ajax.googleapis.com

CDN resources are useful for including common scripts, but the jquery ui script also requires the stylesheets. The following code will add the jqueryui stylesheets for the proper version that is included with wordpress. reference: https://stackoverflow.com/questions/8849684/wordpress-jquery-ui-css-files

Replace @import in WordPress Child Themes

Stop using @import in child themes. Use the following code in your functions.php file to enqueue the parent theme style.css file, and avoid using @import. reference: https://konstantin.blog/2014/child-themes-import/

Add WordPress Admin Account via FTP

Create yourself a wordpress admin user account if you only have ftp access to a site. Add this snippet to the theme’s functions.php file, or in a file in ~/wp-content/mu-plugins/ folder. Create New Admin Account in WordPress via FTP

Working With Taxonomy’s

I recently needed to work with a taxonomy that was created for a custom post type, where I needed to access the parent taxonomy.  I came across this same code in the wordpress support forums.  It should be useful when working with taxonomy’s in the future. reference: https://wordpress.org/support/topic/if-current-taxonomy-has-child-andor-parent

Scroll to Top