Search query: shortcode
Found 24 matching results
WordPress Shortcode for Linked Image Gallery
This cool little snippet was contributed by VRS from Russia. It enables you to display a set of linked gallery images. You can use this technique anywhere in your theme template file or in any WordPress Post or Page.
Disable extra p tags in WP shortcodes
When WordPress processes shortcodes, it first passes the content through its wpautop() function to convert line breaks to <p></p> or <br /> tags. This order of processing can lead to unwanted paragraph and breaks scattered throughout your shortcode content. This post provides a simple way to prevent this from happening, so you can keep your […]
Some Useful WordPress Shortcodes
Here is a nice collection of useful WordPress shortcodes, including cool functionality like displaying author lists, automatic links, subscribe links, current date, and more!
WordPress shortcodes for private content
I use these snippets all the time, so I’m posting them here at WP-Mix for easy access. The first shortcode can be used to display content only to logged-in users (based on capability). And the second shortcode can be used to display content only to visitors (non-logged-in users).
WordPress Shortcode Display Search Form
Here is an easy custom WordPress function to display your theme’s search form via shortcode. This makes it easy to display the search form on any Post or Page.
WordPress Create Shortcode
Ultra-quick guide to help you create a WordPress Shortcode. Aimed at experienced WordPress users who need a basic example of how to create shortcodes.
WordPress Conditional Shortcodes via Ajax
This example builds from the conditional do_shortcode technique to evaluate shortcodes during Ajax requests.
WordPress Conditional Do Shortcode
Quick snippet to call and evaluate WordPress shortcodes conditionally, outside of their normal Post/Page context.
Members-only content via shortcode
Here is a sweet little WordPress shortcode to display content only to logged-in users. Visitors not logged in will see a custom message saying whatever you’d prefer.
Shortcode for encoded email address
One way to help reduce spam is to encode your email address whenever displaying publicly. Here is a function that will do just that: display an encoded version of whatever email address you specify.
Enable shortcodes in widgets
Quick tip to enable WordPress shortcodes to be executed in widgets (and post content).
Create a WordPress shortcode
Creating your own custom shortcodes is another thing that WordPress makes very easy to do.