wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
the_attachment_link [ WordPress Function ]
the_attachment_link ( $id = 0, $fullsize = false, $deprecated = false, $permalink = false )
| Parameter: |
|
| Definiert in: |
|
Ähnliche Funktionen: the_attachment_links, get_the_attachment_link, get_attachment_link, wp_get_attachment_link, _fix_attachment_links
Display an attachment page link using an image or icon.
Source
<?php
function the_attachment_link( $id = 0, $fullsize = false, $deprecated = false, $permalink = false ) {
if ( !empty( $deprecated ) )
_deprecated_argument( __FUNCTION__, '2.5' );
if ( $fullsize )
echo wp_get_attachment_link($id, 'full', $permalink);
else
echo wp_get_attachment_link($id, 'thumbnail', $permalink);
}
?>
Beispiele [ wp-snippets.com ]
Top Google Suchergebnisse
- Function Reference/the attachment link « WordPress Codex
Description. Outputs an HTML hyperlink to an attachment file or page, containing either. A full size image or thumbnail for image attachments; or; The ...
codex.wordpress.org - WordPress › Support » Function: the_attachment_link ()
I'm working on a WP template and I would like make a feature in which the first image of a post is shown and the excerpt of the post is overlapped to the image ...
wordpress.org - php - How to remove link around the_attachment_link image in ...
This is what I have in the loop that grabs the posts and displays them ... what about this: <?php echo wp_get_attachment_url( $id ); ?> outputs ...
stackoverflow.com - Error in attachment.php: the_attachment_link() and ... - ThemeShaper
I am getting this error on my attachment pages: Notice: Undefined property: stdClass::$post_ID in .../thematic/attachment.php on line 45. Line 45 ...
themeshaper.com
Nutzerduskussionen [ wordpress.org ]
- AardvarkGirl on "A list of .pdf docs using the_attachment_link, open in target blank?"
- MDavid-ITA on "Function: the_attachment_link ()"
- MDavid-ITA on "Function: the_attachment_link ()"
- esmi on "Function: the_attachment_link ()"
- MDavid-ITA on "Function: the_attachment_link ()"
- Micah Cooksey on "Get all images from a page or a post within the loop"
- cooperanet on "Get all images from a page or a post within the loop"
- tpc on "Customizing the_title(): below an image, before post content"
- tpc on "Customizing the_title(): below an image, before post content"
- kobewolfe on "Customizing the_title(): below an image, before post content"