<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Commentaires sur : WordPress&#160;: lister les images d&#8217;un article sur une page media</title>
	<atom:link href="http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html</link>
	<description>Bloc-note d&#039;un développeur web</description>
	<lastBuildDate>Thu, 11 Mar 2010 20:01:12 +0100</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Par : Franck</title>
		<link>http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html#comment-687</link>
		<dc:creator>Franck</dc:creator>
		<pubDate>Thu, 31 Dec 2009 14:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=207#comment-687</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;avec WP 2.9 on peut utiliser des attributs include/exclude pour créer une galerie personnalisée.
Comment faire pour que les images sélectionnées « suivent » dans le wallthumb ? Avec le code toutes les images de la galerie apparaissent ;-)
Merci de ton aide.&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>avec WP 2.9 on peut utiliser des attributs include/exclude pour créer une galerie personnalisée.
Comment faire pour que les images sélectionnées «&#160;suivent&#160;» dans le wallthumb&#160;? Avec le code toutes les images de la galerie apparaissent <img src='http://pioupioum.fr/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> 
Merci de ton aide.</p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : piouPiouM</title>
		<link>http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html#comment-133</link>
		<dc:creator>piouPiouM</dc:creator>
		<pubDate>Fri, 18 Sep 2009 08:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=207#comment-133</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;La description est accessible &lt;em&gt;via&lt;/em&gt; la propriété &lt;code&gt;post_content&lt;/code&gt; et on accède à la légende à l&#039;aide de la propriété &lt;code&gt;post_excerpt&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Ainsi, en utilisant &lt;code&gt;get_other_attachments()&lt;/code&gt;, nous obtenons ce qui suit :&lt;/p&gt;

&lt;pre lang=&quot;php&quot; line=&quot;1&quot;&gt;
$attachements = get_other_attachments();
foreach ($attachements as $attachement)
{
    printf(&#039;&lt;dl&gt;&lt;dt&gt;%s&lt;/dt&gt;&lt;dd&gt;Description : %s&lt;/dd&gt;&lt;dd&gt;Légende : %s&lt;/dd&gt;&lt;/dl&gt;&#039;,
        $attachement-&gt;post_title,
        $attachement-&gt;post_content,
        $attachement-&gt;post_excerpt
    );
}&lt;/pre&gt;

&lt;p&gt;Les informations sont également disponibles si vous utilisez la fonction &lt;code&gt;get_children()&lt;/code&gt;.&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>La description est accessible <em>via</em> la propriété <code>post_content</code> et on accède à la légende à l&#8217;aide de la propriété <code>post_excerpt</code>.</p>

<p>Ainsi, en utilisant <code>get_other_attachments()</code>, nous obtenons ce qui suit&#160;:</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$attachements</span> <span style="color: #339933;">=</span> get_other_attachments<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachements</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$attachement</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;dl&gt;&lt;dt&gt;%s&lt;/dt&gt;&lt;dd&gt;Description : %s&lt;/dd&gt;&lt;dd&gt;Légende : %s&lt;/dd&gt;&lt;/dl&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #000088;">$attachement</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #339933;">,</span>
        <span style="color: #000088;">$attachement</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #339933;">,</span>
        <span style="color: #000088;">$attachement</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_excerpt</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>




<p>Les informations sont également disponibles si vous utilisez la fonction <code>get_children()</code>.</p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : Jib's</title>
		<link>http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html#comment-131</link>
		<dc:creator>Jib's</dc:creator>
		<pubDate>Fri, 18 Sep 2009 01:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=207#comment-131</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;Merci pour cette fonction.&lt;/p&gt;

&lt;p&gt;Une petite question : au moment d&#039;uploader une image, on rentre sa légende, description, et titre.
Je n&#039;arrive pas à les récupérer ensuite.
Une idée ?&lt;/p&gt;

&lt;p&gt;Merci d&#039;avance.&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>Merci pour cette fonction.</p>

<p>Une petite question&#160;: au moment d&#8217;uploader une image, on rentre sa légende, description, et titre.
Je n&#8217;arrive pas à les récupérer ensuite.
Une idée&#160;?</p>

