PluginProbe
WP Ultimate Post Grid / 2.8.2
WP Ultimate Post Grid v2.8.2
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / helpers / meta_boxes / meta_box_shortcode.php

meta_box_shortcode.php in WP Ultimate Post Grid 2.8.2, at helpers/meta_boxes/meta_box_shortcode.php

20 lines 588 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Grid should never be null. Construct just allows easy access to WPUPG_Grid functions in IDE.
3 if( is_null( $grid ) ) $grid = new WPUPG_Grid(0);
4 ?>
5
6 <?php
7 if( $grid->post()->post_status !== 'publish' ) {
8 _e( 'You have to publish the grid first.', 'wp-ultimate-post-grid' );
9 } else {
10 ?>
11 <strong>Grid</strong><br/>
12 [wpupg-grid id="<?php echo $grid->post()->post_name; ?>"]
13 <?php
14 if( $grid->filter_type() !== 'none' ) {
15 ?>
16 <br/><br/>
17 <strong>Filter</strong><br/>
18 [wpupg-filter id="<?php echo $grid->post()->post_name; ?>"]
19 <?php } ?>
20 <?php } ?>