<?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>Popular Features &#8211; Content Views Pro</title>
	<atom:link href="https://contentviewspro.com/documentation/cats/popular-features/feed/" rel="self" type="application/rss+xml" />
	<link>https://contentviewspro.com/documentation</link>
	<description>Most Popular Filter &#38; Grid Plugin For WordPress</description>
	<lastBuildDate>Thu, 12 Mar 2026 05:18:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Enable Lazyload for image, iframe</title>
		<link>https://contentviewspro.com/documentation/article/enable-lazyload-image-iframe/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Wed, 15 Feb 2017 18:02:37 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1189</guid>

					<description><![CDATA[This feature is only available in the Pro version. Lazy loading for image and iframe will improve performance of page a lot. To enable it, please check the option &#8220;Enable&#8221; for &#8220;Lazy Load&#8221; setting (under Display Settings >> Fields settings >> Thumbnail section). Best regards,]]></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>Lazy loading for image and iframe will improve performance of page a lot.<br />
To enable it, please check the option &#8220;Enable&#8221; for &#8220;Lazy Load&#8221; setting (<em>under Display Settings >> Fields settings >> Thumbnail section</em>).</p>
<p><img fetchpriority="high" decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/02/Lazyload1.png" alt="" width="591" height="313" class="alignnone size-full wp-image-1199" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/02/Lazyload1.png 591w, https://contentviewspro.com/documentation/wp-content/uploads/2017/02/Lazyload1-300x159.png 300w" sizes="(max-width: 591px) 100vw, 591px" /></p>
<p>Best regards,</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Replace Layout &#8211; show Grid layout on Blog, Category, Search&#8230; pages</title>
		<link>https://contentviewspro.com/documentation/article/completely-replace-wordpress-layout-by-content-views-pro-layout/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Sun, 17 Aug 2014 10:07:35 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com//?p=114</guid>

					<description><![CDATA[This feature is only available in the Pro version. TABLE OF CONTENTS: Introduction How to do? Customize sort order Overwrite the result Which pages can I replace the posts layout? How to use a different layout for each category? How to replace layout for only a specific category? How to show sub-categories on the parent &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/completely-replace-wordpress-layout-by-content-views-pro-layout/"> <span class="screen-reader-text">Replace Layout &#8211; show Grid layout on Blog, Category, Search&#8230; pages</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<style>.entry-content ul.nav-tabs{margin-left:0}h2{margin-top:1.2em!important}h3{margin:10px 0!important}p{margin-bottom:1em}.step{font-size:1.1em}blockquote{margin-left:0;margin-bottom:20px;}blockquote p,blockquote pre{margin-bottom:0;font-size:.9em}ul{margin-bottom:5px;}#collapse_f6ee-47a8 .panel-title{margin:10px}h4{margin: 0 0 20px !important;}.tableofcontent{line-height: 16px; text-transform: capitalize;}mark{background:yellow!important}</style>
<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>
<div>
<h4>TABLE OF CONTENTS:</h4>
<ul class="tableofcontent">
<li><a href="#intro">Introduction</a></li>
<li><a href="#howto">How to do?</a></li>
<li><a href="#sorting">Customize sort order</a></li>
<li><a href="#overwrite">Overwrite the result</a></li>
<li><a href="#which">Which pages can I replace the posts layout?</a></li>
<li><a href="#custom">How to use a different layout for each category?</a></li>
<li><a href="#specific">How to replace layout for only a specific category?</a></li>
<li><a href="#subcategories">How to show sub-categories on the parent category page?</a></li>
<li><a href="#notwork">Notices</a></li>
</ul>
</div>
<h2 id="intro">Introduction</h2>
<p>Content Views Pro helps you to display WordPress content anywhere easily. But it can help you to do even more things.</p>
<p>The Blog, Category, Search results, Archives… are special pages of each WordPress site. The posts layout in these pages is managed by the active theme. To show Grid in these pages, you will need to modify theme&#8217;s files. That is a complicated task, requires coding skills and knowledge about HTML, PHP and WordPress.</p>
<p>The <strong>Replace Layout</strong> feature of Content Views Pro will help you to show Grid (or another layout) in Blog, Category, Search results, Archives… pages easily, without any line of code. You will save a lot of time, effort and hassle.</p>
<p style="text-align: center;"><img decoding="async" class="align-center" src="https://d1s48tdzk2qtjc.cloudfront.net/20161202/7-replace-layout-min.png" alt="Replace layout - Content Views Pro for WordPress" /></p>
<hr />
<h2 id="howto">How to do?</h2>
<p>There are only 2 simple steps to show Grid in your Blog, Category&#8230; pages:</p>
<ol>
<li><strong>Create View to design the layout (Grid, Pinterest&#8230;)</strong><br />
This step is <mark>creating a view</mark> to set the layout you want to show your posts (<em>start at 0:30 in below video</em>).</p>
<p><mark>If you already created the view, you can skip this step.</mark> It is about selecting layout (Grid, Pinterest, Timeline&#8230;), set number of columns, customize font &amp; color, setup pagination&#8230; You have complete control over the layout to design it in your desired way.</p>
<p>Normally, you <mark style="font-size: revert;">don&#8217;t need to change any settings in &#8220;Filter Settings&#8221;</mark><span style="font-size: revert; color: var(--ast-global-color-3); background-color: var(--ast-global-color-5);"> of this View (</span><mark style="font-size: revert;">leave &#8220;Filter Settings&#8221; as default</mark><span style="font-size: revert; color: var(--ast-global-color-3); background-color: var(--ast-global-color-5);">), because Content Views Pro will get the posts of current page automatically.<br />
</span>For example: when replacing layout of a category page, Content Views Pro will get the posts list of that current category automatically.</li>
<li id="step2" style="margin-top: 30px;"><strong>Use the View on archive pages</strong><br />
In Admin dashboard, click <em>Content Views &gt;&gt; Replace Layout</em>.<br />
<img decoding="async" class="alignnone size-full wp-image-6014" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Replace-Layout-Menu.png" alt="" width="196" height="225" /></p>
<p>In the Replace Layout page:</p>
<ul>
<li>select checkbox of the WordPress page you want to replace layout</li>
<li>select the View (that you created in Step 1 above) in the dropdown</li>
</ul>
<p><img decoding="async" class="alignnone size-full wp-image-1758" src="https://contentviewspro.com/documentation/wp-content/uploads/2020/12/Content-Views-Pro-Grid-layout-for-Category.png" alt="Content Views Pro - Grid layout for Category" width="633" height="374" /></li>
<li id="create-view">
<blockquote><p>For Categories (or Tags, custom taxonomies), you can select a different layout for each category (<a href="https://contentviewspro.com/documentation/article/completely-replace-wordpress-layout-by-content-views-pro-layout/#custom">read more</a>).</p></blockquote>
</li>
</ol>
<p>That&#8217;s done. You now have beautiful Grid layout in your Category pages effortlessly.</p>
<p>To disable this feature for any page, please uncheck the checkbox of that page.</p>
<hr />
<p>This video will demonstrate how to use the Replace Layout feature to show Grid in your WordPress category page:</p>
<p><iframe loading="lazy" src="//www.youtube.com/embed/MMsdHaxaLUI?hd=1&amp;vq=hd720&amp;cc_load_policy=1&amp;autohide=1&amp;showinfo=0&amp;modestbranding=1&amp;iv_load_policy=3&amp;rel=0&amp;theme=light
" width="640" height="360" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p>
<hr />
<h2 id="sorting">Customize sort order</h2>
<p>The default sort order of page will be used, to use your custom sort order, please:</p>
<ul>
<li>configure the “Sort by” of the View as you want (<a href="https://contentviewspro.com/documentation/article/how-to-sort-wordpress-posts-in-view/" target="_blank" rel="noopener noreferrer">see document</a>)</li>
<li>then select the option <strong>Use &#8220;Sort by&#8221; setting of View</strong> in the third column:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2855" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Replace-Layout-change-posts-order.png" alt="Replace Layout - change posts order" width="708" height="122" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Replace-Layout-change-posts-order.png 708w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Replace-Layout-change-posts-order-300x52.png 300w" sizes="auto, (max-width: 708px) 100vw, 708px" /></li>
</ul>
<hr />
<h2 id="overwrite">Overwrite the result</h2>
<p>By default, the returned result by WordPress for a page will be used, for example the Blog page will display posts from all categories.<br />
To overwrite this result (query posts in your custom way), please:</p>
<ul>
<li>configure the &#8220;Filter Settings&#8221; of the View as you want</li>
<li>then select the option <strong>Use &#8220;Filter Settings&#8221; of View</strong> in the third column:<img loading="lazy" decoding="async" class="alignnone size-full wp-image-3045" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Replace-Layout-overwrite-result.png" alt="Replace-Layout-overwrite-result" width="695" height="116" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Replace-Layout-overwrite-result.png 695w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Replace-Layout-overwrite-result-300x50.png 300w" sizes="auto, (max-width: 695px) 100vw, 695px" /></li>
</ul>
<hr />
<h2 id="which">Which pages can I replace the posts layout?</h2>
<p>You can replace layout in many WordPress pages:</p>
<ul>
<li>Blog page: is the default latest posts page, or the <strong><em>Posts page</em></strong> page which you selected in WordPress admin <strong><em>Settings &gt; Reading</em></strong>:<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2655" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/12/CVP-select-Blog-page-for-WordPress.png" alt="CVP - select Blog page for WordPress" width="695" height="251" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/12/CVP-select-Blog-page-for-WordPress.png 695w, https://contentviewspro.com/documentation/wp-content/uploads/2017/12/CVP-select-Blog-page-for-WordPress-300x108.png 300w" sizes="auto, (max-width: 695px) 100vw, 695px" /></li>
<li>Search results page</li>
<li>Category archive</li>
<li>Tag archive</li>
<li>Custom taxonomy archive (WooCommerce shop page, WooCommerce product categories, EDD download categories, event categories&#8230;)</li>
<li>Other archives (author, date, month, year)</li>
<li>Post type archives</li>
<li>Single post, single page, single product, single event&#8230; page</li>
</ul>
<hr />
<h2 id="custom">How to use a different layout for each category?</h2>
<p>To use a different layout for each category, please:</p>
<ul>
<li>in the <i>Content Views &gt;&gt; Replace Layout</i> page, select the Category checkbox, and select the View which you created to replace layout of most categories:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2961" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-replace-layout-of-Category-common.png" alt="CVP - replace layout of Category common View" width="651" height="84" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-replace-layout-of-Category-common.png 651w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-replace-layout-of-Category-common-300x39.png 300w" sizes="auto, (max-width: 651px) 100vw, 651px" /></li>
<li>edit the category which you want different layout (<em>click Posts &gt; Categories, mouse over the category and click <strong>Edit</strong></em>), then select the View you created for this category in the <strong>Content Views</strong> setting:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2958" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-specific-View-for-replace-category-layout.png" alt="Content Views Pro - specific View for replace category layout" width="656" height="570" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-specific-View-for-replace-category-layout.png 656w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-specific-View-for-replace-category-layout-300x261.png 300w" sizes="auto, (max-width: 656px) 100vw, 656px" /></li>
</ul>
<p>You can use different layouts for different tags, custom taxonomies too.</p>
<h2 id="specific">How to replace layout for only a specific category?</h2>
<p>If you don&#8217;t want to replace layout of all category pages but only a specific category, please:</p>
<ul>
<li>in the <i>Content Views &gt;&gt; Replace Layout</i> page, select the Category checkbox, but <strong>do not select any View</strong> (use the default option &#8220;(Select View)&#8221;)<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2955" src="https://contentviewspro.com/documentation/wp-content/uploads/2018/03/CVP-replace-layout-of-Category-default.png" alt="CVP - replace layout of Category default" width="651" height="84" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2018/03/CVP-replace-layout-of-Category-default.png 651w, https://contentviewspro.com/documentation/wp-content/uploads/2018/03/CVP-replace-layout-of-Category-default-300x39.png 300w" sizes="auto, (max-width: 651px) 100vw, 651px" /></li>
<li>edit the category which you want to replace layout, then select the View you created for this category in the <strong>Content Views</strong> setting:<br />
<img loading="lazy" decoding="async" id="select-view-for-a-term" class="alignnone size-full wp-image-2958" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-specific-View-for-replace-category-layout.png" alt="Content Views Pro - specific View for replace category layout" width="656" height="570" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-specific-View-for-replace-category-layout.png 656w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-specific-View-for-replace-category-layout-300x261.png 300w" sizes="auto, (max-width: 656px) 100vw, 656px" /></li>
</ul>
<p>You can replace layout for only a specific tag, custom taxonomy too.</p>
<h2 id="subcategories">How to show sub-categories on the parent category page?</h2>
<p>By default, WordPress will display posts on any category page.<br />
How to display sub-categories on the parent category page? Content Views Pro (since version 5.3.0) will help you to do it easily in 3 simple steps:</p>
<ol>
<li>First, in the <i>Content Views &gt;&gt; Replace Layout</i> page:
<ul>
<li>if you do not want to replace layout in sub-categories pages, please select the Category checkbox, but <strong>do not select any View</strong> (use the default option &#8220;(Select View)&#8221;):<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2955" src="https://contentviewspro.com/documentation/wp-content/uploads/2018/03/CVP-replace-layout-of-Category-default.png" alt="CVP - replace layout of Category default" width="651" height="84" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2018/03/CVP-replace-layout-of-Category-default.png 651w, https://contentviewspro.com/documentation/wp-content/uploads/2018/03/CVP-replace-layout-of-Category-default-300x39.png 300w" sizes="auto, (max-width: 651px) 100vw, 651px" /></li>
<li>if you want to replace layout in sub-categories pages, select the Category checkbox, and select the View which you created to replace layout of sub-categories:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2961" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-replace-layout-of-Category-common.png" alt="CVP - replace layout of Category common View" width="651" height="84" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-replace-layout-of-Category-common.png 651w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-replace-layout-of-Category-common-300x39.png 300w" sizes="auto, (max-width: 651px) 100vw, 651px" /></li>
</ul>
</li>
<li>Secondly, <strong>let&#8217;s create a View to show sub-categories</strong>.<br />
In that View, select the <strong>Taxonomy</strong> checkbox in Filter Settings &gt; Advance. Then select options like this:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-3120" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-show-subcategories-on-category-archive-page.png" alt="CVP - show subcategories on category archive page" width="679" height="396" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-show-subcategories-on-category-archive-page.png 679w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-show-subcategories-on-category-archive-page-300x175.png 300w" sizes="auto, (max-width: 679px) 100vw, 679px" /></li>
<li>Finally, <strong>edit each of parent categories</strong>,<br />
then <strong>select the created View in step 2 above</strong> for the <em>Content Views</em> setting:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-3129" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/cvp-select-view-for-parent-category.png" alt="cvp-select-view-for-parent-category" width="636" height="327" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/cvp-select-view-for-parent-category.png 636w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/cvp-select-view-for-parent-category-300x154.png 300w" sizes="auto, (max-width: 636px) 100vw, 636px" /></li>
</ol>
<p>These steps can be applied to category, or any custom taxonomy.</p>
<hr />
<h2 id="notwork">Notices</h2>
<blockquote><p>Above settings will not work with the themes of <code>RocketTheme</code>, please <a href="http://contentviewspro.com/documentation/article/replace-layout-in-themes-use-the-gantry-framework/">click here for the solution</a>.</p></blockquote>
<p>Thank you,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Reuse View shortcode (add parameters)</title>
		<link>https://contentviewspro.com/documentation/article/reuse-a-view/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Sun, 17 Aug 2014 10:08:00 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com//?p=116</guid>

					<description><![CDATA[This feature is only available in the Pro version. You should not reuse the views that enabled Live Filter, Shuffle Filter. Because these features don&#8217;t support the below parameters. Replace &#8220;VIEW_ID&#8221; below with ID of the View that you want to reuse. Since version 4.4.0, you can use this feature to show related posts, and &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/reuse-a-view/"> <span class="screen-reader-text">Reuse View shortcode (add parameters)</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<style>p {margin-bottom: 1em;} li {margin-bottom:5px} code {font-size:16px} blockquote {font-size: 18px} li blockquote {font-size: 16px} </style>
<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>
<blockquote><p>You should not reuse the views that enabled Live Filter, Shuffle Filter. Because these features don&#8217;t support the below parameters.</p></blockquote>
<blockquote><p>Replace &#8220;VIEW_ID&#8221; below with ID of the View that you want to reuse.</p></blockquote>
<blockquote><p>Since version 4.4.0, you can use this feature to <a href="http://contentviewspro.com/documentation/article/show-related-posts-content-views-pro/" target="_blank" rel="noopener noreferrer">show related posts</a>, and <a href="http://contentviewspro.com/documentation/article/show-custom-field-meta-field-current-post/" target="_blank" rel="noopener noreferrer">show current post&#8217;s data</a>.</p></blockquote>
<p>Reusing helps you to use an existing view for similar purposes, without creating new views. It saves you a lot of time &amp; effort.<br />
You can reuse a View by using the View shortcode with extra parameters.<br />
These are available parameters:</p>
<ul>
<li id="reuse_complex"><strong>reuse_tax_query</strong>: reuse taxonomy settings of the existing View while adding extra parameters (cat, tag, taxonomy, taxonomy2, terms, terms2).For example: You have a view VIEW1 that filters posts IN category A. If you want to show posts IN category A, but NOT IN category B, this shortcode will help:<br />
<code>[pt_view id="VIEW1" reuse_tax_query=1 cat="B" operator="NOT IN"]</code></li>
<li><strong>cat</strong>: slug, name, ID of categories to filter.For example: you have a category with name &#8220;People&#8221;, slug &#8220;people&#8221;, ID 10.<br />
To show posts in this category, you can use one of these shortcodes:<br />
<code>[pt_view id="VIEW_ID" cat="people" field="slug"]</code><br />
<code>[pt_view id="VIEW_ID" cat="People" field="name"]</code><br />
<code>[pt_view id="VIEW_ID" cat="10" field="id"]</code></li>
<li><strong>tag</strong>: slug, name, ID of tags to filter<br />
<blockquote><p>// Show 5 posts by tag slugs<br />
<code>[pt_view id="VIEW_ID" tag="foo,bar,content" limit=5]</code><br />
// Show posts by categories &amp; tags<br />
<code>[pt_view id="VIEW_ID" cat="cat1,cat2" tag="foo,bar"]</code></p></blockquote>
</li>
<li id="taxonomy-slug"><strong>taxonomy</strong>: slug of the taxonomy to filter (use <code>taxonomy2</code> for the second taxonomy).<br />
<blockquote><p>To find the slug of a taxonomy, please look at the address bar of the browser when you visit the taxonomy page in Admin area:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-1179" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-get-slug-of-taxonomy.png" alt="" width="770" height="408" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-get-slug-of-taxonomy.png 770w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-get-slug-of-taxonomy-300x159.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-get-slug-of-taxonomy-768x407.png 768w" sizes="auto, (max-width: 770px) 100vw, 770px" /></p></blockquote>
</li>
<li id="term-slug"><strong>terms</strong>: slug, name, ID of taxonomy terms (use <code>terms2</code> for terms of the second taxonomy).<br />
<blockquote><p>To find the slug of a term, please open the Category or Tag or Taxonomy page, then find value in the <strong>Slug</strong> column.</p></blockquote>
<blockquote><p>To use the assigned term of the current post, please use the value &#8220;GET_CURRENT&#8221; (<a href="https://contentviewspro.com/documentation/article/show-related-posts-content-views-pro/" target="_blank" rel="noopener">read more</a>).</p></blockquote>
<blockquote><p>To get the current term in its archive page, please use the value &#8220;GET_CURRENT_TERM&#8221;.</p></blockquote>
</li>
<li><strong>field</strong>: &#8220;slug&#8221; (default), &#8220;name&#8221;, &#8220;id&#8221;.<br />
<blockquote style="margin-top: 15px;"><p>If you use the name (or ID) of categories, tags, terms for the <code>cat</code>, <code>tag</code>, <code>terms</code> parameter, you must use <code>field="name"</code> (or <code>field="id"</code>). Otherwise, it will return &#8220;No posts found&#8221;.</p></blockquote>
</li>
<li><strong>operator</strong>: &#8220;IN&#8221; (default), &#8220;NOT IN&#8221;, &#8220;AND&#8221; (use <code>operator2</code> for operator of the second taxonomy).<br />
IN — show posts which associate with one or more of selected terms<br />
NOT IN — show posts which do not associate with any of selected terms<br />
AND — show posts which associate with all of selected terms</li>
<li><strong>relation</strong>: &#8220;AND&#8221; (default), &#8220;OR&#8221;.<br />
AND — show posts which match all settings of all taxonomies<br />
OR — show posts which match one or more settings of taxonomies</li>
<li><strong>author</strong>: ID of authors (since version 3.2)<br />
<code>[pt_view id="VIEW_ID" author="10,15"]</code></li>
<li><strong>post_type</strong>: Slug of the post type to filter (since version 3.2)</li>
<li><strong>limit</strong>: number of posts to show (since version 3.5)</li>
<li><strong>offset</strong>: number of posts to skip (since version 3.5)</li>
<li><strong>post_parent</strong>: ID of the parent page (since version 3.6.0).<br />
IDs of multiple parent pages, separate by commas (since version 5.3.4).</li>
<li><strong>keyword</strong>: keyword to search for (since version 3.9.0)<br />
<code>[pt_view id="VIEW_ID" keyword="test"]</code></li>
<li><strong>post_id</strong>: list of post IDs to show (since version 3.9.0)<br />
<code>[pt_view id="VIEW_ID" post_id="1,2,3"]</code></li>
<li id="custom_field"><strong>custom_field_value</strong>: set another values for the selected custom fields in the View.<br />
<blockquote><p>// Set new value for 1 custom field in the View<br />
<code>[pt_view id="VIEW_ID" custom_field_value="NEW_VALUE_HERE"]</code><br />
// Set new values for multiple custom fields in the View<br />
<code>[pt_view id="VIEW_ID" custom_field_value="NEW_VALUE_FOR_FIELD_1,NEW_VALUE_FOR_FIELD_2"]</code></p></blockquote>
<p>For example, in VIEW1 you filtered events have custom field <strong>_EventVenueID</strong> equals 10. Now you want to filter events have <strong>_EventVenueID</strong> equals 20, you can use this shortcode: <code>[pt_view id="VIEW1" custom_field_value="20"]</code></p>
<p>&gt;&gt; <strong>It requires that the &#8220;Value To Compare&#8221; field in existing View is <ins>not empty</ins>:</strong><br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2790" src="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-reuse-custom-field.png" alt="CVP - reuse custom field" width="452" height="177" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-reuse-custom-field.png 452w, https://contentviewspro.com/documentation/wp-content/uploads/2014/08/CVP-reuse-custom-field-300x117.png 300w" sizes="auto, (max-width: 452px) 100vw, 452px" /></li>
</ul>
<hr />
<hr id="sample" />
<h2>Examples</h2>
<blockquote><p>To find value for <code>term, term2</code> =&gt; <a href="#term-slug">please check here</a>.</p></blockquote>
<blockquote><p>To find value for <code>taxonomy, taxonomy2</code> =&gt; <a href="#taxonomy-slug">please check here</a>.</p></blockquote>
<p>// Show WooCommerce products by Categories<br />
<code>[pt_view id="VIEW_ID" taxonomy="product_cat" terms="foo,bar"]</code></p>
<p>// Show WooCommerce products by Tags<br />
<code>[pt_view id="VIEW_ID" taxonomy="product_tag" terms="foo,bar"]</code></p>
<p>// Show WooCommerce products by Attributes<br />
<code>[pt_view id="VIEW_ID" taxonomy="pa_another_attribute" terms="foo,bar"]</code></p>
<hr />
<p>// Show posts match the filter settings of the VIEW1, but does not have category &#8220;foo&#8221;<br />
<code>[pt_view id="VIEW1" reuse_tax_query=1 taxonomy="category" terms="foo" operator="NOT IN"]</code></p>
<p>// Show posts have category &#8220;foo&#8221; but NOT have category &#8220;bar&#8221;<br />
<code>[pt_view id="VIEW_ID" taxonomy="category" terms="foo" operator="IN" taxonomy2="category" terms2="bar" operator2="NOT IN"]</code></p>
<p>// Show posts have category &#8220;foo&#8221; but NOT have tag &#8220;bar&#8221;<br />
<code>[pt_view id="VIEW_ID" taxonomy="category" terms="foo" operator="IN" taxonomy2="post_tag" terms2="bar" operator2="NOT IN"]</code></p>
<p>// Show posts of multiple tag IDs &amp; posts must have all selected tags<br />
<code>[pt_view id="VIEW_ID" tag="1,2,3" field="id" operator="AND"]</code></p>
<hr />
<p>// Show posts of custom taxonomy<br />
<code>[pt_view id="VIEW_ID" taxonomy="testimonial" terms="foo,bar"]</code></p>
<p>// Show posts IN multiple taxonomies<br />
<code>[pt_view id="VIEW_ID" taxonomy="testimonial" terms="foo,bar" taxonomy2="customer" terms2="too,tar"]</code></p>
<p>// Show posts IN one taxonomy, and NOT IN another taxonomy<br />
<code>[pt_view id="VIEW_ID" taxonomy="testimonial" terms="foo,bar" operator="IN" taxonomy2="customer" terms2="too,tar" operator2="NOT IN"]</code></p>
<hr />
<p>Thank you,</p>
<hr />
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Filter by Custom Field</title>
		<link>https://contentviewspro.com/documentation/article/filter-by-a-custom-field/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Wed, 14 Oct 2015 02:49:29 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=475</guid>

					<description><![CDATA[Content Views Pro helps you to filter content by a custom field easily. Here is a sample to filter upcoming events: To filter by a custom field, in the &#8221; Filter Settings&#8221; tab, select the Custom Fields checkbox. In the &#8220;Filter by Custom Fields&#8221; box, click &#8220;Add New&#8221; button, then: select the name of custom &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/filter-by-a-custom-field/"> <span class="screen-reader-text">Filter by Custom Field</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>Content Views Pro helps you to filter content by a custom field easily. Here is a sample to filter upcoming events:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2432" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/10/CVP-filter-by-custom-field.png" alt="CVP - filter by custom field" width="609" height="443" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/10/CVP-filter-by-custom-field.png 609w, https://contentviewspro.com/documentation/wp-content/uploads/2015/10/CVP-filter-by-custom-field-300x218.png 300w" sizes="auto, (max-width: 609px) 100vw, 609px" /></p>
<p><span style="text-decoration: underline;">To filter by a custom field, in the &#8221; <strong>Filter Settings</strong>&#8221; tab</span>, select the <strong>Custom Fields</strong> checkbox.<br />
In the &#8220;Filter by Custom Fields&#8221; box, click &#8220;Add New&#8221; button, then:</p>
<ul>
<li>select the name of custom field for &#8220;Field Key&#8221;</li>
<li>select the &#8220;Value Type&#8221; of the field. Available options are:
<ul style="list-style: circle;">
<li>Text</li>
<li>Number</li>
<li>Decimal</li>
<li>Date</li>
<li>Date Time</li>
<li>True/False</li>
</ul>
</li>
<li>select option to compare in &#8220;Operator To Compare&#8221; setting. There are many options which work for all your needs:
<ul style="list-style: circle;">
<li>Today</li>
<li>Now &amp; Past</li>
<li>Now &amp; Future</li>
<li>In the past</li>
<li>Equal ( = )</li>
<li>Differ ( != )</li>
<li>Greater ( &gt; )</li>
<li>Greater or Equal ( &gt;= )</li>
<li>Less ( &lt; )</li>
<li>Less or Equal ( &lt;= )</li>
<li>Exists</li>
<li>Not Exists</li>
</ul>
</li>
<li>enter the value for &#8220;Value To Compare&#8221; if needed. Some of above options don&#8217;t require value.</li>
</ul>
<hr />
<div style="display: none;">
<h2>Notice:</h2>
<p>With Content Views Pro version <strong>5.3.3.2 and before</strong>, filter by a date custom field only supports field which has value in YYYY-MM-DD (year-month-date) format.<br />
If the field doesn&#8217;t has that format, you will need to create an alias field.</p>
<p>Assuming you have some events, each event has a custom field &#8220;Start Date&#8221;. Value of these custom fields are somethings like 10 Sep 2015, 9 Oct 2015&#8230;<br />
<img loading="lazy" decoding="async" class="alignleft size-full wp-image-481" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/10/ctfield1.png" alt="ctfield1" width="868" height="160" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/10/ctfield1.png 868w, https://contentviewspro.com/documentation/wp-content/uploads/2015/10/ctfield1-300x55.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2015/10/ctfield1-768x142.png 768w" sizes="auto, (max-width: 868px) 100vw, 868px" /><br />
Because value of this field is not in format <strong>YYYY-MM-DD</strong>, we have to create a new custom field (<a href="https://contentviewspro.com/documentation/article/add-new-custom-field-wordpress-post/" target="_blank" rel="noopener noreferrer">read more here</a>):<br />
&#8211; give it a custom name (for example: <strong>cvp_start_date</strong>)<br />
&#8211; convert value of the field &#8220;Start Date&#8221; to <strong>YYYY-MM-DD</strong> format, to set as value of this field. For example, the value of &#8220;Start Date&#8221; is &#8220;10 Sep 2015&#8221;, so value of the alias field is &#8220;2015-09-10&#8221;.<br />
<img loading="lazy" decoding="async" class="alignleft size-full wp-image-482" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/10/ctfield2.png" alt="ctfield2" width="872" height="249" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/10/ctfield2.png 872w, https://contentviewspro.com/documentation/wp-content/uploads/2015/10/ctfield2-300x86.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2015/10/ctfield2-768x219.png 768w" sizes="auto, (max-width: 872px) 100vw, 872px" /></p>
</div>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Show custom field (core, ACF, Pods, MetaBox&#8230;) of posts in grid</title>
		<link>https://contentviewspro.com/documentation/article/how-to-show-wordpress-custom-field/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Mon, 01 May 2017 02:59:41 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1542</guid>

					<description><![CDATA[Custom field is meta-data of each WordPress post, it helps you to add extra information easily. This document will cover how to add and show WordPress custom field with Content Views Pro. If you have not added any custom field yet, please check this document (click here). To show custom field, please follow these steps: &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/how-to-show-wordpress-custom-field/"> <span class="screen-reader-text">Show custom field (core, ACF, Pods, MetaBox&#8230;) of posts in grid</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>Custom field is meta-data of each WordPress post, it helps you to add extra information easily. This document will cover how to add and show WordPress custom field with Content Views Pro.</p>
<blockquote><p>If you have not added any custom field yet, please check this document (<a href="http://contentviewspro.com/documentation/article/add-new-custom-field-wordpress-post/" target="_blank" rel="noopener noreferrer">click here</a>).</p></blockquote>
<p>To show custom field, please follow these steps:</p>
<ul>
<li>Click Content Views &gt;&gt; Add New to creating new View to show custom field</li>
<li>Click <strong>Display Settings</strong> tab of the View
<p><img loading="lazy" decoding="async" width="868" height="146" class="alignnone wp-image-4983 size-full" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/05/Pasted.png" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/05/Pasted.png 868w, https://contentviewspro.com/documentation/wp-content/uploads/2017/05/Pasted-300x50.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2017/05/Pasted-768x129.png 768w" sizes="auto, (max-width: 868px) 100vw, 868px" /></li>
<li>In <strong>Fields Settings</strong> section, click the <strong>Show Custom Fields</strong> checkbox.<br />
In <strong>Select Fields</strong>, select the custom fields you want to show:</p>
<p><img loading="lazy" decoding="async" width="834" height="471" class="alignnone wp-image-4987 size-full" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/05/Pasted-1.png" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/05/Pasted-1.png 834w, https://contentviewspro.com/documentation/wp-content/uploads/2017/05/Pasted-1-300x169.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2017/05/Pasted-1-768x434.png 768w" sizes="auto, (max-width: 834px) 100vw, 834px" /><br />
<em>(The options to select are the <ins>Name</ins> of the custom fields:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-3637" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/05/custom-field-name.png" alt="name of custom field" width="861" height="203" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/05/custom-field-name.png 861w, https://contentviewspro.com/documentation/wp-content/uploads/2017/05/custom-field-name-300x71.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2017/05/custom-field-name-768x181.png 768w" sizes="auto, (max-width: 861px) 100vw, 861px" /><br />
)</em></li>
</ul>
<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>Display term (Category, Tag, Taxonomy) as output in grid</title>
		<link>https://contentviewspro.com/documentation/article/display-taxonomy-as-output/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Sun, 26 Jul 2015 05:31:33 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=234</guid>

					<description><![CDATA[With Content Views Pro, you can display terms (categories, tags, custom taxonomy) as output easily (view demo). You can do it easily with simple steps below: In &#8220;Filter Settings&#8221; tab, select the All/Multi post types option of &#8220;Content Type&#8221;: In &#8220;Advance&#8221; section, select Taxonomy (Categories, Tags&#8230;) checkbox. Select the taxonomy (for example: Category), then select &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/display-taxonomy-as-output/"> <span class="screen-reader-text">Display term (Category, Tag, Taxonomy) as output in grid</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p>With Content Views Pro, you can display terms (categories, tags, custom taxonomy) as output easily (<a href="https://contentviewspro.com/demo/show-category-as-output/" target="_blank" rel="noopener noreferrer">view demo</a>).</p>
<p>You can do it easily with simple steps below:</p>
<ul>
<li>In &#8220;Filter Settings&#8221; tab, select the <strong>All/Multi post types</strong> option of &#8220;Content Type&#8221;:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2986" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/CVP-select-all-post-types.png" alt="CVP - select all post types" width="445" height="240" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/CVP-select-all-post-types.png 445w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/CVP-select-all-post-types-300x162.png 300w" sizes="auto, (max-width: 445px) 100vw, 445px" /></li>
<li>In &#8220;Advance&#8221; section, select <strong>Taxonomy (Categories, Tags&#8230;)</strong> checkbox.</li>
<li>Select the taxonomy (for example: Category), then select terms to display in the <strong>Select Terms</strong> field.<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-1859" src="https://contentviewspro.com/documentation/wp-content/uploads/2019/07/CVPro-Show-terms-as-output-1.png" alt="Content Views Pro - show category as output" width="671" height="463" /><ins><br />
You can leave the “Select Terms” empty to display ALL terms automatically.</ins></li>
<li>Select the <strong>Show terms as output</strong> option of &#8220;Output Modification&#8221;.</li>
</ul>
<p>You can change the layout (Grid, Pinterest, List&#8230;) in the &#8220;Display Settings&#8221; tab.<br />
You can change the style (color, font&#8230;) in Style Settings &gt;&gt; Taxonomy As Output.</p>
<p>Since version 5.8.0, you can show the number of posts next to each term.</p>
<h2 id="description"># Display term&#8217;s description:</h2>
<p>In the &#8220;Display Settings&#8221; tab, please select the checkbox <strong>Show Content</strong> in the &#8220;Fields Settings&#8221;.</p>
<h2 id="image"># Display term&#8217;s image:</h2>
<ul>
<li>Select <strong>Show Thumbnail</strong> checkbox in <code>Display Settings &gt;&gt; Fields Settings</code> of the View.</li>
<li>Edit each category/tag/term, then select thumbnail image for it:<img loading="lazy" decoding="async" class="alignnone size-full wp-image-2946" src="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/CVP-add-image-to-WordPress-category.png" alt="CVP - add image to WordPress category" width="818" height="572" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2015/07/CVP-add-image-to-WordPress-category.png 818w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/CVP-add-image-to-WordPress-category-300x210.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2015/07/CVP-add-image-to-WordPress-category-768x537.png 768w" sizes="auto, (max-width: 818px) 100vw, 818px" /></li>
</ul>
<p>Thank you,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Show advertisements in View</title>
		<link>https://contentviewspro.com/documentation/article/show-advertisements-view/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Wed, 01 Mar 2017 10:13:23 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1409</guid>

					<description><![CDATA[With Content Views Pro, you can make money online by displaying advertisements between posts in View. It is very simple to do it. Let&#8217;s start: &#8211; in Advertisement tab, please select the Show ads in output option &#8211; then paste your ad code to textarea field &#8220;Ad 1&#8221; to &#8220;Ad 10&#8221; (you don&#8217;t need to &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/show-advertisements-view/"> <span class="screen-reader-text">Show advertisements in View</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/cvp-show-ads.png" alt="Content Views Pro - show advertisements" width="746" height="361" class="aligncenter size-full wp-image-1851" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/cvp-show-ads.png 746w, https://contentviewspro.com/documentation/wp-content/uploads/2017/03/cvp-show-ads-300x145.png 300w" sizes="auto, (max-width: 746px) 100vw, 746px" /></p>
<p>With Content Views Pro, you can make money online by displaying advertisements between posts in View.<br />
It is very simple to do it. Let&#8217;s start:</p>
<p>&#8211; in Advertisement tab, please select the <strong>Show ads in output</strong> option<br />
&#8211; then paste your ad code to textarea field &#8220;Ad 1&#8221; to &#8220;Ad 10&#8221; (you don&#8217;t need to insert all 10 ads). You can paste Google Adsense code, HTML code (banner, image&#8230;).</p>
<p><img loading="lazy" decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/CVP-show-ads-in-view-1.png" alt="" width="672" height="519" class="alignnone size-full wp-image-3812" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/CVP-show-ads-in-view-1.png 672w, https://contentviewspro.com/documentation/wp-content/uploads/2017/03/CVP-show-ads-in-view-1-300x232.png 300w" sizes="auto, (max-width: 672px) 100vw, 672px" /></p>
<p>When enables pagination, it will show you option to set maximum number of ads on each page.</p>
<p>About the <strong>Ads Positions</strong> setting, by default Content Views Pro will pick random positions to display ads. But you also can set it manually, for example:</p>
<p><img loading="lazy" decoding="async" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/CVP-set-manual-positions-for-ads.png" alt="" width="519" height="133" class="alignnone size-full wp-image-1411" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/CVP-set-manual-positions-for-ads.png 519w, https://contentviewspro.com/documentation/wp-content/uploads/2017/03/CVP-set-manual-positions-for-ads-300x77.png 300w" sizes="auto, (max-width: 519px) 100vw, 519px" /><br />
(with above setting, it will show ads in first, fifth and tenth position in View output)</p>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Show related posts</title>
		<link>https://contentviewspro.com/documentation/article/show-related-posts-content-views-pro/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Thu, 09 Mar 2017 12:25:09 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1436</guid>

					<description><![CDATA[Content Views Pro help you to show related posts easily. Notices: Please replace VIEW_ID with ID of your View. To limit the number of related posts to show, please add limit parameter to the shortcode, for example: [pt_view id="VIEW_ID" cat="GET_CURRENT" limit=6] It will show No posts found if there are no posts match the combination &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/show-related-posts-content-views-pro/"> <span class="screen-reader-text">Show related posts</span> Read More &#187;</a></p>]]></description>
										<content:encoded><![CDATA[
<style>
.custompost {display: none;}
.for-custom-post ~ ul .custompost {display: block !important;}
.for-custom-post ~ ul .postonly {display: none !important;}
.postid-1436 pre {margin-top: 10px; padding: 5px; font-size: 14px;}
.postid-1436 p {margin-bottom: 10px;}
ul li ul {list-style: circle;}
</style>




<p>Content Views Pro help you to show related posts easily.</p>



<h2 class="wp-block-heading">Notices:</h2>



<blockquote><p>Please replace <strong>VIEW_ID</strong> with <a href="https://contentviewspro.com/documentation/article/what-is-id-of-a-view/" target="_blank" rel="noopener">ID of your View</a>.</p></blockquote>

<blockquote><p>To limit the number of related posts to show, please add <strong>limit</strong> parameter to the shortcode, for example: <code>[pt_view id="VIEW_ID" cat="GET_CURRENT" limit=6]
</code></p></blockquote>

<blockquote><p>It will show <strong>No posts found</strong> if there are no posts match the combination of shortcode parameters, or the parameter value was wrong.</p></blockquote>

<blockquote><p>Showing related posts by View <strong>doesn&#8217;t support Ajax pagination</strong>. It supports Normal pagination only.</p></blockquote>

<blockquote><p>To hide the current post from related posts list, please select the checkbox “Exclude current post” in the View.</p></blockquote>



<h2 class="wp-block-heading">1. Show related posts for All posts</h2>



<ul>
	<li>
		<h4>To show related posts in Sidebar</h4>
		<p>Please add below shortcode to the <b>Text widget</b> in the sidebar:</p>
		
		<ul id="allshortcode">
			<li class="postonly">
			Shortcode to show related posts from same <b>Category</b> as the current post: <br/>
			<pre>[pt_view id="VIEW_ID" cat="GET_CURRENT"]</pre>
			</li>
			
			<li class="postonly">
			Shortcode to show related posts from same <b>Tag</b> as the current post: <br/>
			<pre>[pt_view id="VIEW_ID" tag="GET_CURRENT"]</pre>
			</li>
			
			<li>
			Shortcode to show related posts from same <b>specific taxonomy</b> as the current post: <br/>
			<pre>[pt_view id="VIEW_ID" taxonomy="testimonial" terms="GET_CURRENT"]</pre>

			<p>please replace <code>testimonial</code> by the <a href="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-get-slug-of-taxonomy.png" target="_blank" rel="noopener noreferrer">slug of specific taxonomy</a> in your website.</p>
			</li>
			
			<li>
			Shortcode to show related posts from <b>all taxonomies</b> of the current post: <br/>
			<pre>[pt_view id="VIEW_ID" taxonomy="GET_CURRENT" terms="GET_CURRENT"]</pre>
			</li>
		</ul>
	</li>
	<li>
		<h4>To show related posts below the post content</h4>
		<p>Please add below code to the file <b>functions.php</b> in the theme’s folder:</p>

<div class="postonly">
<pre>
// Content Views Pro - show related posts for posts
add_filter( 'the_content', 'cvp_theme_auto_show_related_posts', 999 );
function cvp_theme_auto_show_related_posts( $content ) {
	if ( is_single() ) {
		ob_start();
		echo '&lt;h3&gt;Related posts&lt;/h3&gt;';
		echo do_shortcode( ' <code>[pt_view id="VIEW_ID" cat="GET_CURRENT"]</code> ' );
		$content .= ob_get_clean();
	}
	return $content;
}
</pre>

<p>This shortcode <code>[pt_view id="VIEW_ID" cat="GET_CURRENT"]</code> shows related posts from same <b>Category</b> as the current post.</p>
<p>If you want to show from same tag/taxonomy, please replace this shortcode with another shortcode (<a href="#allshortcode">as mentioned here</a>).</p>
</div>

<div class="custompost">
	<ul>
		<li>
			To show related posts from same <b>specific taxonomy</b> as the current custom post, use this code: <br/>			
<pre>
// Content Views Pro - show related posts for custom post
add_filter( 'the_content', 'cvp_theme_show_related_custom_post_specific', 999 );
function cvp_theme_show_related_custom_post_specific( $content ) {
	if ( is_singular( 'CUSTOM_POST_SLUG_HERE' ) ) {
		ob_start();
		echo '&lt;h3&gt;Related posts&lt;/h3&gt;';
		echo do_shortcode( '[pt_view id="VIEW_ID" taxonomy="testimonial" terms="GET_CURRENT"]' );
		$content .= ob_get_clean();
	}
	return $content;
}
</pre>
			<p>please replace <code>testimonial</code> by the <a href="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-get-slug-of-taxonomy.png" target="_blank" rel="noopener noreferrer">slug of specific taxonomy</a> in your website.</p>

			<p>please replace <code>CUSTOM_POST_SLUG_HERE</code> with your custom post type slug.</p>
		</li>
			
		<li>
			To show related posts from <b>all taxonomies</b> of the current custom post, use this code: <br/>			
<pre>
// Content Views Pro - show related posts for custom post
add_filter( 'the_content', 'cvp_theme_auto_show_related_custom_posts', 999 );
function cvp_theme_auto_show_related_custom_posts( $content ) {
	if ( is_singular( 'CUSTOM_POST_SLUG_HERE' ) ) {
		ob_start();
		echo '&lt;h3&gt;Related posts&lt;/h3&gt;';
		echo do_shortcode( '[pt_view id="VIEW_ID" taxonomy="GET_CURRENT" terms="GET_CURRENT"]' );
		$content .= ob_get_clean();
	}
	return $content;
}
</pre>

			<p>please replace <code>CUSTOM_POST_SLUG_HERE</code> with your custom post type slug.</p>
		</li>
	</ul>
</div>
	</li>
</ul>



<h2 class="wp-block-heading">2. Show related posts for specific posts</h2>



<p>To show related posts for only some specific posts, please edit these posts, then add shortcode (<a href="#allshortcode">choose the shortcode here depends on your need</a>) to the post content area.</p>



<h2 class="wp-block-heading for-custom-post">3. Show related posts for custom post type (product, event, …)</h2>



<ul>
	<li>
		<h4>To show related posts in Sidebar</h4>
		<p>Please add below shortcode to the <b>Text widget</b> in the sidebar:</p>
		
		<ul id="allshortcode">
			<li class="postonly">
			Shortcode to show related posts from same <b>Category</b> as the current post: <br/>
			<pre>[pt_view id="VIEW_ID" cat="GET_CURRENT"]</pre>
			</li>
			
			<li class="postonly">
			Shortcode to show related posts from same <b>Tag</b> as the current post: <br/>
			<pre>[pt_view id="VIEW_ID" tag="GET_CURRENT"]</pre>
			</li>
			
			<li>
			Shortcode to show related posts from same <b>specific taxonomy</b> as the current post: <br/>
			<pre>[pt_view id="VIEW_ID" taxonomy="testimonial" terms="GET_CURRENT"]</pre>

			<p>please replace <code>testimonial</code> by the <a href="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-get-slug-of-taxonomy.png" target="_blank" rel="noopener noreferrer">slug of specific taxonomy</a> in your website.</p>
			</li>
			
			<li>
			Shortcode to show related posts from <b>all taxonomies</b> of the current post: <br/>
			<pre>[pt_view id="VIEW_ID" taxonomy="GET_CURRENT" terms="GET_CURRENT"]</pre>
			</li>
		</ul>
	</li>
	<li>
		<h4>To show related posts below the post content</h4>
		<p>Please add below code to the file <b>functions.php</b> in the theme’s folder:</p>

<div class="postonly">
<pre>
// Content Views Pro - show related posts for posts
add_filter( 'the_content', 'cvp_theme_auto_show_related_posts', 999 );
function cvp_theme_auto_show_related_posts( $content ) {
	if ( is_single() ) {
		ob_start();
		echo '&lt;h3&gt;Related posts&lt;/h3&gt;';
		echo do_shortcode( ' <code>[pt_view id="VIEW_ID" cat="GET_CURRENT"]</code> ' );
		$content .= ob_get_clean();
	}
	return $content;
}
</pre>

<p>This shortcode <code>[pt_view id="VIEW_ID" cat="GET_CURRENT"]</code> shows related posts from same <b>Category</b> as the current post.</p>
<p>If you want to show from same tag/taxonomy, please replace this shortcode with another shortcode (<a href="#allshortcode">as mentioned here</a>).</p>
</div>

<div class="custompost">
	<ul>
		<li>
			To show related posts from same <b>specific taxonomy</b> as the current custom post, use this code: <br/>			
<pre>
// Content Views Pro - show related posts for custom post
add_filter( 'the_content', 'cvp_theme_show_related_custom_post_specific', 999 );
function cvp_theme_show_related_custom_post_specific( $content ) {
	if ( is_singular( 'CUSTOM_POST_SLUG_HERE' ) ) {
		ob_start();
		echo '&lt;h3&gt;Related posts&lt;/h3&gt;';
		echo do_shortcode( '[pt_view id="VIEW_ID" taxonomy="testimonial" terms="GET_CURRENT"]' );
		$content .= ob_get_clean();
	}
	return $content;
}
</pre>
			<p>please replace <code>testimonial</code> by the <a href="https://contentviewspro.com/documentation/wp-content/uploads/2014/08/Content-Views-Pro-get-slug-of-taxonomy.png" target="_blank" rel="noopener noreferrer">slug of specific taxonomy</a> in your website.</p>

			<p>please replace <code>CUSTOM_POST_SLUG_HERE</code> with your custom post type slug.</p>
		</li>
			
		<li>
			To show related posts from <b>all taxonomies</b> of the current custom post, use this code: <br/>			
<pre>
// Content Views Pro - show related posts for custom post
add_filter( 'the_content', 'cvp_theme_auto_show_related_custom_posts', 999 );
function cvp_theme_auto_show_related_custom_posts( $content ) {
	if ( is_singular( 'CUSTOM_POST_SLUG_HERE' ) ) {
		ob_start();
		echo '&lt;h3&gt;Related posts&lt;/h3&gt;';
		echo do_shortcode( '[pt_view id="VIEW_ID" taxonomy="GET_CURRENT" terms="GET_CURRENT"]' );
		$content .= ob_get_clean();
	}
	return $content;
}
</pre>

			<p>please replace <code>CUSTOM_POST_SLUG_HERE</code> with your custom post type slug.</p>
		</li>
	</ul>
</div>
	</li>
</ul>



<p></p>



<p>If you have any questions or need help, please <a href="https://www.contentviewspro.com/contact/" target="_blank" rel="noreferrer noopener">contact us here</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Duplicate, clone, copy a View</title>
		<link>https://contentviewspro.com/documentation/article/how-to-duplicate-a-view/</link>
		
		<dc:creator><![CDATA[admin1]]></dc:creator>
		<pubDate>Mon, 06 Mar 2017 09:09:42 +0000</pubDate>
				<guid isPermaLink="false">http://docs.contentviewspro.com/?p=1429</guid>

					<description><![CDATA[This feature is only available in the Pro version. If you have a lot of similar Views, the duplicating feature will save you a lot of time and effort. There are 2 different ways to duplicate a View: In Content Views &#62; All Views page, please mouse over the View you want to duplicate, then &#8230;<p class="read-more"> <a class="" href="https://contentviewspro.com/documentation/article/how-to-duplicate-a-view/"> <span class="screen-reader-text">Duplicate, clone, copy a View</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>If you have a lot of similar Views, the duplicating feature will save you a lot of time and effort.<br />
There are 2 different ways to duplicate a View:</p>
<ol>
<li>In Content Views &gt; All Views page, please mouse over the View you want to duplicate, then click on the link <strong>Duplicate this view</strong>:<br />
<img loading="lazy" decoding="async" class="alignnone size-full wp-image-1430" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Duplicate-View-in-All-Views-page.png" alt="" width="493" height="253" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Duplicate-View-in-All-Views-page.png 493w, https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Duplicate-View-in-All-Views-page-300x154.png 300w" sizes="auto, (max-width: 493px) 100vw, 493px" /></p>
<blockquote><p>Notice: Any another button (for example: &#8220;Duplicate&#8221;, &#8220;Clone&#8221;) is not a part of our plugin, and will not work.</p></blockquote>
</li>
<li>In Edit View page, please click on the button <strong>Duplicate this view</strong> at top right of the page:<img loading="lazy" decoding="async" class="alignnone size-full wp-image-1431" src="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Duplicate-View-in-View-page.png" alt="" width="788" height="172" srcset="https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Duplicate-View-in-View-page.png 788w, https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Duplicate-View-in-View-page-300x65.png 300w, https://contentviewspro.com/documentation/wp-content/uploads/2017/03/Duplicate-View-in-View-page-768x168.png 768w" sizes="auto, (max-width: 788px) 100vw, 788px" /></li>
</ol>
<p>Best regards,</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
