<?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>bbPress support forums Tag: Template Tags</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Tag: Template Tags</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 05:58:45 +0000</pubDate>

<item>
<title>rosebud on "Decomposing "author_title" Template Tag"</title>
<link>http://bbpress.org/forums/topic/decomposing-author_title-template-tag#post-12519</link>
<pubDate>Sun, 09 Dec 2007 23:03:36 +0000</pubDate>
<dc:creator>rosebud</dc:creator>
<guid isPermaLink="false">12519@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Anyone willing to lend me a hand here? Have I been clear enough? Should I describe a little bit further what I want to accomplish?
&#60;/p&#62;</description>
</item>
<item>
<title>rosebud on "Decomposing "author_title" Template Tag"</title>
<link>http://bbpress.org/forums/topic/decomposing-author_title-template-tag#post-12476</link>
<pubDate>Fri, 07 Dec 2007 19:53:54 +0000</pubDate>
<dc:creator>rosebud</dc:creator>
<guid isPermaLink="false">12476@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I am trying to get the User Role on the posts page (that links to the profile) next to the poster name to display, on hover, a span containing this text: &#34;View profile of *user*&#34;. I want to make it clear that clicking on the user title (role) will send the visitor to the user's profile.&#60;/p&#62;
&#60;p&#62;To accomplish this in a very simple way I need to add a span inside the a tag, like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;a&#38;gt;User Title&#38;lt;span&#38;gt;View profile of &#38;lt;?php post_author(); ?&#38;gt;&#38;lt;/span&#38;gt;&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And then apply simple css rules:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;a span {display: none;}

a:hover span {display: block;}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thus, I need to decompose the template tag &#34;post_author_title&#34; given that this tag already outputs the  whole link, so I can't add the span inside it.&#60;/p&#62;
&#60;p&#62;What I have to do is find a template tag that outputs the User Title in just plain text, and I then recreate the link. I found &#34;get_post_author_title&#34; but I don't know what it does. When I put it instead of &#34;post_author_title&#34; nothing renders (no text, nor link, nor error).&#60;/p&#62;
&#60;p&#62;I also tried doing this just by css with this markup:&#60;br /&#62;
&#60;code&#62;&#38;lt;a&#38;gt;User Title&#38;lt;/a&#38;gt;&#38;lt;span&#38;gt;&#38;lt;/span&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;And playing with the selectors + and &#38;gt;:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;a + span {display: none;} ---&#38;gt; This actually works

a:hover + span {display: block;} ----&#38;gt; This does not...&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I hope I have been clear with what I want to do. Probably this is a trivial matter and someone could just set me on the right direction.&#60;/p&#62;
&#60;p&#62;Thanks very much for your continuous support.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
