跳到内容

Ponticlaro Media Settings

v1.4

ponticlaro · 2009年10月19日 上架

Keep your media insert code consistent site-wide.

正在使用
10+
评分
暂无
累计下载
3,858
最近更新
2010年9月10日
需要 WordPress 2.7+已测试到 3.0.5

截图

Main settings screen
Main settings screen

Keep your media insert code consistent site-wide.

  • Customize image and media HTML code site-wide
  • Use the [media] shortcode to display images from the gallery at particular sizes
  • Remove overbearing WordPress auto-code like class=””
  • Force WordPress to insert relative URLs to make testing on a dev server easier

Shortcode Documentation

Use the [media] shortcode to easily display images from the gallery. Here are some example uses:

Display 3 images from the gallery. The order is determined in the WordPress media gallery:

[media] [media] [media]

Display an image with id 123:

[media id=”123″]

Display a thumbnail, medium, or large sized image:

[media size=”small”]
[media size=”medium”]
[media size=”large”]

Display a clickable image. The click through URL will default to the WordPress “view page” for that image.

[media link=true]

Display a clickable image, linking to an arbitrary URL:

[media link=true url=”http://www.your-custom.url”]

Examples for setting custom class, title, width, or height attributes. These can be used to customzie the attributes on the generated HTML image tag

[media class=”custom-class” title=”title text” width=”100″ height=”100″]

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums