<?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>meta fields &#8211; Content Views Pro</title>
	<atom:link href="https://contentviewspro.com/documentation/tags/meta-fields/feed/" rel="self" type="application/rss+xml" />
	<link>https://contentviewspro.com/documentation</link>
	<description>Most Popular Filter &#38; Grid Plugin For WordPress</description>
	<lastBuildDate>Tue, 02 Jan 2024 10:10:11 +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 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 custom field, meta field&#8230; of the current post/page</title>
		<link>https://contentviewspro.com/documentation/article/show-custom-field-meta-field-current-post/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Thu, 09 Mar 2017 12:28:30 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1441</guid>

					<description><![CDATA[Content Views Pro helps you to show custom field, meta field… of current post in single post page with 2 steps: create a new View, select custom fields and meta fields you want to show. Especially, you might need to select the option All / Multi post types for Filter Settings > Content Type to &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/show-custom-field-meta-field-current-post/"> <span class="screen-reader-text">Show custom field, meta field&#8230; of the current post/page</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>Content Views Pro helps you to show custom field, meta field… of current post in single post page with 2 steps:</p>
<ol>
<li>create a new View, <a href="https://contentviewspro.com/documentation/article/how-to-show-wordpress-custom-field/">select custom fields</a> and meta fields you want to show.<br />
<br />
Especially, you might need to select the option <code>All / Multi post types</code> for Filter Settings > Content Type to match the post type correctly and automatically.<br />
<img fetchpriority="high" decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Show-all-post-types.png" alt="" width="636" height="165" class="alignnone size-full wp-image-4120" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Show-all-post-types.png 636w, https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Show-all-post-types-300x78.png 300w" sizes="(max-width: 636px) 100vw, 636px" />
</li>
<li>show the View:
<ul style="margin-top:15px">
<li>To show for specific posts only, please edit these posts, then add below shortcode to text editor:
<pre style="font-size:13px">
&#91;pt_view id="VIEW_ID" post_id="GET_CURRENT"&#93;
</pre>
</li>
<li>To show for each of all posts, 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>):
<pre style="font-size:13px">
// Content Views Pro - show related posts for each post
add_filter( 'the_content', 'cvp_theme_show_info_of_current_post', 999 );
function cvp_theme_show_info_of_current_post( $content ) {
	if ( is_single() ) {
		ob_start();
		echo do_shortcode( '&#91;pt_view id="VIEW_ID" post_id="GET_CURRENT"&#93;' );
		$content .= ob_get_clean();
	}
	return $content;
}
</pre>
</li>
</ul>
<p>Please replace <strong>VIEW_ID</strong> in above code with <a href="https://contentviewspro.com/documentation/article/what-is-id-of-a-view/">ID of the View</a> in step 1.</p>
</li>
</ol>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Show specific taxonomies in Meta fields (show category and hide tag&#8230;)</title>
		<link>https://contentviewspro.com/documentation/article/show-only-category-and-not-tag-in-meta-fields/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Tue, 19 Jul 2016 01:56:17 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=908</guid>

					<description><![CDATA[With Content Views Pro, you can select which taxonomies to display terms in Meta fields output easily. To do it, under Display Settings >> Fields Settings >> Meta Fields >> Taxonomy, please select the Let me choose option, then select the taxonomies you want to show: You can select one or multiple taxonomies. You also &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/show-only-category-and-not-tag-in-meta-fields/"> <span class="screen-reader-text">Show specific taxonomies in Meta fields (show category and hide tag&#8230;)</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>With Content Views Pro, you can select which taxonomies to display terms in Meta fields output easily.<br />
To do it, under <code>Display Settings >> Fields Settings >> Meta Fields >> Taxonomy</code>, please select the <strong>Let me choose</strong> option, then select the taxonomies you want to show:</p>
<p><img decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2016/07/Meta-field-Choose-taxonomy-1.png" alt="" width="459" height="185" class="alignnone size-full wp-image-4114" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2016/07/Meta-field-Choose-taxonomy-1.png 459w, https://contentviewspro.com/documentation/wp-content/uploads/2016/07/Meta-field-Choose-taxonomy-1-300x121.png 300w" sizes="(max-width: 459px) 100vw, 459px" /></p>
<p>You can select one or multiple taxonomies. You also can drag &#038; drop to change display order of selected taxonomies.</p>
<div style="display:none">
<h3># For Free version</h3>
<p>If you are using free version, to customize which taxonomies to show, you can add custom filter to <code>pt_cv_taxonomies_to_show</code> with one parameter. It will require your PHP, WordPress knowledge.
</div>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