<p>Merci d&#8217;avance.</p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : Afficher les images de vos articles WordPress ! sur Geekeries.fr &#124; Découvrir WordPress</title>
		<link>http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html#comment-104</link>
		<dc:creator>Afficher les images de vos articles WordPress ! sur Geekeries.fr &#124; Découvrir WordPress</dc:creator>
		<pubDate>Wed, 02 Sep 2009 10:30:46 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=207#comment-104</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;[...] Voir la méthode de Mehdi ! [...]&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>[&#8230;] Voir la méthode de Mehdi&#160;! [&#8230;]</p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : Li-An</title>
		<link>http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html#comment-93</link>
		<dc:creator>Li-An</dc:creator>
		<pubDate>Fri, 28 Aug 2009 09:53:05 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=207#comment-93</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;Pas mal...&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>Pas mal&#8230;</p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : piouPiouM</title>
		<link>http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html#comment-91</link>
		<dc:creator>piouPiouM</dc:creator>
		<pubDate>Thu, 27 Aug 2009 21:30:55 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=207#comment-91</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;@Valentin effectivement, nous pouvons faire appel à &lt;/p&gt;

&lt;pre lang=&quot;php&quot; line=&quot;76&quot;&gt;$buf .= wp_get_attachment_link($attachment-&gt;ID, &#039;thumbnail&#039;);&lt;/pre&gt;

&lt;p&gt;en remplacement du bloc :&lt;/p&gt;

&lt;pre lang=&quot;php&quot; line=&quot;76&quot;&gt;$buf .= sprintf(&#039;&lt;a href=&quot;%s&quot; title=&quot;%s&quot; rel=&quot;attachment&quot; rel=&quot;nofollow&quot;&gt;%s&lt;/a&gt;&#039;,
    get_attachment_link($attachment-&gt;ID),
    esc_attr(get_the_title($attachment-&gt;ID)),
    wp_get_attachment_image($attachment-&gt;ID, &#039;thumbnail&#039;)
);&lt;/pre&gt;

&lt;p&gt;Thx ;-)&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>@Valentin effectivement, nous pouvons faire appel à </p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>76
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$buf</span> <span style="color: #339933;">.=</span> wp_get_attachment_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thumbnail'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>




<p>en remplacement du bloc&#160;:</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>76
77
78
79
80
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$buf</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;a href=&quot;%s&quot; title=&quot;%s&quot; rel=&quot;attachment&quot; rel=&quot;nofollow&quot;&gt;%s&lt;/a&gt;'</span><span style="color: #339933;">,</span>
    get_attachment_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    esc_attr<span style="color: #009900;">&#40;</span>get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    wp_get_attachment_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thumbnail'</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>




<p>Thx <img src='http://pioupioum.fr/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : piouPiouM</title>
		<link>http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html#comment-90</link>
		<dc:creator>piouPiouM</dc:creator>
		<pubDate>Thu, 27 Aug 2009 21:27:39 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=207#comment-90</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;De rien, il faut bien s&#039;entraider :)&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>De rien, il faut bien s&#8217;entraider <img src='http://pioupioum.fr/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : Valentin</title>
		<link>http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html#comment-87</link>
		<dc:creator>Valentin</dc:creator>
		<pubDate>Wed, 26 Aug 2009 21:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=207#comment-87</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;Je vais tester ! Merci du partage !&lt;/p&gt;

&lt;p&gt;On peut également faire cette manip&lt;/p&gt;

&lt;pre lang=&quot;php&quot; line=&quot;1&quot;&gt;$args = array(
    &#039;post_type&#039; =&gt; &#039;attachment&#039;,
    &#039;numberposts&#039; =&gt; null,
    &#039;post_status&#039; =&gt; null,
    &#039;post_parent&#039; =&gt; $post-&gt;ID
); 
$attachments = get_posts($args);
if ($attachments) {
    foreach ($attachments as $attachment) {
        echo the_attachment_link($attachment-&gt;ID, false);
    }
}&lt;/pre&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>Je vais tester&#160;! Merci du partage&#160;!</p>

<p>On peut également faire cette manip</p>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'post_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'attachment'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'numberposts'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'post_status'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'post_parent'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$attachments</span> <span style="color: #339933;">=</span> get_posts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachments</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$attachment</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">echo</span> the_attachment_link<span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>



</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : Julien</title>
		<link>http://pioupioum.fr/outils-astuces/afficher-images-article-page-media.html#comment-86</link>
		<dc:creator>Julien</dc:creator>
		<pubDate>Wed, 26 Aug 2009 15:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=207#comment-86</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;Ralalala c&#039;est malin maintenant j&#039;ai honte de ma fonction toute cracra ^_^&#039;&lt;/p&gt;

&lt;p&gt;Merci pour cette mise au propre en tout cas :)&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>Ralalala c&#8217;est malin maintenant j&#8217;ai honte de ma fonction toute cracra ^_^&#8217;</p>

<p>Merci pour cette mise au propre en tout cas <img src='http://pioupioum.fr/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
</channel>
</rss>
