A WordPress shortcode allows you to define PHP to be executed somewhere in your post content. jump to resources The Letter of the Day Imagine you maintain a WordPress website that includes a letter of the day. One way to maintain such a website would be to log in each day and update the letter. […]
shortcode
WordPress Anchor Shortcode Plugin
Once an article reaches a certain length, it is valuable to allow linking to a specific part of the page by creating anchor locations. Unfortunately, creating an anchor location in WordPress involves writing raw HTML, which is not an ideal client solution. There are other solutions out there but Blinebury Design wanted a specific set […]
WordPress Shortcode WP_Query
When doing development, I sometimes find I need a custom shortcode which performs a WP_Query. To reduce the load time of this shortcode, you can cache the result using a transient. Sometimes developers choose to cache the query result and generate the markup each time the shortcode is called. I prefer to cache the final […]