To make the theme preview work, in JS in the admin you will need to add… Then to output in your theme you can either output directly using… However, since we are saving this in the DB as an attachment ID, you will probably want to create a template tag function to convert it to […]
Create Custom URL Paths and Templates in WordPress
If you need to create a custom URL Path (rewrite) it’s easy enough to just create the page in the admin and create a custom shortcode that will output the HTML that you want. However, you would not be able to properly re-theme this output so a preferred method is to create a URL rewrite […]
Filter by Multiple Taxonomies with SEO-Friendly URLs in WordPress
Note: The rule with pagination needs to come first otherwise it will use the non-page rewrite rule. Extensions for Testing These extensions are helpful for testing during development of your rewrites. Once you have completed development and everything is rewriting as desired these extensions can be removed. Monkeyman Rewrite Analyzer Monkeyman Rewrite Analyzer allows you […]
Create WordPress Admin User with MySQL
These commands let you quickly add a new administrator user account in WordPress using MySQL. Just replace the variables at the beginning with the values you want to use and run it. NOTE: You will need to replace the “wp_” in the table names with your prefix if yours is different.
Fix for “Failed to connect to FTP Server localhost:21” with WordPress on Mac
If you are trying to run an update via the WordPress admin installed locally on your Mac you may have run into the error “Failed to connect to FTP Server localhost:21”. This is possibly caused by ownership and permissions issues on the files. When you installed your WordPress site it may have been owned by yourusername:staff […]