<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Tag: show_description</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 21:47:45 +0000</pubDate>

<item>
<title>JimDandy on "Showing Link Descriptions on the links.php Template"</title>
<link>http://themeshaper.com/forums/topic/showing-link-descriptions-on-the-link-descriptions#post-12546</link>
<pubDate>Sun, 23 May 2010 18:48:00 +0000</pubDate>
<dc:creator>JimDandy</dc:creator>
<guid isPermaLink="false">12546@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Can I ask a question 7 months after the last post in this thread? Well, here goes.&#60;/p&#62;
&#60;p&#62;I'm pretty boneheaded when it comes to PHP, although I understand it in theory. Anyway, if I want to pull in named anchors for my link categories on my links page, what do I need to add to the content filter, as above? I've successfully modified the category_before argument to add a named anchor, but have only had success using the id variable (because it's a documented variable, and my comprehension ends there!):&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;code&#62;$content = &#38;#39;category_before=&#38;lt;li id=&#38;quot;%id&#38;quot; class=&#38;quot;%class&#38;quot;&#38;gt;&#38;lt;a name=&#38;quot;%id&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;&#38;#38;...&#60;/code&#62;&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;So my question is how could I change that named anchor to pull in the category name, if I wanted to do that. I don't know if I'll actually go that route, since the name could include spaces, and I'd probably need to do a reg_exp filter on it to make it usable as a tag parameter, but I figure I should try to learn something in the process. Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>theorib on "Showing Link Descriptions on the links.php Template"</title>
<link>http://themeshaper.com/forums/topic/showing-link-descriptions-on-the-link-descriptions#post-6826</link>
<pubDate>Tue, 29 Sep 2009 23:50:26 +0000</pubDate>
<dc:creator>theorib</dc:creator>
<guid isPermaLink="false">6826@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;For the record if anyone is interested, here is the final code sniplet I used to solve my initial post proposition, changing the output code and showing description on the links.php page template:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Customizes the output on the links.php page template
function my_list_bookmarks_args() {
    // the default args
    $content = &#38;#39;title_before=&#38;lt;h2&#38;gt;&#38;#38;title_after=&#38;lt;/h2&#38;gt;&#38;#38;show_description=1&#38;#38;between=&#38;lt;span class=&#38;quot;between&#38;quot;&#38;gt;&#124;&#38;lt;/span&#38;gt;&#38;lt;span class=&#38;quot;link-desc&#38;quot;&#38;gt;&#38;#38;after=&#38;lt;/span&#38;gt;&#38;lt;/li&#38;gt;&#38;#38;order=DESC&#38;#38;orderby=id&#38;#39;;
    return $content;
}
add_filter(&#38;#39;list_bookmarks_args&#38;#39;, &#38;#39;my_list_bookmarks_args&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>theorib on "Showing Link Descriptions on the links.php Template"</title>
<link>http://themeshaper.com/forums/topic/showing-link-descriptions-on-the-link-descriptions#post-6824</link>
<pubDate>Tue, 29 Sep 2009 22:57:13 +0000</pubDate>
<dc:creator>theorib</dc:creator>
<guid isPermaLink="false">6824@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Chris you are awesome, thanks! That works wonders!&#60;/p&#62;
&#60;p&#62;If someone else looks for this in the future, there was an extra dot that messed-up the code above, the correct one should be:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function my_list_bookmarks_args() {
    // the default args
    $content = &#38;#39;title_before=&#38;lt;h2&#38;gt;&#38;#38;title_after=&#38;lt;/h2&#38;gt;&#38;#39;;
    $content. = &#38;#39;&#38;#38;show_description=1&#38;#39;;
    return $content;
}
add_filter(&#38;#39;list_bookmarks_args&#38;#39;, &#38;#39;my_list_bookmarks_args&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'll look at how to style the &#60;code&#62;between&#60;/code&#62; with the info you gave me!
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Showing Link Descriptions on the links.php Template"</title>
<link>http://themeshaper.com/forums/topic/showing-link-descriptions-on-the-link-descriptions#post-6818</link>
<pubDate>Tue, 29 Sep 2009 21:07:31 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">6818@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Theo,&#60;/p&#62;
&#60;p&#62;the one and only advice: Don't touch that Theme! :)&#60;/p&#62;
&#60;p&#62;Ok .. the list_bookmarks_args() filter function was build to hand the needed arguments over to wp_list_bookmarks().&#60;/p&#62;
&#60;p&#62;Create a function that returns the arguments you want to use for wp_list_bookmarks():&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function my_list_bookmarks_args() {
    // the default args
    $content = &#38;#39;title_before=&#38;lt;h2&#38;gt;&#38;#38;title_after=&#38;lt;/h2&#38;gt;&#38;#39;;
    $content. = &#38;#39;&#38;#38;show_description=1&#38;#39;;
    return $content;
}
add_filter(&#38;#39;list_bookmarks_args&#38;#39;, &#38;#39;my_list_bookmarks_args&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you want to leave the default args in there (the above code sample is just to show what's already there), you can shorten the above code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function my_list_bookmarks_args($content) {
    $content. = &#38;#39;&#38;#38;show_description=1&#38;#39;;
    return $content;
}
add_filter(&#38;#39;list_bookmarks_args&#38;#39;, &#38;#39;my_list_bookmarks_args&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>theorib on "Showing Link Descriptions on the links.php Template"</title>
<link>http://themeshaper.com/forums/topic/showing-link-descriptions-on-the-link-descriptions#post-6800</link>
<pubDate>Tue, 29 Sep 2009 15:41:43 +0000</pubDate>
<dc:creator>theorib</dc:creator>
<guid isPermaLink="false">6800@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ok, I figured out a way to do the first thing (showing the description) by putting a copy of the links.php file in my child theme folder and replacing the:&#60;br /&#62;
&#60;code&#62;&#38;lt;?php wp_list_bookmarks(list_bookmarks_args()) ?&#38;gt;&#60;/code&#62;&#60;br /&#62;
by&#60;br /&#62;
&#60;code&#62;&#38;lt;?php wp_list_bookmarks(&#38;#39;show_description=1&#38;#39;,&#38;#39;list_bookmarks_args()&#38;#39;) ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Though this works I reckon there must be a much &#34;nicer, cleaner and right&#34; way to do it using something like filter hooks or action hooks in my &#60;code&#62;functions.php&#60;/code&#62; file but even though I read Ian's great tutorials on both things I still can't find the way to do it...&#60;/p&#62;
&#60;p&#62;Any help would be much appreciated to learn more about PHP!&#60;/p&#62;
&#60;p&#62;Thanks loads, Thematic is awesome!
&#60;/p&#62;</description>
</item>
<item>
<title>theorib on "Showing Link Descriptions on the links.php Template"</title>
<link>http://themeshaper.com/forums/topic/showing-link-descriptions-on-the-link-descriptions#post-6796</link>
<pubDate>Tue, 29 Sep 2009 13:59:59 +0000</pubDate>
<dc:creator>theorib</dc:creator>
<guid isPermaLink="false">6796@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;I'm still not comfortable with PHP though I manage myself well with XHTML and CSS.&#60;/p&#62;
&#60;p&#62;I was wondering if there is a way of showing Link Descriptions on the links.php page template without modifying the defaults on the wordpress &#60;code&#62;bookmark-template.php&#60;/code&#62; file itself.&#60;/p&#62;
&#60;p&#62;I don't know how to do it but I would guess there would be a way for modifying the &#60;code&#62;&#38;#39;show_description&#38;#39; =&#38;gt; 0&#60;/code&#62; to &#60;code&#62;&#38;#39;show_description&#38;#39; =&#38;gt; 1&#60;/code&#62; in the &#60;code&#62;functions.php&#60;/code&#62; file of my themelet.&#60;/p&#62;
&#60;p&#62;Also, on the links page, I need to output something like this:&#60;br /&#62;
&#60;code&#62;&#38;#39;between&#38;#39; =&#38;gt; &#38;#39;&#38;lt;span class=&#38;quot;between&#38;quot;&#38;gt;&#124;&#38;lt;/span&#38;gt;&#38;#39;,&#60;/code&#62; and &#60;code&#62;$output .= $between . &#38;#39;&#38;lt;span class=&#38;quot;link-desc&#38;quot;&#38;gt;&#38;#39; . $desc . &#38;#39;&#38;lt;/span&#38;gt;&#38;#39;;&#60;/code&#62;&#60;br /&#62;
Instead of the defaults:&#60;br /&#62;
&#60;code&#62;between&#38;#39; =&#38;gt; &#38;quot;\n&#38;quot;,&#60;/code&#62; and &#60;code&#62;$output .= $between . $desc;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Can it be done through functions.php?&#60;/p&#62;
&#60;p&#62;Thanks loads in advanced!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
