<?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>post title &#8211; Content Views Pro</title>
	<atom:link href="https://contentviewspro.com/documentation/tags/post-title/feed/" rel="self" type="application/rss+xml" />
	<link>https://contentviewspro.com/documentation</link>
	<description>Most Popular Filter &#38; Grid Plugin For WordPress</description>
	<lastBuildDate>Wed, 25 Sep 2024 09:23:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Use custom Title for posts</title>
		<link>https://contentviewspro.com/documentation/article/use-custom-title-posts-view/</link>
		
		<dc:creator><![CDATA[CVP]]></dc:creator>
		<pubDate>Fri, 01 Sep 2017 04:45:38 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=2123</guid>

					<description><![CDATA[This feature only works with PRO version. Content Views helps you to show any information of WordPress posts easily: title, content, thumbnail, author, category&#8230; By default, Content Views will display the post&#8217;s title. To show a custom title for posts in our shortcode/block (and keep the original post&#8217;s title unchanged), please do as follow: Add &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/use-custom-title-posts-view/"> <span class="screen-reader-text">Use custom Title for posts</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<blockquote><p>This feature only works with PRO version.</p></blockquote>
<p>Content Views helps you to show any information of WordPress posts easily: title, content, thumbnail, author, category&#8230; By default, Content Views will display the post&#8217;s title.</p>
<p>To show a custom title for posts in our shortcode/block (and keep the original post&#8217;s title unchanged), please do as follow:</p>
<ul>
<li>Add new custom field: with name is <code>cvp_custom_title</code> and value is the custom title you want to show (<a href="http://contentviewspro.com/documentation/article/add-new-custom-field-wordpress-post/" target="_blank" rel="noopener noreferrer">here is how to add custom field</a>)
<p><img decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2024/06/chrome_Td0CmY9jFq.gif" /></li>
</ul>
<div style="display:none">
<p>If you are using Content Views Pro version &lt;= 5.7.1, it requires another step: please add this code to file <strong>functions.php</strong> of your active theme:</p>
<pre style="font-size: 13px;">// Content Views Pro - Show custom title
add_filter( 'pt_cv_field_title_result', 'cvp_theme_replace_title_by_ctf', 100, 3 );
function cvp_theme_replace_title_by_ctf( $title, $fargs, $post ) {
	$meta = get_post_meta( $post-&gt;ID );

	$custom_field = 'cvp_custom_title';
	if ( !empty( $meta[ $custom_field ][ 0 ] ) ) {
		$title = $meta[ $custom_field ][ 0 ];
	}

	return $title;
}
</pre>
<blockquote><p>Notice: If you want to use another custom field to replace post title, please replace <code>cvp_custom_title</code> in above code with name of your field.</p></blockquote>
</div>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Show overlay text on image permanently</title>
		<link>https://contentviewspro.com/documentation/article/overlay-image-title-content-permanently/</link>
		
		<dc:creator><![CDATA[CVP]]></dc:creator>
		<pubDate>Tue, 22 Aug 2017 03:45:47 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1954</guid>

					<description><![CDATA[Content Views Pro helps you to show title, content&#8230; on hover image easily (read more here). It also can help you to overlay image with title, content&#8230; permanently without any line of code. Notice: The Animation tab is created for the first-generation layouts (&#8220;Grid&#8221; to &#8220;One and others&#8221;). For next-generation layouts (&#8220;Grid 2&#8221; to &#8220;Big &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/overlay-image-title-content-permanently/"> <span class="screen-reader-text">Show overlay text on image permanently</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>Content Views Pro helps you to show title, content&#8230; on hover image easily (<a href="//contentviewspro.com/documentation/article/display-content-on-hover/" target="_blank" rel="noopener noreferrer">read more here</a>).<br />
It also can help you to overlay image with title, content&#8230; permanently without any line of code.</p>
<blockquote>
<div><b>Notice:</b> The Animation tab is created for the first-generation layouts (&#8220;Grid&#8221; to &#8220;One and others&#8221;).<br />
For next-generation layouts (&#8220;Grid 2&#8221; to &#8220;Big Post 2&#8221;), the Animation tab is disabled. To create an overlay layout, please use Overlay layouts (Overlay 1, 2, &#8230;, 8).</div>
</blockquote>
<p>In <strong>Animation</strong> tab, please select &#8220;<strong>Always</strong>&#8221; option for the “Overlay Thumbnail With Text” setting.</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-1955" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/08/CVPro-overlay-permanently.png" alt="Content Views Pro - overlay permanently" width="564" height="371" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/08/CVPro-overlay-permanently.png 564w, https://contentviewspro.com/documentation/wp-content/uploads/2017/08/CVPro-overlay-permanently-300x197.png 300w" sizes="(max-width: 564px) 100vw, 564px" /></p>
<p>You can customize the position of the overlay easily with the &#8220;Overlay Position&#8221; setting.</p>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Add &#8220;NEW&#8221; icon after recent post title</title>
		<link>https://contentviewspro.com/documentation/article/show-new-icon-recent-posts-title/</link>
		
		<dc:creator><![CDATA[CVP]]></dc:creator>
		<pubDate>Tue, 18 Jul 2017 03:34:06 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1829</guid>

					<description><![CDATA[You might want to show a &#8220;NEW&#8221; icon after your latest posts&#8217; title. Please add this code to file functions.php of your active theme: // Content Views Pro - Show custom icon in title add_filter( 'pt_cv_field_title_result', 'cvp_theme_title_new_icon', 100, 3 ); function cvp_theme_title_new_icon( $title, $fargs, $post ) { $hours = 24; /* TODO: change this value &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/show-new-icon-recent-posts-title/"> <span class="screen-reader-text">Add &#8220;NEW&#8221; icon after recent post title</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>You might want to show a &#8220;NEW&#8221; icon after your latest posts&#8217; title.<br />
Please add this code to file <strong>functions.php</strong> of your active theme:</p>
<pre style="font-size:13px">
// Content Views Pro - Show custom icon in title
add_filter( 'pt_cv_field_title_result', 'cvp_theme_title_new_icon', 100, 3 );
function cvp_theme_title_new_icon( $title, $fargs, $post ) {
	$hours	 = 24; /* TODO: change this value to number of hours to calculate */
	$diff	 = time() - mysql2date( 'U', $post-&gt;post_date );

	if ( $hours * 60 * 60 &gt; $diff ) {		
		// 1. To show a &quot;New&quot; icon/image, remove the 2. below
		$title = $title . &quot;&lt;img src='IMAGE_URL_HERE' /&gt;&quot;;
		
		// 2. To show a &quot;New&quot; text, remove the 1. above
		$title = $title . &quot;&lt;span style='padding:2px 8px;color:#fff;background:red;margin-left:5px;'&gt;New&lt;/span&gt;&quot;;
	}

	return $title;
}
</pre>
<p>Thank you,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Remove Private, Protected prefix from WordPress post title</title>
		<link>https://contentviewspro.com/documentation/article/remove-private-protected-prefix-wordpress-post-title/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Tue, 27 Jun 2017 04:55:25 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1726</guid>

					<description><![CDATA[If you show private or protected WordPress posts in View, you will see these prefixes in post title. They are injected by WordPress core. To remove these prefixes, please add this code to file functions.php of your WordPress theme: // Remove Private, Protected prefix from post Title add_filter( 'private_title_format', 'cv_disable_title_prefix', 99, 2 ); add_filter( 'protected_title_format', &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/remove-private-protected-prefix-wordpress-post-title/"> <span class="screen-reader-text">Remove Private, Protected prefix from WordPress post title</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>If you show private or protected WordPress posts in View, you will see these prefixes in post title. They are injected by WordPress core.<br />
To remove these prefixes, please add this code to file <strong>functions.php</strong> of your WordPress theme:</p>
<pre style="font-size:13px">
// Remove Private, Protected prefix from post Title
add_filter( 'private_title_format', 'cv_disable_title_prefix', 99, 2 );
add_filter( 'protected_title_format', 'cv_disable_title_prefix', 99,2  );
function cv_disable_title_prefix( $format, $post ) {
	$format = '%s';
	return $format;
}

</pre>
<p>Thank you,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Limit the Title length</title>
		<link>https://contentviewspro.com/documentation/article/limit-title-length/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Wed, 15 Mar 2017 15:40:32 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1465</guid>

					<description><![CDATA[With Content Views Pro, you can easy to limit Title length by the setting under Display Settings >> Fields settings >> Title: Best regards,]]></description>
										<content:encoded><![CDATA[<p>With Content Views Pro, you can easy to limit Title length by the setting under Display Settings >> Fields settings >> Title:</p>
<p><img decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Content-Views-Pro-limit-title-length.png" alt="" width="406" height="121" class="alignnone size-full wp-image-1466" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Content-Views-Pro-limit-title-length.png 406w, https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Content-Views-Pro-limit-title-length-300x89.png 300w" sizes="(max-width: 406px) 100vw, 406px" /></p>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Change HTML tag for Title</title>
		<link>https://contentviewspro.com/documentation/article/change-html-tag-for-title/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Mon, 14 Dec 2015 04:56:48 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=703</guid>

					<description><![CDATA[You can change HTML tag for Title easily in Display Settings >> Fields Settings >> Title: Best regards,]]></description>
										<content:encoded><![CDATA[<p>You can change HTML tag for Title easily in Display Settings >> Fields Settings >> Title:</p>
<p><img decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/12/Content-Views-change-HTML-tag-for-Title.png" alt="" width="457" height="273" class="alignnone size-full wp-image-1495" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/12/Content-Views-change-HTML-tag-for-Title.png 457w, https://contentviewspro.com/documentation/wp-content/uploads/2015/12/Content-Views-change-HTML-tag-for-Title-300x179.png 300w" sizes="(max-width: 457px) 100vw, 457px" /></p>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Use custom/external URL for grid items</title>
		<link>https://contentviewspro.com/documentation/article/link-to-external-custom-url/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Sun, 26 Jul 2015 08:43:36 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=257</guid>

					<description><![CDATA[This feature is only available in the Pro version. To use a custom URL for posts in our grid/list, you only need to create a custom field for the post, with field name is cv_custom_url, and value is the custom URL you want to use: (read more about adding a custom field) That is simple. &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/link-to-external-custom-url/"> <span class="screen-reader-text">Use custom/external URL for grid items</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[
<blockquote><p>This feature is only available in the <a href="https://www.contentviewspro.com/#buynow" target="_blank" rel="noopener noreferrer">Pro version</a>.</p></blockquote>


<p>To use a custom URL for posts in our grid/list, you only need to <strong>create a custom field for the post</strong>, with field name is <strong>cv_custom_url</strong>, and value is the custom URL you want to use:</p>
<p><img loading="lazy" decoding="async" class="alignleft size-full wp-image-258" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/add-custom-field.png" alt="add-custom-field" width="837" height="229" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/add-custom-field.png 837w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/add-custom-field-300x82.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/add-custom-field-768x210.png 768w" sizes="auto, (max-width: 837px) 100vw, 837px" /></p>
<p>(<a href="http://contentviewspro.com/documentation/article/add-new-custom-field-wordpress-post/" target="_blank" rel="noopener noreferrer">read more about adding a custom field</a>)</p>
<p>That is simple.</p>
<p>For some advanced cases, please check below sections.</p>
<hr />
<h2 id="for_media"># For Media Files</h2>
<p>If you are selecting the <strong>Media</strong> option in Filter Settings &gt; Content Type, and want to add custom URL for media files, please follow following steps:</p>
<ul>
<li>Install &amp; activate the <a href="https://wordpress.org/plugins/advanced-custom-fields/" target="_blank" rel="nofollow noopener noreferrer">&#8220;Advanced Custom Fields&#8221; plugin</a></li>
<li>From the <strong>Custom Fields</strong> admin screen, click the <strong>Add New</strong> button to create a new field group</li>
<li>Click the <strong>Add Field</strong> button, set<br />
<code>cv_custom_url</code><br />
as value of <strong>Field Label</strong> and <strong>Field Name</strong>:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-3096" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/acf-custom-url-field.png" alt="acf custom url field" width="864" height="333" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/acf-custom-url-field.png 864w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/acf-custom-url-field-300x116.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/acf-custom-url-field-768x296.png 768w" sizes="auto, (max-width: 864px) 100vw, 864px" /></li>
<li>Under Location, select <code>Attachment</code> for first select-box:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-3095" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/acf-custom-field-for-attachment.png" alt="acf custom field for attachment" width="857" height="216" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/acf-custom-field-for-attachment.png 857w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/acf-custom-field-for-attachment-300x76.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/acf-custom-field-for-attachment-768x194.png 768w" sizes="auto, (max-width: 857px) 100vw, 857px" /></li>
<li>Click the <strong>Publish</strong> button</li>
<li>From the <strong>Media</strong> admin screen, click to edit each media file, then set your custom URL as value of <code>cv_custom_url</code> field:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-3097" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/cvp-set-custom-url-for-media.png" alt="cvp set custom url for media" width="548" height="583" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/cvp-set-custom-url-for-media.png 548w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/cvp-set-custom-url-for-media-282x300.png 282w" sizes="auto, (max-width: 548px) 100vw, 548px" /></li>
</ul>
<h2 id="original"># Keep The Original Link (To The Post Page)</h2>
<p>By adding the <code>cv_custom_url</code> custom field to a post, these elements:</p>
<ul>
<li>title</li>
<li>thumbnail</li>
<li>read-more button</li>
</ul>
<p>of the post in View will link to the custom/external URL.</p>
<p>To keep original link (to the post page) for any elements, please add this code to file <strong>functions.php</strong> in the theme&#8217;s folder:</p>
<pre style="font-size: 13px;">// Content Views Pro - Keep the original URL
add_filter( 'pt_cv_field_href', 'cvp_theme_keep_post_url', 9999, 2 );
function cvp_theme_keep_post_url( $href, $post ) {
	$traces = debug_backtrace( 2 );

	$keep_post_url = array();

	// Remove below # to keep original URL for Title
	# $keep_post_url[] = '_field_title';
	
	// Remove below # to keep original URL for Thumbnail
	# $keep_post_url[] = '_field_thumbnail';
	
	// Remove below # to keep original URL for "Read more" button
	# $keep_post_url[] = '_field_content';

	foreach ( $traces as $trace ) {
		if ( in_array( $trace[ 'function' ], $keep_post_url ) ) {
			$href = get_permalink( $post );
		}
	}

	return $href;
}
</pre>
<h2 id="customfield"># Use another custom field as custom link</h2>
<p>If you set the link using another custom field, you can use that custom link by adding this code to file <strong>functions.php</strong> in the theme&#8217;s folder:</p>
<pre style="font-size: 13px;">// Content Views Pro - use custom field value as custom link
add_filter( 'pt_cv_field_href', 'cvp_theme_use_custom_url_by_customfield', 100, 2 );
function cvp_theme_use_custom_url_by_customfield( $href, $post ) {
	$custom_url = get_post_meta( $post-&gt;ID, 'CUSTOM_FIELD_HERE', true );
	if ( $custom_url ) {
		$href = $custom_url;
	}

	return $href;
}
</pre>
<p>If you set custom link by the &#8220;<strong>WP Gallery Custom Links</strong>&#8221; plugin, replaced <code>CUSTOM_FIELD_HERE</code> by <code>_gallery_link_url</code>.</p>
<p>If you set custom link by the &#8220;<strong>Page Links To</strong>&#8221; plugin, replaced <code>CUSTOM_FIELD_HERE</code> by <code>_links_to</code>.</p>
<p>Otherwise, replace <code>CUSTOM_FIELD_HERE</code> with the name/key of the custom field.</p>
<h2 id="shortcode"># Use shortcode as value of &#8220;cv_custom_url&#8221;</h2>
<p>If the value of the &#8220;cv_custom_url&#8221; field is not an URL, but an shortcode, please this code to file <strong>functions.php</strong> in the theme&#8217;s folder:</p>
<pre style="font-size: 13px;">// Content Views Pro - use shortcode as custom link
add_filter( 'pt_cv_field_href', 'cvp_theme_use_custom_url_by_customfield_sc', 999, 2 );
function cvp_theme_use_custom_url_by_customfield_sc( $href, $post ) {
	$custom_url = get_post_meta( $post-&gt;ID, 'cv_custom_url', true );
	if ( $custom_url ) {
		$href = do_shortcode( $custom_url );
	}

	return $href;
}
</pre>
<p>Best regards,</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Change display order/position of fields (show Title above Thumbnail, etc.)</title>
		<link>https://contentviewspro.com/documentation/article/change-display-order-location-title-above-thumbnail-date-above-content-etc/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Sat, 25 Jul 2015 14:51:10 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=220</guid>

					<description><![CDATA[The default vertical display order is Thumbnail Title Content Meta fields (taxonomy, date, author, comment) With Pro version, you can change the display order by drag and drop the checkboxes in Display Settings >> Fields Settings: Best regards,]]></description>
										<content:encoded><![CDATA[<p>The default vertical display order is</p>
<ul>
<li>Thumbnail</li>
<li>Title</li>
<li>Content</li>
<li>Meta fields (taxonomy, date, author, comment)</li>
</ul>
<p>With Pro version, you can change the display order by drag and drop the checkboxes in <code>Display Settings >> Fields Settings</code>:</p>
<p><img loading="lazy" decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/drag-fields.png" alt="drag-fields" width="689" height="211" class="alignleft size-full wp-image-221" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/drag-fields.png 689w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/drag-fields-300x92.png 300w" sizes="auto, (max-width: 689px) 100vw, 689px" /></p>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
