I will be showing how to add and remove columns that are listed in the post, page or custom post screen in the backend. I began by creating a new php file I named columns.php which I placed into a lib folder inside the ... [Read more]
WordPress developer
The following are more advanced tutorials digging more into the code.
Creating a movie custom post type
Creating a movie custom post type I made the folder lib inside the root folder of the child theme. Then added a php file I named movie-custom-post.php with the following code: <?php /** * Register Movie Type * * ... [Read more]
To manually add a Facebook like box
Here is the process of adding a Facebook Like Box that also shows timeline posts. Go to: developers.facebook.com/docs/plugins/page-plugin Go through and fill in the options. Test it out and see what it looks ... [Read more]
Adding SSL to your web site
The process of adding SSL to a web site requires a few steps. Contact your web host and ask for their help as they will have their own method of adding SSL to a web site. This is what I usually do with my clients or ... [Read more]
Change primary hosting domain to subfolder
Redirecting the primary/main web host domain to a subfolder. The public_html folder is a place to keep folders of the various domains one has at a web host. Web hosts usually have the main or primary domain in the root ... [Read more]
Developer Resources
Some developer resources that I find useful. codex.wordpress.org generatewp.com wp-hasty.com Lukes awesome WP developer tools list: github.com/lukecav/awesome-wp-developer-tools Additional ... [Read more]
Adding copyright information to the bottom of the page
Copyright information Most often we add some copyright information at the bottom of the page that says something about year, made by, made with and perhaps a link to the wp-admin. I will use the date, site_url() and ... [Read more]
How to point a top level domain to a multisite using domain mapping
How to point a top level domain to a multisite Update 3 April 2020. It is a lot easier to use top level domains in a multisite these days in WordPress 5.4 then it was earlier. I just had to log in to my host. Go to ... [Read more]
Customizing the excerpts meta box
There are multiple code snippets we can add to customize the excerpts meta box Part 1 - How to use and style the excerpt All the following code snippets are added into the functions.php file below the other code that ... [Read more]
Cleaning up filenames that have non UTF8 characters in them
Using a code snippet to clean up filenames WordPress does not fully clean up non English characters from file names that are uploaded. In Norway we have three additional letters æøå. These letters are sometimes used ... [Read more]
How to hide or remove meta boxes in the single post or page screen
How to hide or remove meta boxes in the single post or page screen How to hide the meta boxes .....but still having them accessible through the Screen Options tab. I was wondering how to hide specific meta ... [Read more]
Automatically set featured image, if no featured then set post image as featured
Automatically setting the featured image without a plugin It can be very easy to forget to set the featured image. Here is code that will do the following: 1. Sets the featured image. 2. If no featured ... [Read more]
Create your own author bio box in WordPress
Create your own author bio box in WordPress without a plugin. I have tested the following author box in TwentySixteen Child theme and Genesis Child themes as well as some random themes. The final result using ... [Read more]
Creating a client friendly login screen
How to give the customer a customized login screen. The finished results looks like this: (I believe the image was purchased some time ago through Medialoot.com) Inside the Functions.php The following ... [Read more]
Useful site helper tools
There are a few tools I help to get my sites up in running order. As I come across additional tools I find very helpful I will add on to the article. qSandbox - "Staging Sites Made Easy" It is real easy to ... [Read more]
Creating a sticky / fixed footer in a Genesis child theme
Genesis themes have an unique way to add a sticky / fixed footer. If your using a theme that is not a Genesis theme then check out my tutorial: Creating a footer that sticks to the bottom Sticky is actually something ... [Read more]
WordPress Core Projects
Core Projects being worked on for future release in WordPress Core WP Fields API PJ: What is the WP Fields API? Scott: Fields API is a project that lets you build structures for WordPress objects. A structure is ... [Read more]
Customizing a video embed
Customizing a video embed in WordPress. Further below I will also show a responsive iFrame Embed. The default view of a Youtube url embeded into a post or page: https://www.youtube.com/watch?v=hOA4yLHs0gQ (I am ... [Read more]
Creating a custom user role
How to create a custom user role in WordPress. Creating a custom user role The simple way is using a plugin. Plugins: Switching user roles plugin User Role Editor Capability Manager Enhanced Multiple roles per ... [Read more]
Reorder left Admin menu items
Reordering and removing left admin menu items Clone the administrator user ... [Read more]
Creating a custom Dashboard widget
Creating a custom Dashboard widget in WordPress. I made a help widget for a client so they see it righty away when logging into the backend of WordPress. It is based on the resource links further below. (It is ... [Read more]
Adding your own avatar
How to add your own avatar in WordPress. Today the default is to sign up at gravatar.com and to add your avatar there. It will then be available in a number of sites including WordPress sites. I am showing a few options ... [Read more]
Adjusting the top admin toolbar menu
Adjusting the admin toolbar menu The followings are some adjustments one can make with the top admin toolbar menu. The codex has some pretty good resources for ... [Read more]
Sticky bottom content
Content starts at the bottom of the page The challenge is to have content begin at the bottom of the page. Here is an example: One can see the gallery building, red phone booth and the site header containing the ... [Read more]
Adding JavaScript to WordPress
How to add and use JS scripts in WordPress Check the Calculator - JSFiddle to show the HTML, CSS and JS code in action. The calculator now also works in IE. Well kinda... As I move the second slider it slows to a grawl ... [Read more]
Using the Advanced Custom Fields plugin
How to use and display Advanced Custom Fields in a Genesis theme. This is a somewhat technical tutorial on how to use Advanced custom fields. I keep text to a minimum. Creating custom fields for your custom post ... [Read more]
Custom Post Types used in Genesis Child Themes
Code used in Minimum Pro and Executive Pro StudioPress have two Child Themes that contain custom post types: Minimum Pro and Executive Pro. Minimum Pro Demo Minimum Portfolio Post type The first code contains the ... [Read more]
The future of WordPress Multisite
WordPress Multisite options I am working on improving the user interface for multisite as part of the WordPress core group. https://make.wordpress.org/core/tag/multisite/ Every Tuesday there is a chat in the slack ... [Read more]
Install of MAMP and WordPress
Use MAMP to create a local (offline) site. I use MAMP to create a local development site and when I am ready to place it online I install the plugin Duplicator to back it up and through ftp move it ... [Read more]
Code Snippets sites
Code Snippets Is the name used for smaller pieces of code inserted into the child theme functions file, or even better into its own custom functions plugin independent of the theme. A good article to check ... [Read more]
How to use the excerpt
How to use and style the excerpt I want to show good stylized previews of the posts on the home page without using featured images. One way is use excerpts with a Visual Editor (TinyMCE editor) to stylize the ... [Read more]
Creating and adding a gist to a WordPress post
Creating and adding a Github gist into your WordPress post or page I usually use the pre or code tag from the Visual Editor TinyMCE bar to show code. But sometimes it just comes out looking wrong when I am trying to ... [Read more]
An easy way to duplicate posts or pages
Duplicating a post or page One can duplicate a post or page or custom posts using a plugin or inserting code (snippet) into the functions file. Duplicate plugins: Duplicate Post plugin and Post Duplicator OR use a ... [Read more]
Tips on adding code to wp-config
A few tips on code to add to the wp-config.php file. Empty Trash Automatically Set the number of days and reduce the size of your database. define('EMPTY_TRASH_DAYS', 15 ); Right before That's all, stop editing! ... [Read more]
Automatic update of WordPress, plugins and themes
Automatically update major and minor versions of WordPress along with plugins and themes. I have been looking for easy ways to update my plugins and themes without having to login to a site. I am looking forward to the ... [Read more]
Back to top link
A Back to top link Having a back to top link is useful for longer pages. I did a search and came across this code at https://wordpress.org/support/topic/adding-back-to-top-button-1?replies=14 One can just place the ... [Read more]
Security
Here are some security tips I picked up along the way. This article will on occasion be updated with additional information. Update WordPress, and your themes and plugins. Change username from Admin to something ... [Read more]
WordPress media structure ideas
At the Wordpress.org forums there is a section called ideas https://wordpress.org/ideas Anyone can suggest an idea and others can then add to it and vote on it. I just added the "A better media structure" idea. ... [Read more]
Managing menus in WordPress
Finding good ways to manage and create menus with WordPress. NB! See further below on using conditional logic code to show specific menus. I asked a question at the Advanced Facebook WordPress ... [Read more]
Thoughts on future WordPress Core Plugin features
Update 14 August 2014 For 4.0 planned release 27th of August - there are very few Core Plugins. Perhaps just one the Media Library Grid Plugin. I hoped that additional Core Plugins would also be ... [Read more]