Display custom post using ID

EDIT: deleted incorrect information I see what you are missing now. Without knowing the specifics, I tried to point you in the right direction with this: $my_query = new WP_Query(‘post_type=sliders&p=411’); if( $my_query->have_posts() ) { while ( $my_query->have_posts() ) : $my_query->the_post(); // Get the specific meta data for the current post $saved_slider_meta = get_post_meta( get_the_ID(), ‘slider_meta_key’ … Read more

How to create and populate with few links a menu in child theme functions.php?

Here you go. Since you already have the menu-id all you need is: $menu_item_defaults = array( ‘menu-item-db-id’ => $menu_item_db_id, ‘menu-item-object-id’ => 0, ‘menu-item-object’ => ”, ‘menu-item-parent-id’ => 0, ‘menu-item-position’ => 1, ‘menu-item-title’ => ‘Play Game’, ‘menu-item-url’ => ”,//not sure is a blank is ok here ‘menu-item-description’ => ”, ‘menu-item-attr-title’ => ”, ‘menu-item-target’ => ”, ‘menu-item-classes’ … Read more

Wp_query with 2 meta keys and array of meta values

I think you need to do something like this: <?php $args = array( ‘post_type’ => ‘shop’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ‘meta_query’ => array( ‘relation’ => ‘AND’, array( ‘key’ => ‘cu_status’, ‘value’ => array( ‘pending’, ‘processing’ ), ‘compare’ => ‘IN’, ), array( ‘key’ => ‘cu_date’, ‘value’ => array( ‘2016-01-12’, ‘2016-01-13’ ), ‘compare’ => ‘BETWEEN’, … Read more

How to transfer one domain to another domain without losing theme options (customizer)?

You can not replace the URL in the database using ctrl+f or any other “direct” method. You have to do a search & replace in the whole database in a way capable of keeping the validity of serialized data. There are several tools to do that serialized seach & replace. For example: Plugins like Better … Read more