Go Back   TechArena Community > Software > Tips & Tweaks
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , , , ,

Sponsored Links



Disable Image and Video Captions Feature and Auto Adding of Shortcode in WordPress 2.6

Tips & Tweaks


Reply
 
Thread Tools Search this Thread
  #1  
Old 19-07-2008
Mastermind's Avatar
Member
 
Join Date: Aug 2005
Posts: 406
Disable Image and Video Captions Feature and Auto Adding of Shortcode in WordPress 2.6

WordPress 2.6 has tons of new features to already powerful WordPress blog publishing platform, and one of the feature is image captions which display a caption of text describing the image displayed on the web page, beneath under the image itself. In fact, image captioning has been made default feature, and always turned on or enabled.



With image captioning in WordPress 2.6, WordPress will automatically add caption shortcode to all images, graphics, photos, pictures, and videos inserted into blog posts and pages via Flash or classic media uploader. The shortcode [caption] and [/caption], which bracket the IMG, OBJECT or EMBED HTML elements will translate into <div> and </div> CSS attributes to position caption accordingly.

Example of caption shortcode:

[caption]<a><img /></a>[/caption]

Not every blogger will love or need the images caption feature though. Author can skip using using [caption] and [/caption] HTML code to avoid an image or embedded video clip been showing caption below it. However, deleting or removing the caption shortcode that automatically been added together with the insertion of photos and videos in the visual or HTML editor.

For user who doesn’t want to use the image caption feature, and want to turn off and disable the automatic captioning (addition of caption shortcode) to images and videos, insert the following line of code into wp-config.php or the theme’s functions.php.

define(’CAPTIONS_OFF’, true);

Once added CAPTIONS_OFF parameter, the images caption function is WordPress 2.6 is disabled, and the caption shortcode does not work or translate anymore. But note that CAPTIONS_OFF constant is only a temporary variable available in WordPress version 2.6, as denoted in Changeset 8321. It’s recommended that WordPress user does not use this constant as it will no longer be supported in future version of WordPress. Changeset 8358 has made the changes to enable disabling of caption support via plugin’s filter, which likely to go live on WordPress 2.6.1.
Reply With Quote
Reply

  TechArena Community > Software > Tips & Tweaks


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Disable Image and Video Captions Feature and Auto Adding of Shortcode in WordPress 2.6"
Thread Thread Starter Forum Replies Last Post
Need an Auto restart feature in Windows 7 Ekaparana Operating Systems 4 13-08-2010 12:14 AM
Feature Request for Logitech G19 & G13 (Auto Swtich for Profiles) Lalitkishore5 Portable Devices 3 11-06-2010 03:59 PM
Adding META description to wordpress categories Adonis Technology & Internet 3 10-08-2009 06:09 PM
Disable or Hide WordPress.com Automatic Stats Plug-in Smiley Icon Wiro Tips & Tweaks 0 04-11-2008 06:15 PM
YouTube: Auto Translate Now Available For Videos With Captions JamesMK Web News & Trends 3 03-11-2008 07:05 PM


All times are GMT +5.5. The time now is 10:03 AM.