Skip to main content

Create a Custom Admin View for a CPT Type

If you need to have a custom view in admin area for a speecific CPT post type, here's a ready solution.

Get the lowest price in last 30 days including CRON

This is a complete system for setting up and running the now required by law display of lowest price in last 30 days, if a product is on special. *Note: this is a 98% legal version. It doesn't loo...

Grab the Post Category Name and Pemalink

Shortest possible way of getting the posts category name and permalink. Useful for breadcrumbs and queries.

Make a Dynamic Text Field for CF7 Field Readonly

Out of the box, readonly is not an option, but we can easily add it.

Get Category Name (like the_title)

To get the category title, like you'd get the post title use this.

Master Function - tempdir() and get_tempdir()

Probably my favorite function. Used to get the template directory. tempdir() gets the directory and renders it get_tempdir() gets the directory and returns it, no render These are already in Master.

Master Function - homealt() and get_homealt()

Similar to alt() and get_alt(), it just gets the website name. Only reason I actually made this one is because a few times I called get_blogdata() instead of get_bloginfo() and got annoyed :) This...

Master Function - alt() and get_alt()

This function just saves a bit of typing. I always put alt for images (sometimes use it elswhere too) and this way I don't have to think. alt() grabs the pages ' title and website name, concatenat...

Map Coordinates Converter from DMS to DD Format

If a client has, or delivers coordinates in DMS (40° 26' 46 N, 79° 58' 56 W) format, that's utterly useless to us since everything uses DD (45.16161651, 15.66841681) format. This piece of magic wi...