Linux 软件免费装

Plugin Name

开发者 TheWebist
更新时间 2010年6月26日 18:36
PHP版本: 2.8.4 及以上
WordPress版本: 2.9

标签

images function attachments post image

下载

0.1

详情介绍:

This plugin provides the template tag wp_get_post_image(). Use it to call dynamically created images uploaded via the WordPress media uploader. NOTE: This plugin is intended for use by WordPress developers and theme builders only. Usage <?php wp_get_post_image($args); ?> Default Usage <?php $args = array( 'width' => null, 'height' => null, 'css' => '', 'parent_id' => '', 'post_id' => '', 'filename' => '', 'return_html' => true ); ?> By default, the function returns: Parameters Example <?php // use this example wherever you have access to $post->ID, e.g. the WordPress loop if(function_exists('wp_get_post_image')) echo wp_get_post_image('width=450&css=alignleft&parent_id='.$post->ID); ?>

安装:

Install the plugin as follows:
  1. Upload the folder wp-get-post-image to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Place <?php echo wp_get_post_image(); ?> in your templates

更新日志:

0.1 (2009-11-23)