=== Display posts in grid layout without coding - Content Views ===
Contributors: pt-guy
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JGUF974QBRKQE
Tags: post, post grid, display, recent, posts, recent post, page, pages, query, queries, search, display, show, grid, column, layout, author, blog, categories, category, comment, content, custom, editor, filter, Formatting, image, list, meta, plugin, responsive, shortcode, excerpt, title, tag, term, Taxonomy, thumbnail, pagination, date, scrollable, slider, collapsible
Requires at least: 3.3
Tested up to: 4.4.2
Stable tag: 1.8.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

It is super easy to display latest posts or any posts (by category, tag, author...) anywhere in responsive Grid layout without coding!

== Description ==

Do you want to display latest posts on any WordPress page in responsive, versatile Grid layout?

Or:

* display posts by any category, tag, author, keyword
* order posts by title, date, ID
* display posts with beautiful pagination
* display featured image in various sizes (thumbnail, medium, large, full)

With **Content Views**, you can do above things in minutes, without any line of code!

With [Content Views Pro](http://www.contentviewspro.com/?utm_source=wordpress&utm_medium=plugin&utm_campaign=content-views "Get Content Views Pro"), you can do more than you expect!

**Content Views** provides an intuitive form to filter & display posts in responsive layout quickly, in 3 simple steps:

* Step 1 : Filter any posts by category, tag, author...
* Step 2 : Select a layout (grid, scrollable list, collapsible list) to display your posts. You can select what data (title, content/excerpt, thumbnail, meta fields) to display, too.
* Step 3 : Paste shortcode **[pt_view id="VIEW_ID"]** to page, widget... editor; or paste `<?php echo do_shortcode("[pt_view id=VIEW_ID]"); ?>` to WordPress theme file.


[youtube https://www.youtube.com/watch?v=drxqtCiaw4I]


= With Content Views plugin, you can: =

**in Step 1:**

* display latest posts without doing anything (by default, latest posts will be selected)
* filter any posts by ID, category, tag, author, keyword, status
* display child pages of a parent page
* include/exclude posts to display
* sort posts by Id, Title, Date in ascending, descending order
* limit number of posts to display

**in Step 2:**

* select a responsive layout to display posts: Grid, Scrollable list, Collapsible list
* select number of columns in Grid layout
* select what data (thumbnail, title, content, meta fields) to display
* select thumbnail size
* display full content, or display excerpt with specific number of words
* select what meta-fields (date, author, categories/tags, comment count) to display
* enable/disable pagination
* open in new tab, current tab (when click on post title, thumbnail)


= With Content Views Pro, you have: =

* More amazing layouts: **Pinterest, Masonry, Facebook Timeline**...
* **Replace WordPress layout** in Category page, Search result page, Archive page... by amazing layout
* **Drag & drop** to change display order of thumbnail, title, content, meta fields
* Display any custom posts (**WooCommerce product, EDD** ...) in beautiful output
* Customize **font, color, style** of title, content, read-more button...
* **Load more, Infinite scroll** pagination
* And much more...

[Get Content Views Pro](http://www.contentviewspro.com/?utm_source=wordpress&utm_medium=plugin&utm_campaign=content-views "Get Content Views Pro").

== Installation ==

= Using The WordPress Dashboard =

1. Navigate to the 'Add New' in the plugins dashboard
2. Search for 'Content Views'
3. Click 'Install Now'
4. Activate the plugin on the Plugin dashboard

= Uploading in WordPress Dashboard =

1. Navigate to the 'Add New' in the plugins dashboard
2. Navigate to the 'Upload' area
3. Select `content-views-query-and-display-post-page.zip` from your computer
4. Click 'Install Now'
5. Activate the plugin in the Plugin dashboard

= Using FTP =

1. Download `content-views-query-and-display-post-page.zip`
2. Extract the `content-views-query-and-display-post-page` directory to your computer
3. Upload the `content-views-query-and-display-post-page` directory to the `/wp-content/plugins/` directory
4. Activate the plugin in the Plugin dashboard



== Frequently Asked Questions ==

= How to start? =

In WordPress Admin menu, click Content Views > Add New

= What is 'View'? =

'View' is a custom post type which Content Views plugin stores all settings to filter & display your posts

= How many Views I can create? =

You can create Unlimited Views, in Unlimited websites

= How to edit a View? =

In WordPress Admin menu, click Content Views. Paste View ID or title to text field beside "Search Views" button, then click the button to search.
Click on Title of View you want to edit.
You will be forwarded to View page.

= How to use View on my home page? =

If you are using a static page as home page, you should paste shortcode **[pt_view id="VIEW_ID"]** to editor of that page.
If you are using "Your latest posts" as home page, you should paste this code `<?php echo do_shortcode("[pt_view id=VIEW_ID]"); ?>` to a theme file: `front-page.php` or `home.php` or `index.php`.



== Screenshots ==

1. Content Views plugin overview
2. Display Setting form to customize output of queried posts at front-end
3. Query and display in Grid layout (Show Title, Thumbnail)
4. Query and display in Grid layout (Show Title, Thumbnail, Content) with Pagination
5. Query and display in Collapsible layout
6. Query and display in Slider layout



== Changelog ==

= 1.8.2 - April 01 2016 =
* Update: Remove default font-size 14 pixels for post content in View
* Tweak: Show post id as data for item (facilitate to customize individual post style)
* Tweak: Add some filters to customizing View elements by PHP code

= 1.8.1 - March 21 2016 =
* Improvement: Equal column width in grid of 5,7,8,9,10,11 columns (in prior versions, last column was biggest)
* Fix: Conflict with theme/plugin which uses Bootstrap library

= 1.8.0.2 - March 12 2016 =
* Update: Remove notice message (when there is Javascript errors in active theme/another plugin). It caused confusion.

= 1.8.0.1 - March 02 2016 =
* Tweak: Update Notice message at front-end (when Javascript error occurs) to avoid misunderstand

= 1.8.0.0 - March 01 2016 =
* Improvement: Detect Javascript errors (which can stop Content Views from working properly), show guide to try to solve it automatically
* Improvement: Prevent error "Permission denied" by session_start() in some hostings
* Improvement: Prevent conflicts with dropdown Menu in theme
* Improvement: Clearer shortcode information in View edit page
* Improvement: Add 2 clear notices in View dashboard about term, thumbnail
* Improvement: Increase performance by optimizing styles, scripts
* Improvement: Print friendly (remove plain text URL after each link in Print mode)
* Update: Disable option "Don't load Bootstrap 3 style & script"

= 1.7.8 - February 06 2016 =
* Improvement: [supports qTranslate-X plugin] Generate valid excerpt of post in current language
* Fixed: Some bugs of pagination in special cases
* Update: Drop support for "vpage" parameter in (Ajax) Numbered pagination to prevent ambiguous logic

= 1.7.7 - January 12 2016 =
* Bug fixed: Content floats after View output
* Tweak: Code relates to grid system
* Tweak: Update filter "page_attr"

= 1.7.6 - January 11 2016 =
* Update: Set Administrator (instead of Editor) as default user role who can add, edit, delete View
* Update: Do not wrap items in output to rows anymore
* Update: Disable sub View by default
* Improvement: Better View dashboard (simplified text & description, improved styles & scripts, improved display in Tablet)
* Improvement: Better performance by better solution

= 1.7.5 =
* New feature: Able to disable feature "responsive image" of WordPress 4.4 to prevent blurry thumbnail
* New feature: Able to disable 2-columns format in Mobile devices & extra small screens
* Update: Better output when shows only Title of post
* Update: Add filter to allow HTML tags in heading of Collapsible list
* Update: Decrease margin of thumbnail
* Tweak: Add some filter hooks

= 1.7.4 =
* Bug fixed: "Session start" warning
* Improvement: Rename & restructure Content Views menus in WordPress dashboard
* Improvement: Remove/Update appended value (for example: 1 → 6) which can make misunderstand about limitation of some numerical settings

= 1.7.3 =
* Bug fixed: Empty date caused by custom hook to WordPress "get_the_date" filter (of another plugin/active theme)
* Bug fixed: Different output between preview and front-end when excludes some posts (caused by Paid Membership Pro plugin)
* Improvement: Improve code for better performance
* Tweak: Rename 'In list' to 'Include only' and update its description
* Tweak: Replace "Leave a comment" by "0 Comment"

= 1.7.2 =
* Improvement: Reduce processing time by optimizing conditional statements & functions
* Bug fixed: "No post found" when one of selected terms is hierarchical and operator is AND
* Bug fixed: Some style issues of pagination (caused by impact of style from active theme)
* Tweak: Add more helpful descriptions about advanced features in Pro plugin

= 1.7.1 =
* Bug fixed: Fix error in some one-page themes
* Update: Add woff2 file of Bootstrap font
* Improvement: Code cleanup & remove no more used filters
* Tweak: Add some filter actions

= 1.7.0 =
* Improvement: Completely avoid layout issues or style conflict with theme
* Bug fixed: Collapsible layout does not animate smoothly
* Improvement: Disable annoy scroll when select content type
* Tweak: Update text, description of some settings
* Tweak: Add filter 'post_types_taxonomies', 'view_executed', filter to hide output if No post found

= 1.6.8.4 =
* Bug fixed: Solve problems with category/tag name in non-latin languages
* Improvement: Use cleaner loading icon
* Tweak: Add class for <a> tag of thumbnail
* Tweak: Add filter to load Content Views assets (styles, scripts) only in page which uses View
* Tweak: Add filter to allow All HTML tags in excerpt

= 1.6.8.3 =
* Tweak: Change text domain from "content-views" to "content-views-query-and-display-post-page" and update pot file (prepare for language packs at http://translate.wordpress.org)

= 1.6.8.2 =
* Bug fixed: Trimming excerpt of non-latin languages cause broken characters

= 1.6.8.1 =
* Bug fixed: Excerpt length

= 1.6.8 =
* Improvement: More elegant UI for Fields settings
* Improvement: Performance improvement by merging filers
* Bug fixed: Slug of term on Non-Latin languages does not show correctly
* Bug fixed: Fix Javascript error "Uncaught query function not defined for Select2 undefined"
* Update: Add filter "terms_include_this" to exclude terms from meta-fields output
* Update: CSS improvements


= 1.6.7 =
* Bug fixed: Missing section in some one-page themes when put multiple View shortcodes to sections
* Update: Revert filter "view_type_dir"
* Tested up to: 4.3.1

= 1.6.6 =
* Bug fixed: Layout of Scrollable List was broken if active theme uses classes of Bootstrap carousel
* Bug fixed: Page is not activated when click on pagination button in Preview
* Update: Little improvement on output of Collapsible List
* Update: Add filter to modify date format
* Update: Rename 'Regular pagination' to 'Numbered pagination'

= 1.6.5.2 =
* Tested in WordPress 4.3
* Update: Update Content Views icon
* Update: Add new filter to customize current page of pagination
* Update: Print debug message (if the debug mode is enable: PT_CV_DEBUG = true)

= 1.6.5.1 =
* Bug fixed: Duplicate callback called after pagination finished
* Tested in WordPress 4.2.4

= 1.6.5 =
* Update: Big update to improve page performance

= 1.6.4 =
* Bug fixed: Can't translate content

= 1.6.3.1 =
* Improvement: Prevent negative value for some setting options

= 1.6.3 =
* Bug fixed: Date of post is incorrect in some cases
* Bug fixed: Dropdown menu is hidden

= 1.6.2.1 =
* Bug fixed: Redirect to new View page when click "Save" button

= 1.6.2 =
* Security: Fix XSS Vulnerability problem
* Bug fixed: Plugin does not rendering anything sometimes
* Bug fixed: Title is missing when move Bootstrap to top of all styles
* Improvement: Optimize CSS properties

= 1.6.1 =
* Update: Update translation function & re-generate .po file
* Bug fixed: Call non-static function

= 1.6.0 =
* Tested up to: 4.2.2
* Bug fixed: Fix WordPress bug which can't get valid thumbnail if meta field "_thumbnail_id" is string value instead of integer value
* Update: Add class for taxonomies in View output
* Bug fixed: Multiple paginations don't work in same page
* Update: Restructure plugin's core functions

= 1.5.7.1 =
* Update: Show confirm message before close a View page to prevent missing changes
* Tested up to: 4.2.1

= 1.5.7 =
* Update: Some update styles for Scrollable, Collapsible layouts

= 1.5.6 =
* Bug fixed: "undefined" Bootstrap stylesheet link
* Update: Add some custom filters

= 1.5.5 =
* Bug fixed: Multiple paginations on same page do not work
* Bug fixed: Fix some UI bugs in Add/Edit View page

= 1.5.4 =
* Bug fixed: "Invalid post type" error in "All Views" page
* Update: Better responsive output of Scrollable List on Mobile
* Update: Auto changes line-breaks in the excerpt into HTML paragraphs (if allows HTML tags in excerpt)
* Tested up to: 4.1.1

= 1.5.3 =
* Update: Supports qTranslate family plugins (qTranslate, mqTranslate, qTranslate-X)

= 1.5.2 =
* Bug fixed: Scrollable list does not show navigation and indicator
* Bug fixed: Prevent duplicated content caused by other plugins (translation plugins...)

= 1.5.1 =
* Bug fixed: Javascript error in WordPress version 3.4
* Improvement: Code & description clearance

= 1.5.0 =
* New feature: Able to use Normal pagination (without Ajax)
* Update: Add filter allows to customize labels for pagination

= 1.4.9 =
* Update: Able to check/uncheck to allow HTML tags in excerpt (to preventing broken HTML output)

= 1.4.8 =
* Bug fixed: Some code appears in excerpt

= 1.4.6 =
* Improvement: Allow some HTML tags (a, br, strong, em, strike, i, ul, ol, li) in excerpt
* Update: Exclude Views from front-end search results

= 1.4.5 =
* Test up to 4.1
* Improvement: Add shortcode column to All Views page
* Improvement: Add some css properties to prevent style overwrite problem

= 1.4.4 =
* Bug fixed: Length of excerpt is wrong if there is filter of other plugins or active theme
* Improvement: GUI improvement in "Fields settings" group

= 1.4.3 =
* Bug fixed: Scrollable list without image display blank output
* Bug fixed: Position of pagination button is incorrect after pagination finished (in some case)
* Improvement: Code refinement

= 1.4.2 =
* Bug fixed: Style of Panel (.panel) is weird

= 1.4.1 =
* Bug fixed: Excerpt show stranger character if content of post contains nothing but a url
* Bug fixed: Height of thumbnail does not match the thumbnail size setting if current WordPress theme set CSS 'min-width' property for images

= 1.4.0 =
* Bug fixed: Grid only shows 1 column
* Improvement: Update description, styles, refine code

= 1.3.9 =
* Bug fixed: Menu bar is disappeared

= 1.3.8 =
* Bug fixed: Admin bar is hidden on pages which do not use View
* Bug fixed: Fix warning message in Dashboard
* Improvement: Don't auto expand width of items (follow 'Items per row' setting completely)

= 1.3.6 =
* Improvement: A very new customized Bootstrap style
* Bug fixed: script which hooks to wp_footer is not loaded

= 1.3.5.1 =
* Bug fixed: Bootstrap style ruins theme layout

= 1.3.5 =
* Bug fixed: Show more posts than Limit value in some cases when pagination is enable
* Improvement: Customized Bootstrap style which only contains necessary properties
* Update: Display inline assets of View right after HTML if possible
* Update: Refine Javascript code for Preview/Front-end

= 1.3.4.1 =
* Improvement: Clean up 'Read more' button code
* Improvement: Remove unused code of Order setting

= 1.3.4 =
* Bug fixed: Read more button is invisible (color is white and no background color)
* Update: Able to set 0 as 'Excerpt length'

= 1.3.3 =
* Bug fixed: Return 'Empty settings' message for pagination request

= 1.3.2 =
* Update: Official refined Bootstrap version (bring here from Pro plugin)
* Update: Apply "Open in" setting for "Read more" button, too
* Bug fixed: Get wrong excerpt if content of post contains shortcode tags

= 1.3.1.9 =
* Update: Add some new hook for customizing options

= 1.3.1.8 =
* Bug fixed: Fix row style bug

= 1.3.1.6 =
* Improvement: Update page title as "Edit View" in edit View page
* Bug fixed: Fix some warnings in PHP 5.2

= 1.3.1.5 =
* Test up to 4.0

= 1.3.1.4 =
* Update: Fix some layout problems by influence of "box-sizing" property of Bootstrap
* Improvement: Code improvement for Grid rendering

= 1.3.1.3 =
* Update: Restructure Taxonomy filter (remove "Not In" list, add operator[In, Not in, And])

= 1.3.1.2 =
* Bug fixed: Loosing translation (WPML) in Ajax pagination
* Improvement: Performance optimization (when get settings of View)
* Improvement: Update style if only Title is selected to display (to have a more beautiful list of Posts title)

= 1.3.1.1 =
* Bug fixed: Thumbnail dimensions are empty
* Improvement: CSS code refinement

= 1.3.1 =
* Update: Important update about caching mechanism
* Update: Update translation file

= 1.3.0.2 =
* Refine Javascript code
* Update description in Setting page

= 1.3.0.1 =
* Update filter priority
* Update plugin description

= 1.3.0 =
* Bug fixed: Pagination returns Empty settings
* Improvement: UI improvement (Add icon to tabs. Show shortcode in text field for easier selecting. )
* Improvement: Assets loading improvement

= 1.2.6 =
* Fix bug: Javascript error of missing function
* Update description for some options
* Update styles

= 1.2.5 =
* Fix bug: does not save Layout format value when select '2 columns' option
* Fix notice about constant value

= 1.2.4 =
* Update translation feature: load translation file from /wp-content/languages/content-views/
* Fix pagination bug

= 1.2.3 =
* Fix warning: Cannot send session cache limiter - headers already sent

= 1.2.2 =
* Performance optimization for pagination request
* Add translation file (.po)

= 1.2.1 =
* Fix pagination bug if number of pages > 10
* Fix bug of Preview button: click event fires twice
* Enable other user roles (Editor, Author, Contributor) to see Content Views menu and manage Views

= 1.2.0 =
* Remove shortcodes in excerpt
* Fix Scroll bug when click Show/Hide preview
* Update Pagination setting
* Optimize filters system
* Compatibility update

= 1.1.6 =
* Fix bug auto selected terms which its value is number in Taxonomy settings box

= 1.1.5 =
* Fix pagination bug (return 0)

= 1.1.4 =
* Fix pagination bug when don't load Bootstrap in front-end

= 1.1.3 =
* Add option to Settings page to enable/disable load Bootstrap in front-end
* Enable to search by View ID in "All Views" page
* Fix bug Scrollable List (when slide count = 1)
* Update settings page
* Add some custom filters

= 1.1.2 =
* Fix offset bug

= 1.1.1 =
* Fix pagination bug

= 1.1 =
* Add "Parent page" option to query child pages of a parent page
* Show shortcode [pt_view id="VIEW_ID"] to able to copy in editing page of a View
* Add link to Thumbnail
* Update Settings page
* Fix import/export bugs
* Classify "Add New View" vs "Edit View"

= 1.0.2 =
* Add some WP filters
* Add main action for Pro plugin to trigger

= 1.0.1 =
* Adjust styles

= 1.0.0 =
* Initial release



== Upgrade Notice ==

= 1.6.8 =
Major update with lot of improvements