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 […]
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 […]
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 possibly caused by ownership and permissions issues on the files. When you installed your WordPress site it may have been owned by yourusername:staff […]