One of the most annoying features of WordPress Multisites (besides domain mapping) is adding a Super Admin a few years after your network is established and grown. Sure, being a Super Admin allows said user to access any site on the network, but the user is technically not added to the site – so the … continue reading »
I remember all the custom solutions and plugins needed before this was supported in WordPress 4.4. A great snippet to have in your toolbox. I’ve reduced it to the bare basics.
When using a custom post type for portfolio items, I needed several of them to be password protected, showing a lock icon instead of the portfolio item. The posts are shown via a normal loop, but they’re just thumbnails with lightbox links. To password protect them all, and have them all unlock with a single … continue reading »
Turning WordPress Categories into hashtags in URL and in common locations (not all) on site:
I write in LESSCSS because I find it’s nesting so much eaiser to read. While creating a theme, I never compile during, it’s too annoying, instead I have a on/off toggle for using .LESS file or .CSS file. In the snippet I made the toggle WP_DEBUG, which should be on while you develop, but if … continue reading »
The documentation left this out, but if you want to remove some post formats from a WordPress child theme, the remove_theme_support( ‘post-formats’) does not allow you to pass an array of formats, it’s just a hard switch. However you can over-write the original add_theme_support(‘post-formats’) with only formats you desire.
According to my previous understanding and WordPress’s documentation: Note that the function called by the shortcode should never produce output of any kind. Shortcode functions should return the text that is to be used to replace the shortcode. Producing the output directly will lead to unexpected results So, we’re limtied, shortcode functions must return, not … continue reading »
Frustrating problem I’ve had happen more than once. Your WordPress site returns a 404 (which you may be relying on), but it shows a HTML (server generated) 404 page, not a WordPress 404 page. Solution for apache is simple: let the server know to revert to index.php when the header is 404, set the following … continue reading »
Always a pain, finding the actual POST TYPE object of a Navigation Menu. This is the most straight forward solution I found to get the relation array. Which will return
I’m a semi-regular contributor on WordPress Support Forums. & as you develop and assist more, you realize that theres a basic troubleshooting routine to solve almost all vague/inexplicable problems – you typically do the same things. These problems include; /wp-admin/ not loading Unable to drag and drop in dashboard White screen instead of site Unable … continue reading »
www is technically a sub-domain – but it usually shares the same /httpdocs/ or /public_html/ or /www/ folder on hosts as non-www, it also is configurable in many different places and varies from host-to-host, so it gets confusing at times. As such, this question comes up daily on the WordPress Support Forums and being that … continue reading »
For opengraph and similar social sharing protocols, you’ll want to include graphics with your post and pages whenever possible for blatantly obvious reasons. Often these images are scraped from the webpage and made selectable by the share’r, which is why you’re able to specify which image you’d like to show when shared. Sometimes (and with … continue reading »