Displaying Posts Using a Select Query Wordpress December 27, 2016 Just change the highlighted text. <?php global $wpdb; $result = $wpdb->get_results ( "SELECT * FROM wp_huge_it_reslider_slides" ); foreach ( $result as $print ) { ?> <?php echo $print->description;?> <?php } ?> Share Get link Facebook X Pinterest Email Other Apps Share Get link Facebook X Pinterest Email Other Apps Comments
add excerpt to page in wordpress May 02, 2017 just add--- add_post_type_support( 'page', 'excerpt' ); ----to functions.php Read more
add custom post type July 02, 2017 /** * * add custom post type * */ function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( 'Add New', 'book' ), 'add_new_item' => __( 'Add New Product' ), 'edit_item' => __( 'Edit Product' ), 'new_item' => __( 'New Product' ), 'all_items' => __( 'All Products' ), 'vi... Read more
Toolset conditional August 29, 2019 [wpv- if evaluate= "'[wpv-current-user info='id']' = '[wpv-post-author format='meta' meta='ID']' OR '[wpv-current-user info='role']' = 'administrator'" ] //the content you want to hide goes here [/wpv- if ] Read more
Comments
Post a Comment