Tag: shortcode

  • Shortcode Example: Reviews

    Shortcode Example: Reviews

    A shortcode for reviewing things in a standard kind of way.

  • Always Validate Data

    Always Validate Data

    Cleaning data and validate it before saving is just common sense.

  • Copyright Years for WordPress

    Copyright Years for WordPress

    Echoing the year for copyright in a shortcode isn’t terribly complicated, and you can even account for year zero.

  • Displaying Taxonomy Count

    Displaying Taxonomy Count

    Showing a number of posts from a taxonomy in a shortcode was surprisingly complicated.

  • Displaying Post Count

    Displaying Post Count

    Showing a number of posts in a shortcode isn’t that hard. Here’s the code.

  • Looping Hugo

    Looping Hugo

    Looping through Hugo became a day of insanity when a variable couldn’t decide if it was an integer or a string.