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 […]
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 […]
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.
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 likely caused due to ownership and permissions issues on the files. When you installed your WordPress site it was probably owned by yourusername:staff […]