Category FAQ – Post Grid

Post order by view count

Track view count by adding following code under theme functions.php file function post_grid_single_post_view_count(){ // replace by your post types if ( is_singular( ‘post’ )){ $post_id = get_the_ID(); $post_view_count = (int) get_post_meta(get_the_ID(),’post_view_count’, true); update_post_meta(get_the_ID(), ‘post_view_count’, ($post_view_count+1)); /* * * for unique…

Enable debug and debug log

To enable debug and debug log to your WordPress site please copy and paste following 2 lines to your WordPress root directory under  config.php file define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); And then save or update  config.php file, then try…

Thumbnail size issue

Welcome to our forum. If your site contains any square size image you can use that size under media settings for post grid layout editor View post on imgur.com If you don’t see any square size image, then you can…

Post loop counter over pagination

You can display posts loop counter by using following action hooks add_action(‘post_grid_loop’, ‘post_grid_loop_count’, 0); function post_grid_loop_count($args){ $loop_count = isset($args[‘loop_count’]) ? $args[‘loop_count’] : ”; $paged = isset($args[‘paged’]) ? $args[‘paged’] : ”; $posts_per_page = isset($args[‘posts_per_page’]) ? $args[‘posts_per_page’] : ”; $loop_count_start = ($paged-1)*$posts_per_page;…

Post loop as list item

You can make post loop as list item by using following action hooks add_action(‘post_grid_before_loop’, ‘post_grid_before_loop_ol_start’); function post_grid_before_loop_ol_start(){ ?> <ol> <?php } add_action(‘post_grid_loop’, ‘post_grid_loop_li_start’, 5); function post_grid_loop_li_start($args){ ?> <li> <?php } add_action(‘post_grid_loop’, ‘post_grid_loop_li_end’, 90); function post_grid_loop_li_end($args){ ?> </li> <?php } add_action(‘post_grid_after_loop’,…

HTTP Error 500

If you are facing this issue please read following may help you to fix. #1. Exclude current post/page id If you are displaying post grid on a page or post also included on the post grid query it will create…

Create a Video Grid

if you like to create a video grid by youtube or vimeo this tutorial will guide you. #1. first you will need to set custom video source for your video post meta, you can use default post or custom post,…

Post grid for archive page

You can display post grid on archive pages by integrated with theme php file with category.php, tag.php and custom taxonomy php files, you need to create post grid first and copy the php shortcode and replace the loop inside category.php…

How at add HTML/Shortcode ?

You can display any HTML/Short-code via layout editor, Go to layout editor via edit link on layout settings on post grid edit page > add HTML to layout editor and then write short-code or HTML content under “Custom HTML” text…