• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Archives for shortcode

shortcode

A puzzle with a missing piece

WordPress Shortcode

Last updated on October 30, 2017 by Sal Ferrarello

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. […]

Filed Under: Programming Tagged With: shortcode, WordPress

A photo of a ship's anchor

WordPress Anchor Shortcode Plugin

Last updated on October 25, 2017 by Sal Ferrarello

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 […]

Filed Under: Computing, Programming, Solution Tagged With: anchor, shortcode, WordPress Plugin

WordPress Shortcode WP_Query

Last updated on February 25, 2015 by Sal Ferrarello

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 […]

Filed Under: Programming Tagged With: cache, shortcode, WordPress

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in