<?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>Adjustment &#8211; Content Views Pro</title>
	<atom:link href="https://contentviewspro.com/documentation/cats/adjustment/feed/" rel="self" type="application/rss+xml" />
	<link>https://contentviewspro.com/documentation</link>
	<description>Most Popular Filter &#38; Grid Plugin For WordPress</description>
	<lastBuildDate>Sat, 06 Apr 2024 03:36:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Hide the &#8220;No posts found&#8221; message</title>
		<link>https://contentviewspro.com/documentation/article/hide-view-no-posts-found/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Wed, 01 Feb 2017 11:02:59 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1916</guid>

					<description><![CDATA[Since Content Views 3.7.0 When using our shortcode, you can hide this message by: When using our blocks, please do the same in Layout >> When No Posts Found. This way works for each view/block. To hide for all views/blocks, please check the solutions below. Content Views 3.6.4 and before Thank you,]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Since Content Views 3.7.0</h2>



<p>When using our shortcode, you can hide this message by:</p>



<ul class="wp-block-list">
<li>select the &#8220;Show custom text&#8221; for Display Settings >> Others >> When No Posts Found</li>



<li>leave the text field empty/blank</li>
</ul>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="484" height="153" src="https://contentviewspro.com/documentation/wp-content/uploads/2024/04/image-3.png" alt="" class="wp-image-5892" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2024/04/image-3.png 484w, https://contentviewspro.com/documentation/wp-content/uploads/2024/04/image-3-300x95.png 300w" sizes="(max-width: 484px) 100vw, 484px" /></figure>



<p></p>



<p>When using our blocks, please do the same in Layout >> When No Posts Found.</p>



<p><span style="text-decoration: underline;">This way works for each view/block. To hide for all views/blocks, please check the solutions below.</span></p>



<h2 class="wp-block-heading">Content Views 3.6.4 and before</h2>



<ul class="wp-block-list">
<li>To hide that message, please use this CSS:<br><pre style="font-size: 13px;">.pt-cv-no-post {display:none}<br></pre><br><p>With Pro version, please add the code to <strong>Custom CSS</strong> field in the Content Views >> Settings page.<br>With Free version, please check <a href="https://contentviewspro.com/documentation/article/add-custom-css-content-views-free-version/">this document about adding custom CSS</a>.</p><br></li>



<li>To prevent completely that message from being shown, please add this code to file <strong>functions.php</strong> of your active theme:<br><pre style="font-size: 13px;">// Content Views Pro - Disable empty result<br>add_filter( 'pt_cv_hide_empty_result', '__return_true' );<br></pre><br></li>
</ul>



<p>Thank you,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Change the &#8220;No posts found&#8221; message</title>
		<link>https://contentviewspro.com/documentation/article/change-no-posts-found-message/</link>
		
		<dc:creator><![CDATA[CVP]]></dc:creator>
		<pubDate>Tue, 22 Aug 2017 05:14:45 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1974</guid>

					<description><![CDATA[Since Content Views 3.7.0 When using our shortcode, you can change this message in Display Settings &#62;&#62; Others: When using our blocks in Gutenberge editor, you can change this text in the Layout panel: Content Views 3.6.4 and before To customize that message, please add this code to file functions.php of your active theme: // &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/change-no-posts-found-message/"> <span class="screen-reader-text">Change the &#8220;No posts found&#8221; message</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Since Content Views 3.7.0</h2>



<p>When using our shortcode, you can change this message in <span class="prokeys-snippet-text">Display Settings &gt;&gt; Others</span>:</p>



<figure class="wp-block-image size-full"><img decoding="async" width="802" height="230" src="https://contentviewspro.com/documentation/wp-content/uploads/2024/04/image.png" alt="" class="wp-image-5835" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2024/04/image.png 802w, https://contentviewspro.com/documentation/wp-content/uploads/2024/04/image-300x86.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2024/04/image-768x220.png 768w" sizes="(max-width: 802px) 100vw, 802px" /></figure>



<p></p>



<p>When using our blocks in Gutenberge editor, you can change this text in the <strong>Layout</strong> panel:</p>



<figure class="wp-block-image size-full"><img decoding="async" width="278" height="50" src="https://contentviewspro.com/documentation/wp-content/uploads/2024/04/image-2.png" alt="" class="wp-image-5837"/></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="272" height="169" src="https://contentviewspro.com/documentation/wp-content/uploads/2024/04/image-1.png" alt="" class="wp-image-5836"/></figure>



<p></p>



<h2 class="wp-block-heading">Content Views 3.6.4 and before</h2>



<p>To customize that message, please add this code to file <strong>functions.php</strong> of your active theme:</p>



<pre class="wp-block-preformatted" style="font-size:13px">// Content Views Pro - Change the "No posts found." message
add_filter( 'pt_cv_content_no_post_found_text', 'cvp_theme_no_post_found_text', 100, 1 );
function cvp_theme_no_post_found_text( $args ) {

	$args = 'Custom text here';

	// In case you want to set custom text for specific views
	global $pt_cv_id;
	if ( $pt_cv_id === 'VIEW_ID_1' ) {
		$args = 'Custom text';
	}
	if ( $pt_cv_id === 'VIEW_ID_2' ) {
		$args = 'Custom text';
	}
	// End

	return $args;
}
</pre>



<p>(please replace <strong>VIEW_ID_1, VIEW_ID_2</strong> with <a href="https://contentviewspro.com/documentation/article/what-is-id-of-a-view/">ID of your View</a>)</p>



<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Change loading icon for pagination, Pinterest layout&#8230;</title>
		<link>https://contentviewspro.com/documentation/article/change-loading-icon-for-pagination-pinterest-layout/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Tue, 12 Jul 2016 08:46:15 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=880</guid>

					<description><![CDATA[To use your custom loading icon for pagination, Pinterest layout&#8230; please add this code to file functions.php of your active theme: // Content Views Pro - Change loading icon add_filter( 'pt_cv_loading_image_url', 'cvp_theme_loading_image_url', 100, 1 ); function cvp_theme_loading_image_url( $args ) { $args = 'URL_OF_YOUR_IMAGE'; return $args; } To change the size of loading icon, Please add &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/change-loading-icon-for-pagination-pinterest-layout/"> <span class="screen-reader-text">Change loading icon for pagination, Pinterest layout&#8230;</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>To use your custom loading icon for pagination, Pinterest layout&#8230; please add this code to file <strong>functions.php</strong> of your active theme:</p>
<pre style="font-size:13px">
// Content Views Pro - Change loading icon
add_filter( 'pt_cv_loading_image_url', 'cvp_theme_loading_image_url', 100, 1 );
function cvp_theme_loading_image_url( $args ) {
	$args = 'URL_OF_YOUR_IMAGE';
	return $args;
}
</pre>
<p>To change the size of loading icon, Please add this code to <strong>Custom CSS</strong> field in Content Views >> Settings page:</p>
<pre style="font-size:13px">
.pt-cv-spinner {
    width: 30px !important;
    height: 30px !important;
}
</pre>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Add category/tag/taxonomy term to HTML class of posts in grid</title>
		<link>https://contentviewspro.com/documentation/article/add-taxonomy-term-slug-category-tag-custom-to-posts-class/</link>
		
		<dc:creator><![CDATA[CVP]]></dc:creator>
		<pubDate>Tue, 10 Oct 2017 08:41:12 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=2319</guid>

					<description><![CDATA[To add taxonomy term slug (category, tag, custom) as HTML class of the wrapper div of each item in the grid, please add this code to file functions.php of your active theme: // Content Views Pro - Add taxonomy term name to post's class add_filter( 'pt_cv_content_item_class', 'cvp_theme_term_name_as_class', 100, 2 ); function cvp_theme_term_name_as_class( $args, $post_id ) &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/add-taxonomy-term-slug-category-tag-custom-to-posts-class/"> <span class="screen-reader-text">Add category/tag/taxonomy term to HTML class of posts in grid</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>To add taxonomy term slug (category, tag, custom) as HTML class of the wrapper div of each item in the grid, please add this code to file <strong>functions.php</strong> of your active theme:</p>
<pre style="font-size:13px">
// Content Views Pro - Add taxonomy term name to post's class
add_filter( 'pt_cv_content_item_class', 'cvp_theme_term_name_as_class', 100, 2 );
function cvp_theme_term_name_as_class( $args, $post_id ) {
	$taxonomies	 = get_taxonomies( '', 'names' );
	$terms		 = wp_get_object_terms( $post_id, $taxonomies );
	foreach ( $terms as $term ) {
		$args[] = sanitize_html_class( "cvp-term-{$term->taxonomy}-{$term->slug}" );
	}

	return $args;
}
</pre>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Show PDF media file as embed object</title>
		<link>https://contentviewspro.com/documentation/article/show-pdf-media-file-embed-object/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Tue, 22 Nov 2016 04:01:57 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=2589</guid>

					<description><![CDATA[Content Views Pro helps you to show any WordPress media files easily. If you have PDF files, WordPress will try to create a thumbnail image on uploading process. In case it couldn&#8217;t create a thumbnail, a small icon will be displayed when you show thumbnail of the PDF files. To replace the thumbnail image or &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/show-pdf-media-file-embed-object/"> <span class="screen-reader-text">Show PDF media file as embed object</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>Content Views Pro helps you to show any WordPress media files easily.<br />
If you have PDF files, WordPress will try to create a thumbnail image on uploading process. In case it couldn&#8217;t create a thumbnail, a small icon will be displayed when you show thumbnail of the PDF files.</p>
<p>To replace the thumbnail image or icon by an embedded object (which shows the full content of the PDF file), 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 - Show PDF media as embed object
add_filter( 'pt_cv_attachment_thumbnail', 'cvp_theme_pdf_preview', 100, 3 );
function cvp_theme_pdf_preview( $attachment, $post, $dimensions ) {
	$pdf = wp_get_attachment_url( $post-&gt;ID );
	if ( strpos( $pdf, '.pdf' ) !== false ) {
		$attachment = sprintf( '&lt;object data=&quot;%1$s&quot; type=&quot;application/pdf&quot; width=&quot;100%%&quot; height=&quot;100%%&quot;&gt;&lt;p&gt;This browser does not support PDFs. Please &lt;a href=&quot;%1$s&quot;&gt;Download file&lt;/a&gt;.&lt;/p&gt;&lt;/object&gt;', esc_url( $pdf ) );
	}

	return $attachment;
}
</pre>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Social buttons &#8211; use custom icon</title>
		<link>https://contentviewspro.com/documentation/article/social-buttons-use-custom-icon/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Wed, 13 Jul 2016 09:39:27 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=887</guid>

					<description><![CDATA[Content Views Pro uses a set of icons for social networks. To use your own icons, please add this code to Custom CSS field in Content Views >> Settings page: .pt-cv-social-buttons a {background-repeat: no-repeat !important; background-size: contain !important; background-position: unset !important;} .pt-cv-social-facebook {background: url(YOUR_FACEBOOK_IMAGE_URL) !important} .pt-cv-social-twitter {background: url(YOUR_TWITTER_IMAGE_URL) !important} .pt-cv-social-googleplus {background: url(YOUR_GOOGLEPLUS_IMAGE_URL) !important} .pt-cv-social-linkedin {background: &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/social-buttons-use-custom-icon/"> <span class="screen-reader-text">Social buttons &#8211; use custom icon</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>Content Views Pro uses a set of icons for social networks. To use your own icons, please add this code to <strong>Custom CSS</strong> field in Content Views >> Settings page:</p>
<pre style="font-size:13px">
.pt-cv-social-buttons a {background-repeat: no-repeat !important; background-size: contain !important; background-position: unset !important;}
.pt-cv-social-facebook {background: url(YOUR_FACEBOOK_IMAGE_URL) !important}
.pt-cv-social-twitter {background: url(YOUR_TWITTER_IMAGE_URL) !important}
.pt-cv-social-googleplus {background: url(YOUR_GOOGLEPLUS_IMAGE_URL) !important}
.pt-cv-social-linkedin {background: url(YOUR_LINKEDIN_IMAGE_URL) !important}
.pt-cv-social-pinterest {background: url(YOUR_PINTEREST_IMAGE_URL) !important}
</pre>
<p>then <strong>replace above uppercase texts with the URL of your icons</strong>.</p>
<p>Best regards,</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>
		<item>
		<title>Display posts right to left (RTL)</title>
		<link>https://contentviewspro.com/documentation/article/display-posts-right-left-rtl/</link>
		
		<dc:creator><![CDATA[CVP]]></dc:creator>
		<pubDate>Mon, 10 Apr 2017 02:39:33 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1928</guid>

					<description><![CDATA[Content Views helps you to show posts easily. Normally, posts are displayed from left to right. To display posts from right to left in Grid layout, please add this custom CSS: #pt-cv-view-VIEWID .pt-cv-content-item { float: right !important; } (Please replace VIEWID with ID of your View) Best regards,]]></description>
										<content:encoded><![CDATA[<p>Content Views helps you to show posts easily. Normally, posts are displayed from left to right.<br />
To display posts from right to left in Grid layout, please add this custom CSS:</p>
<pre style="font-size:13px">
#pt-cv-view-VIEWID .pt-cv-content-item {
    float: right !important;
}
</pre>
<p>(Please replace <strong>VIEWID</strong> with ID of your View)</p>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Disable post&#8217;s link (prevent click on title, thumbnail image)</title>
		<link>https://contentviewspro.com/documentation/article/disable-posts-link-prevent-the-click-action-of-title-thumbnail-image/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Mon, 12 Jun 2017 02:11:13 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1628</guid>

					<description><![CDATA[With Content Views lite version, you can show posts in current tab or new tab, by selecting an option under Display Settings >> Others >> Open Item In. With Content Views Pro version, you will have more abilities to control the link&#8217;s behavior, one of them is None (no link, no action), which disables post &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/disable-posts-link-prevent-the-click-action-of-title-thumbnail-image/"> <span class="screen-reader-text">Disable post&#8217;s link (prevent click on title, thumbnail image)</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>With Content Views lite version, you can show posts in current tab or new tab, by selecting an option under <code>Display Settings >> Others >> Open Item In</code>.<br />
With Content Views Pro version, you will have more abilities to control the link&#8217;s behavior, one of them is <strong>None (no link, no action)</strong>, which disables post links and prevent visitors from clicking on post title, thumbnail or read more button:</p>
<p><img loading="lazy" decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/06/Content-Views-Pro-disable-post-links.png" alt="Content Views Pro - disable post links" width="421" height="200" class="alignnone size-full wp-image-1629" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/06/Content-Views-Pro-disable-post-links.png 421w, https://contentviewspro.com/documentation/wp-content/uploads/2017/06/Content-Views-Pro-disable-post-links-300x143.png 300w" sizes="auto, (max-width: 421px) 100vw, 421px" /></p>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Customize icon for each post category, tag, taxonomy term</title>
		<link>https://contentviewspro.com/documentation/article/customize-icon-for-each-post-category-tag-taxonomy-term/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Mon, 12 Jun 2017 07:22:55 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1635</guid>

					<description><![CDATA[With Content Views Pro, you can show the icon before categories list of post. But if you want to use custom icon for each category, or tag&#8230; Please add this code to file functions.php of your active theme: // Content Views Pro - customize icon of taxonomy add_filter( 'pt_cv_post_term_html', 'cvp_theme_custom_tax_icon', 10, 2 ); function cvp_theme_custom_tax_icon( &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/customize-icon-for-each-post-category-tag-taxonomy-term/"> <span class="screen-reader-text">Customize icon for each post category, tag, taxonomy term</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>With Content Views Pro, you can show the icon before categories list of post.<br />
But if you want to use custom icon for each category, or tag&#8230; Please add this code to file <strong>functions.php</strong> of your active theme:</p>
<pre style="font-size:13px">
// Content Views Pro - customize icon of taxonomy
add_filter( 'pt_cv_post_term_html', 'cvp_theme_custom_tax_icon', 10, 2 );
function cvp_theme_custom_tax_icon( $args, $term ) {
	$icon = '';
	if ( $term-&gt;slug === 'blog' ) {
		$icon = 'icon_html_here';
	}
	if ( $term-&gt;slug === 'videos' ) {
		$icon = 'icon_html_here';
	}

	$href		 = esc_url( get_term_link( $term, $term-&gt;taxonomy ) );
	$term_name	 = esc_attr( $term-&gt;name );
	$class		 = esc_attr( PT_CV_PREFIX . 'tax-' . $term-&gt;slug );
	$args		 = &quot;&lt;a href='$href' title='$term_name' class='$class'&gt;{$icon}{$term-&gt;name}&lt;/a&gt;&quot;;

	return $args;
}
</pre>
<p>Please replace <strong>blog, videos</strong> with slugs of your categories, replace <strong>icon_html_here</strong> with an image, or span HTML&#8230;</p>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
