Sample useful WordPress shortcodes – show Google ad snippet, user’s IP address, current time

Here are a few more useful WordPress shortcodes.  Simply copy the code and paste it into your active theme’s “function.php”.

You can call on shortcodes with the square brackets inside your post or pages:

Insert a Google ad snippet, horizonal 720 x 90 pixels:

[insert_script path='/library/vendors/google/ads/horiz-720x90.php']

Show computer’s IP address:

[show_ip] — produces:

Aaron Belchamber has written 243 articles

Leave a Reply

Your email address will not be published. Required fields are marked *