<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>archives &#8211; Thesis Docs</title>
	<atom:link href="https://diythemes.com/thesis/rtfm/tag/archives/feed/" rel="self" type="application/rss+xml" />
	<link>https://diythemes.com/thesis/rtfm</link>
	<description>Documentation, How-tos, and Best Practices for the Thesis WordPress Theme System</description>
	<lastBuildDate>Wed, 28 Aug 2019 17:32:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>Create and Customize an Archives Page</title>
		<link>https://diythemes.com/thesis/rtfm/create-customize-archives-page/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Fri, 12 Feb 2010 14:25:02 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[archive list]]></category>
		<category><![CDATA[archives]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[page template]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=679</guid>

					<description><![CDATA[<ul>
<li>Create the Archives Page</li>
<li>Customize the Archives Page</li>
</ul>]]></description>
										<content:encoded><![CDATA[<p>An Archives Page displays a summary of all the available archives on your site (i.e., a list of all your monthly archives by month, a list of all your category archives by category, and so on).</p>
<h3 id="create">Create the Archives Page <a href="#create" title="Link to this section">∞</a></h3>
<ol>
<li>Go to <em>Pages > Add New</em>.</li>
<li>Give a title to the Page (such as <em>Archives</em>).</li>
<li>Under <em>Attributes > Template</em>, choose &#8220;Archive&#8221; from the drop down selector.</li>
<li>Publish the Page.</li>
</ol>
<h3 id="customize">Customize the Archives Page <a href="#customize" title="Link to this section">∞</a></h3>
<p>By default, the Thesis Archives Page will display two types of archives lists: the first by month, and the second by category. If you wish to customize this page, you will need to replace the default display, using a custom function and the <code>thesis_hook_archives_template</code> hook.</p>
<p>Here is an example of a custom function (based on the Thesis default code for this template) which adds post counts next to each of the archives in each list:</p>
<pre class="php">
function my_archives_template() {
?&gt;
	&lt;h3 class=&quot;top&quot;&gt;&lt;?php _e('By Month:', 'thesis'); ?&gt;&lt;/h3&gt;
		&lt;ul&gt;
			&lt;?php wp_get_archives('type=monthly&amp;show_post_count=1'); ?&gt;
		&lt;/ul&gt;
	&lt;h3&gt;&lt;?php _e('By Category:', 'thesis'); ?&gt;&lt;/h3&gt;
		&lt;ul&gt;
			&lt;?php wp_list_categories('title_li=0&amp;show_count=1'); ?&gt;
		&lt;/ul&gt;
&lt;?php
}

remove_action('thesis_hook_archives_template', 'thesis_archives_template');
add_action('thesis_hook_archives_template', 'my_archives_template');
</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Set Title Tags</title>
		<link>https://diythemes.com/thesis/rtfm/set-title-tags/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Wed, 24 Jun 2009 13:40:25 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[archives]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[character separator]]></category>
		<category><![CDATA[home page]]></category>
		<category><![CDATA[pages]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[title]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=389</guid>

					<description><![CDATA[<ul>
<li>Home Page</li>
<li>All Other Pages</li>
<li>Character Separator in Titles</li>
<li>Category Archive Pages</li>
</ul>]]></description>
										<content:encoded><![CDATA[<p>The <code>&lt;title&gt;</code> tag is part of the <code>&lt;head&gt;</code> section of a web page, and contains the specific name of that web page; for example:</p>
<pre class="html">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Thesis Theme for WordPress&lt;/title&gt;
&lt;/head&gt;
</pre>
<p>The title tag is used by other applications, like browsers and search engines. In a browser, it produces the text you see in the title bar (at the very top of your browser window), as well as the default name for any bookmarks created for the page. Search engines reference the title tag when listing the page in results.</p>
<p>Thesis provides you with different options for the title tag, depending on the type of page involved.</p>
<h3 id="home_page">Home Page <a href="#home_page" title="Link to this section">∞</a></h3>
<p>By default, Thesis will use the <em>site name</em> and <em>site tagline</em> (divided by <a href="#character_separator">the character separator</a>) as your home page&#8217;s title tag. The values for <em>site name</em> and <em>site tagline</em> correspond to the values you&#8217;ve entered for &#8220;Site Title&#8221; and &#8220;Tagline&#8221;, respectively, on the WordPress <em>General Settings</em> subpanel.</p>
<p>To override this default behavior, go to <strong>Site Options</strong> and expand the &#8220;Document Head&#8221; section (under <em>Home Page SEO</em>). Enter your desired title tag value in the <code>home page &lt;title&gt; tag</code> field.</p>
<p><strong>Note</strong>: If you&#8217;re using Static Front and Posts Pages (set in the <em>Reading Settings</em> subpanel), the <em>Home Page SEO</em> settings will be applied to <strong>both</strong> of those pages. However, you can use the &#8220;Custom Title Tag&#8221; field on the <em>Edit Page</em> subpanel, under &#8220;SEO Details and Additional Style&#8221;, to override these settings for each page.</p>
</li>
</ul>
<h3 id="other_pages">All Other Pages <a href="#other_pages" title="Link to this section">∞</a></h3>
<p>By default, all of your post and page title tags will consist of the title of that particular post or page (which you assign when creating the post or page in WordPress). You can override this behavior, and further extend your on-page SEO, by entering your own desired value for the title tag in the &#8220;Custom Title Tag&#8221; field. This field is located on the <em>Edit page</em> subpanel, under &#8220;SEO Details and Additional Style&#8221;.</p>
<p>If you wish, you can also elect to append your site name to the <strong>default</strong> post and page titles. Go to  <strong>Site Options</strong> and expand the &#8220;Title Tag Settings&#8221; section (under <em>Document Head</em>), and select <code>Append site name to page titles</code>.</p>
<p><strong>Note</strong>: This option also applies to system-generated pages of your site, such as Archives, Search, etc.</p>
<p><!--p><strong>Note</strong>: If you elect to use the "Custom Title Tag" under "SEO Details and Additional Style", this option will be disregarded for that particular post or page title.</p--></li>
</ul>
<h3 id="character_separator">Character Separator in Titles <a href="#character_separator" title="Link to this section">∞</a></h3>
<p>Where multiple elements are displayed in a title tag (for example, the site name and tagline), Thesis inserts a default character separator (<code>—</code>) between them.</p>
<p>You can specify your own preferred character to be the separator. Go to <strong>Site Options</strong> and expand the &#8220;Title Tag Settings&#8221; section (under <em>Document Head</em>); then enter your desired character separator in the <code>Character separator in titles</code> field. </p>
<p><!--p><strong>Note</strong>: If you elect to use the "Custom Title Tag" under "SEO Details and Additional Style", this option will be disregarded for that particular post or page title.</p--></li>
</ul>
<h3 id="category_tag_archives">Category and Tag Archive Pages <a href="#category_tag_archives" title="Link to this section">∞</a></h3>
<p>By default, Thesis uses the category or tag name in the title tag for each category or tag archive page. You can override this default behavior by editing the individual category or tag in WordPress, where you can then enter your desired title tag value in the <code>Title Tag &lt;title&gt;</code> field.</p>
<h3>Related Resources:</h3>
<ul>
<li><a href="https://diythemes.com/thesis-options/" title="Video Introduction to the Thesis Options">Video Introduction to the Thesis Options</a></li>
<li><a href="https://diythemes.com/in-post-options/" title="Video Introduction to the Thesis In-post Options">Video Introduction to the Thesis In-post Options</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Customize the Post Byline</title>
		<link>https://diythemes.com/thesis/rtfm/customize-post-byline/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Tue, 07 Apr 2009 02:01:23 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[archives]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[byline]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[headline]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[posted in]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=22</guid>

					<description><![CDATA[<ul><li>Hide Number of Comments</li>
<li>Hide Post Categories</li>
<li>Move Post Categories to First Line</li>
<li>Move Entire Byline to After Post</li>
<li>Add "Posted In" Before Category</li>
<li>Add Time Stamp After Published On Date</li>
<li>Move Date to Before Title</li>
<li>Display an Avatar Next to Byline</li>
<ul><li>Avatars for Multiple Authors</li></ul>
<li>Hide Byline on Archives &#038; Category Pages Only</li>
</ul>]]></description>
										<content:encoded><![CDATA[<p>Thesis offers several options for controlling the information which displays in your byline. To view and/or change these options, navigate to <strong>Design Options</strong>, then look under <em>Display Options : Bylines</em>.</p>
<p>In some cases, you may need to use custom functions to achieve the results you want. Here are some examples of how to make changes to the byline, using both the standard options and custom functions.</p>
<h2 id="hide_comm">Hide Number of Comments <a href="#hide_comm" title="Link to this section">∞</a></h2>
<p>In the <strong>Design Options</strong> panel, under <em>Display Options : Bylines</em>, uncheck the &#8220;Show number of comments in byline&#8221; option.</p>
<h2 id="hide_cat">Hide Post Categories <a href="#hide_cat" title="Link to this section">∞</a></h2>
<p>In the <strong>Design Options</strong> panel, under <em>Display Options : Bylines</em>, uncheck the &#8220;Show post categories&#8221; option.</p>
<h2 id="move_cat">Move Post Categories to First Line <a href="#move_cat" title="Link to this section">∞</a></h2>
<p>In the <strong>Design Options</strong> panel, under <em>Display Options : Bylines</em>, uncheck the &#8220;Show post categories&#8221; option. Then, place this code in <code>custom_functions.php</code>:</p>
<pre>
function add_to_byline() {
  if (!is_page())
    echo ' in &lt;span&gt;' . get_the_category_list(',') . '&lt;/span&gt;';
}

add_action('thesis_hook_byline_item', 'add_to_byline', '99');
</pre>
<h2 id="after_post">Move Entire Byline to After Post <a href="#after_post" title="Link to this section">∞</a></h2>
<p>In the <strong>Design Options</strong> panel, under <em>Display Options : Bylines</em>, uncheck <strong>all</strong> options. Then, place this code in <code>custom_functions.php</code>:</p>
<pre>
function custom_byline() { ?&gt;

&lt;p class=&quot;headline_meta&quot;&gt;&lt;?php thesis_author(); ?&gt; on &lt;abbr class=&quot;published&quot; title=&quot;&lt;?php echo get_the_time('Y-m-d'); ?&gt;&quot;&gt;&lt;?php echo get_the_time(get_option('date_format')); ?&gt;&lt;/abbr&gt;
 &amp;middot; &lt;span&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;#comments&quot; rel=&quot;nofollow&quot;&gt;
 &lt;?php comments_number(__('0 comments', 'thesis'), __('1 comment', 'thesis'), __('% comments', 'thesis')); ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;headline_meta&quot;&gt;&lt;?php the_tags('tagged as &lt;span&gt;', ', ', '&lt;/span&gt;'); ?&gt;
 in &lt;span&gt;&lt;?php echo get_the_category_list(','); ?&gt;&lt;/span&gt;&lt;/p&gt;

&lt;?php }

add_action('thesis_hook_after_post', 'custom_byline');
</pre>
<h2 id="posted_in">Add &#8220;Posted In&#8221; Before Category <a href="#posted_in" title="Link to this section">∞</a></h2>
<p>In the <strong>Design Options</strong> panel, under <em>Display Options : Bylines</em>, uncheck the &#8220;Show post categories&#8221; option. Then, place this code in <code>custom_functions.php</code>:</p>
<pre>
function add_to_byline() { ?&gt;
    &lt;/p&gt;&lt;p class=&quot;headline_meta&quot;&gt;&lt;?php echo __('Posted in:', 'thesis') . ' &lt;span&gt;' . get_the_category_list(',') . '&lt;/span&gt;'; ?&gt;
&lt;?php }
add_action('thesis_hook_byline_item', 'add_to_byline', '99');
</pre>
<h2 id="time_stamp">Add Time Stamp After Published On Date <a href="#time_stamp" title="Link to this section">∞</a></h2>
<p>In the <strong>Design Options</strong> panel, under <em>Display Options : Bylines</em>, uncheck the “Show published-on date in post byline” and &#8220;Show number of comments in byline&#8221; options. Then, place this code in <code>custom_functions.php</code>:</p>
<pre>
function custom_byline() {
  if (!is_page()) { ?&gt;
  &lt;p class=&quot;headline_meta&quot;&gt;&lt;abbr class=&quot;published&quot; title=&quot;&lt;?php echo get_the_time('Y-m-d H:i'); ?&gt;&quot;&gt;&lt;?php echo get_the_time(get_option('date_format')); ?&gt; &lt;?php the_time('G:i a'); ?&gt;&lt;/abbr&gt;
 &amp;middot; &lt;span&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;#comments&quot; rel=&quot;nofollow&quot;&gt;
 &lt;?php comments_number(__('0 comments', 'thesis'), __('1 comment', 'thesis'), __('% comments', 'thesis')); ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;?php }
}

add_action('thesis_hook_after_headline', 'custom_byline');
</pre>
<p>Note: This code excludes Pages from having the custom byline applied; you will need to remove the extra conditional code if you wish to use it on Pages as well.</p>
<h2 id="move_date">Move Date to Before Title <a href="#move_date" title="Link to this section">∞</a></h2>
<p>In the <strong>Design Options</strong> panel, under <em>Display Options : Bylines</em>, uncheck the &#8220;Show published-on date in post byline&#8221; and &#8220;Show published-on date in page byline&#8221; options. Then, place this code in <code>custom_functions.php</code>:</p>
<pre>
function add_to_byline() { ?&gt;
   &lt;p class=&quot;headline_meta&quot;&gt;&lt;?php echo (''). ' &lt;span&gt;' .get_the_time('F j, Y') . '&lt;/span&gt;&lt;/p&gt;'; ?&gt;
&lt;?php }

add_action('thesis_hook_before_headline', 'add_to_byline', '1');
</pre>
<h2 id="avatar">Display an Avatar Next to Byline <a href="#avatar" title="Link to this section">∞</a></h2>
<p>Place this code in <code>custom_functions.php</code> (replacing <code>http://www.example.com/path/to/your/images/avatar.gif</code> with the URL to your avatar):</p>
<pre>
/* byline avatar */
function byline_avatar() {
echo '&lt;img class=&quot;byline_avatar&quot; src=&quot;http://www.example.com/path/to/your/images/avatar.gif&quot; /&gt;';
}

add_action('thesis_hook_before_headline', 'byline_avatar');
</pre>
<p>Then, place this code in <code>custom.css</code> (adjust margin value as desired):</p>
<pre>
/*avatar styles*/
.custom .byline_avatar {
   float: left;
   margin-right: 0.5em;
   margin-bottom: 0.5em;
}
</pre>
<h3 id="avatar_ma">Avatars for Multiple Authors <a href="#avatar_ma" title="Link to this section">∞</a></h3>
<p>Place this code in <code>custom_functions.php</code> (replace <code>50</code> with the desired pixel size):</p>
<pre>
/* byline avatars */
function byline_avatars() {
  echo get_avatar(get_the_author_id(), 50);
}

add_action('thesis_hook_before_headline', 'byline_avatars');
</pre>
<p>Then, place this code in <code>custom.css</code> (adjust margin value as desired):</p>
<pre>
/*avatar styles*/
.custom .avatar {
   float: left;
   margin-right: 0.5em;
   margin-bottom: 0.5em;
}
</pre>
<h2 id="arch_cat">Hide Byline on Archives &#038; Category Pages Only <a href="#arch_cat" title="Link to this section">∞</a></h2>
<p>Place this code in <code>custom_functions.php</code>:</p>
<pre>
function custom_body_class($classes) {
 if (is_archive() || is_category()) {
    $classes[] .= 'hide_meta';
 }
    return $classes;
}
add_filter('thesis_body_classes', 'custom_body_class');
</pre>
<p>Then, place this code in <code>custom.css</code>:</p>
<pre>
/* hide meta */
.custom.hide-meta .headline_meta {display:none;}
</pre>
<h2>Related Resources:</h2>
<ul>
<li><code>thesis_hook_byline_item</code></li>
<li><a href="https://codex.wordpress.org/Conditional_Tags">WordPress conditional tags</a></li>
<li><a href="https://www.php.net/manual/en/function.date.php">Date formats reference &#8211; PHP Manual</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
