<?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: views</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 06:38:53 +0000</pubDate>

<item>
<title>helgatheviking on "Using views after comments vith plugin"</title>
<link>http://themeshaper.com/forums/topic/using-views-after-comments-vith-plugin#post-27175</link>
<pubDate>Sun, 27 May 2012 21:03:13 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">27175@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;instead of filtering you could try the override&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_postheader(){
  echo &#38;#39;bacon&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>soren on "Using views after comments vith plugin"</title>
<link>http://themeshaper.com/forums/topic/using-views-after-comments-vith-plugin#post-27170</link>
<pubDate>Sun, 27 May 2012 20:35:19 +0000</pubDate>
<dc:creator>soren</dc:creator>
<guid isPermaLink="false">27170@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Looks like it echos as you said, could not find &#34;get_the_views&#34; only this part of the php file!&#60;/p&#62;
&#60;p&#62;With the setting right now it drops into the div#content and I can not do much with it from there...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;### Function: Display The Post Views
function the_views($display = true, $prefix = &#38;#39;&#38;#39;, $postfix = &#38;#39;&#38;#39;, $always = false) {
	$post_views = intval(post_custom(&#38;#39;views&#38;#39;));
	$views_options = get_option(&#38;#39;views_options&#38;#39;);
	if ($always &#124;&#124; should_views_be_displayed($views_options)) {
		$output = $prefix.str_replace(&#38;#39;%VIEW_COUNT%&#38;#39;, number_format_i18n($post_views), $views_options[&#38;#39;template&#38;#39;]).$postfix;
		if($display) {
			echo apply_filters(&#38;#39;the_views&#38;#39;, $output);
		} else {
			return apply_filters(&#38;#39;the_views&#38;#39;, $output);
		}
	}
	elseif (!$display) {
		return &#38;#39;&#38;#39;;
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>helgatheviking on "Using views after comments vith plugin"</title>
<link>http://themeshaper.com/forums/topic/using-views-after-comments-vith-plugin#post-27167</link>
<pubDate>Sun, 27 May 2012 19:15:20 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">27167@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;the_views() probably echos instead of returns.  is there an equivalent get_the_views() that will return the value?&#60;/p&#62;
&#60;p&#62;otherwise your filter looks correct
&#60;/p&#62;</description>
</item>
<item>
<title>soren on "Using views after comments vith plugin"</title>
<link>http://themeshaper.com/forums/topic/using-views-after-comments-vith-plugin#post-27157</link>
<pubDate>Sat, 26 May 2012 18:16:16 +0000</pubDate>
<dc:creator>soren</dc:creator>
<guid isPermaLink="false">27157@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello!&#60;/p&#62;
&#60;p&#62;My problem is that I am trying to use the &#34;wp-postviews&#34; plugin and put the result after the comments-link above the post-title.&#60;/p&#62;
&#60;p&#62;The instructions for the plugin says:&#60;/p&#62;
&#60;p&#62;= Usage =&#60;br /&#62;
1. Open &#60;code&#62;wp-content/themes/&#38;lt;YOUR THEME NAME&#38;gt;/index.php&#60;/code&#62;&#60;br /&#62;
2. You may place it in archive.php, single.php, post.php or page.php also.&#60;br /&#62;
3. Find: &#60;code&#62;&#38;lt;?php while (have_posts()) : the_post(); ?&#38;gt;&#60;/code&#62;&#60;br /&#62;
4. Add Anywhere Below It (The Place You Want The Views To Show): &#60;code&#62;&#38;lt;?php if(function_exists(&#38;#39;the_views&#38;#39;)) { the_views(); } ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I try to put this in the function.php in thematic childtheme but I have problems to style it and it gets stucked to the left corner and push the entrydate and postcomments to the right. I want to be on the right side with some padding or margin for equal distance&#60;/p&#62;
&#60;p&#62;The code is below, I try to put the plugin code inside where I wanted it to be, but I does not work for me...&#60;/p&#62;
&#60;p&#62;Any advices for make it work or a better way doing it?&#60;/p&#62;
&#60;p&#62;You can see my problem at &#60;a href=&#34;http://www.digitalworkflow.se&#34; rel=&#34;nofollow&#34;&#62;www.digitalworkflow.se&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
Soren&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// ********** START move Post meta above title START **********

function meta_split_title($thepostheader) {
global $post;
if(is_page() &#124;&#124; is_404()){
$thepostheader = thematic_postheader_posttitle();
} else {
$thepostheader = thematic_postmeta_entrydate() .thematic_postfooter_postcomments(); the_views();
//comment out... if(function_exists(&#38;#39;the_views&#38;#39;)) { the_views();} ...comment out//
$thepostheader .= thematic_postheader_posttitle() . thematic_postmeta_authorlink();
}
return $thepostheader;
}
add_filter(&#38;#39;thematic_postheader&#38;#39;, &#38;#39;meta_split_title&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
