<?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>author &#8211; Content Views Pro</title>
	<atom:link href="https://contentviewspro.com/documentation/tags/author/feed/" rel="self" type="application/rss+xml" />
	<link>https://contentviewspro.com/documentation</link>
	<description>Most Popular Filter &#38; Grid Plugin For WordPress</description>
	<lastBuildDate>Fri, 29 Dec 2023 04:13:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Show the word &#8220;By&#8221; before Author name</title>
		<link>https://contentviewspro.com/documentation/article/show-word-author-name/</link>
		
		<dc:creator><![CDATA[CVP]]></dc:creator>
		<pubDate>Tue, 19 Sep 2017 09:20:58 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=2209</guid>

					<description><![CDATA[To show the word &#8220;By&#8221; before Author name, please add this code to file functions.php of your active theme: // Content Views Pro - Show the word "By" before Author name add_filter( 'pt_cv_field_meta_prefix_text', 'cvp_theme_field_meta_prefix_author', 100, 2 ); function cvp_theme_field_meta_prefix_author( $args, $meta_field ) { if ( $meta_field === 'author' ) { $args = 'By ' . &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/show-word-author-name/"> <span class="screen-reader-text">Show the word &#8220;By&#8221; before Author name</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>To show the word &#8220;By&#8221; before Author name, please add this code to file <strong>functions.php</strong> of your active theme:</p>
<pre style="font-size:13px">
// Content Views Pro - Show the word "By" before Author name
add_filter( 'pt_cv_field_meta_prefix_text', 'cvp_theme_field_meta_prefix_author', 100, 2 );
function cvp_theme_field_meta_prefix_author( $args, $meta_field ) {
	if ( $meta_field === 'author' ) {
		$args = 'By ' . $args;
	}

	return $args;
}
</pre>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Show posts of logged in user (user sees his/her own posts)</title>
		<link>https://contentviewspro.com/documentation/article/show-posts-current-logged-user-users-see-posts/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Fri, 28 Apr 2017 05:32:34 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1524</guid>

					<description><![CDATA[Content Views Pro helps you to show WordPress posts of currently logged in user easily. For Block Please edit the block. In the Query panel, under Author section, select the Show his/her posts option for the For Logged In User setting. For View Shortcode Under the Filter Settings tab, Advance section, please:&#8211; select Author&#8211; select &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/show-posts-current-logged-user-users-see-posts/"> <span class="screen-reader-text">Show posts of logged in user (user sees his/her own posts)</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[
<p>Content Views Pro helps you to show WordPress posts of currently logged in user easily.</p>



<h2 class="wp-block-heading">For Block</h2>



<p>Please edit the block. </p>



<p>In the <strong>Query</strong> panel, under <strong>Author</strong> section, select the <strong>Show his/her posts</strong> option for the <strong>For Logged In User</strong> setting.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="281" height="355" src="https://contentviewspro.com/documentation/wp-content/uploads/2023/12/image.png" alt="" class="wp-image-5556" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2023/12/image.png 281w, https://contentviewspro.com/documentation/wp-content/uploads/2023/12/image-237x300.png 237w" sizes="(max-width: 281px) 100vw, 281px" /></figure>



<h2 class="wp-block-heading">For View Shortcode</h2>



<p>Under the Filter Settings tab, Advance section, please:<br>&#8211; select <strong>Author</strong><br>&#8211; select the <strong>Show his/her posts</strong> option for the <strong>For Logged In User</strong> setting<br>like this:<br><img decoding="async" width="449" height="358" class="alignnone size-full wp-image-1525" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/04/CVPro-show-posts-of-current-user.png" alt="" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/04/CVPro-show-posts-of-current-user.png 449w, https://contentviewspro.com/documentation/wp-content/uploads/2017/04/CVPro-show-posts-of-current-user-300x239.png 300w" sizes="(max-width: 449px) 100vw, 449px" /></p>



<p></p>



<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Show all authors of Co-Authors Plus plugin</title>
		<link>https://contentviewspro.com/documentation/article/show-authors-co-authors-plus-plugin/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Thu, 20 Apr 2017 03:31:19 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1512</guid>

					<description><![CDATA[Please add this code to file functions.php of your active theme: // Content Views Pro - Show authors by Co-Authors Plus plugin add_filter( 'pt_cv_field_meta_author_html', 'cvp_theme_field_meta_author_html_coauthor', 100, 2 ); function cvp_theme_field_meta_author_html_coauthor( $args, $post ) { // 1. To show author name and link if ( function_exists( 'coauthors_posts_links' ) ) { $args = coauthors_posts_links( null, null, null, &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/show-authors-co-authors-plus-plugin/"> <span class="screen-reader-text">Show all authors of Co-Authors Plus plugin</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>Please add this code to file <strong>functions.php</strong> of your active theme:</p>
<pre style="font-size:13px">
// Content Views Pro - Show authors by Co-Authors Plus plugin
add_filter( 'pt_cv_field_meta_author_html', 'cvp_theme_field_meta_author_html_coauthor', 100, 2 );
function cvp_theme_field_meta_author_html_coauthor( $args, $post ) {

	// 1. To show author name and link
	if ( function_exists( 'coauthors_posts_links' ) ) {
		$args = coauthors_posts_links( null, null, null, null, false );
	}
	// end 1.

	// 2. To show author avatar and link
	if ( function_exists( 'get_coauthors' ) ) {
		$arr = array();
		foreach ( get_coauthors() as $coauthor ) {
			$avatar	 = get_avatar( $coauthor-&gt;user_email, '60' );
			$link	 = get_author_posts_url( $coauthor-&gt;ID, $coauthor-&gt;user_nicename );
			$arr[]	 = sprintf( '&lt;a href=&quot;%s&quot;&gt;%s&lt;/a&gt;', esc_url( $link ), $avatar );
		}

		$args = $arr ? implode( '', $arr ) : $args;
	}
	// end 2.

	return $args;
}
</pre>
<blockquote><p>Depending on your need, please remove the 1. or 2. block in above code.</p></blockquote>
<p>Thank you,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Show author name without hyperlink (disable author link)</title>
		<link>https://contentviewspro.com/documentation/article/show-author-name-without-hyperlink/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Mon, 17 Oct 2016 10:38:29 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=2398</guid>

					<description><![CDATA[Content Views helps you to show author of post easily without coding. By default, author name with hyperlink to the author page will be shown. To show author name without link, please add this code to file functions.php in the theme&#8217;s folder (or install this plugin Code Snippets then add this code to the &#8220;Code&#8221; &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/show-author-name-without-hyperlink/"> <span class="screen-reader-text">Show author name without hyperlink (disable author link)</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>Content Views helps you to show author of post easily without coding.<br />
By default, author name with hyperlink to the author page will be shown. </p>
<p>To show author name without link, please add this code to file <strong>functions.php</strong> in the theme&#8217;s folder (or install this plugin <a href="https://wordpress.org/plugins/code-snippets/" rel="nofollow">Code Snippets</a> then add this code to <a href="https://ps.w.org/code-snippets/assets/screenshot-2.png" rel="nofollow">the &#8220;Code&#8221; textarea</a>):</p>
<ul>
<li>For a single View:
<pre style="font-size:13px">
// Content Views Pro - Author name without hyperlink
add_filter( 'pt_cv_field_meta_author_html', 'cvp_theme_author_no_link', 100, 2 );
function cvp_theme_author_no_link( $args, $post ) {
	global $pt_cv_id;
	if ( $pt_cv_id === 'VIEW_ID' ) {
		$args = sprintf( '<span>%s</span>', get_the_author_meta( 'display_name', $post->post_author ) );
	}

	return $args;
}
</pre>
<p>(replace <strong>VIEW_ID</strong> with ID of the View which you want to apply).</li>
<li>For all Views:
<pre style="font-size:13px">
// Content Views Pro - Author name without hyperlink
add_filter( 'pt_cv_field_meta_author_html', 'cvp_theme_author_no_link_all', 100, 2 );
function cvp_theme_author_no_link_all( $args, $post ) {
    $args = sprintf( '<span>%s</span>', get_the_author_meta( 'display_name', $post->post_author ) );
    return $args;
}
</pre>
</li>
</ul>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
