Metabox Second Editor 2

Please visit Source Site #wordpress #wp #php #snippet #coding class sqpp_metabox_second_editor { public function __construct() { if ( is_admin() ) { add_action( ‘load-post.php’, array( $this, ‘init_metabox’ ) ); add_action( ‘load-post-new.php’,…

Meta Featured Image Control 2

Please visit Source Site #wordpress #wp #php #snippet #coding class sqpp_meta_box_featured_image_control { public function __construct() { if ( is_admin() ) { add_action( ‘load-post.php’, array( $this, ‘init_metabox’ ) ); add_action( ‘load-post-new.php’,…

theme_settings

Please visit Source Site #wordpress #wp #php #snippet #coding // Set content width value based on the theme’s design if ( ! isset( $content_width ) ) $content_width = 1200; if…

Basic Article Post Query

Please visit Source Site #wordpress #wp #php #snippet #coding // WP_Query arguments $args = array( ‘post_type’ => array( ‘articles’ ), ‘nopaging’ => true, ‘ignore_sticky_posts’ => true, ‘order’ => ‘ASC’, ‘orderby’…

Basic Category Query

Please visit Source Site #wordpress #wp #php #snippet #coding $cat_query = array( array( ‘taxonomy’ => ‘category’, ‘operator’ => ‘EXISTS’, ‘include_children’ => false, ), ); The post Basic Category Query appeared…