Deze plugin is niet getest met de laatste 3 grotere versies van WordPress. Mogelijk wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

Get Image from Post

Beschrijving

** this plugin is no longer being update. Please feel free to adopt me! **

This is a simple plugin which allows users to return an image from the related post.

Installatie

To install the plugin, please upload the folder to your plugins folder and active the plugin.

FAQ

To install the plugin, please upload the folder to your plugins folder and active the plugin.

Insert the following code into your WordPress theme files:

Without passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.

horshipsrectors_get_image_from_post();

By default the plugin wraps your code in list item (<li>) tags but you can specify how to format the results using the following code:

horshipsrectors_get_image_from_post(‘before=<p>&after=</p>’);

If you’d like to link to the post (remember it’s not live yet) you can do so by calling:

horshipsrectors_get_image_from_post(‘link=true’);

You can specify which image is returned using the code:

horshipsrectors_get_image_from_post(‘image=2’);

If you would like to strip the attributes such as width and height from the returned value:

horshipsrectors_get_image_from_post(‘strip=true’);

Finally, if you’d like to copy the results into a variable you can return the results as follows:

horshipsrectors_get_image_from_post(‘show=false’);

Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

Bijdragers & ontwikkelaars

“Get Image from Post” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

Vertaal “Get Image from Post” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

2.0.0

  • renamed function to be more compatible.
  • tested and optimized in WordPress 3.2
  • added test to determine in images existed

1.0.0

  • official release
  • added strip attribute

1.1.0

  • minor fixes for wordpress new admin