// var of ajaxurl for data save and edit Jquery script

Pinterest Pages Settings Create New Pinterest Page

'pinterest_page','orderby' => 'ID','order'=> 'ASC','posts_per_page'=>-1); $pinterest_pages = new WP_Query( $args ); if($pinterest_pages->have_posts()): while($pinterest_pages->have_posts()): $pinterest_pages->the_post(); $pins_page_title=get_the_title(); $pinterest_username=get_post_meta(get_the_ID(),'pinterest_username',true); $pinterest_boardname=get_post_meta(get_the_ID(),'pinterest_boardname',true); $per_page_pin_limite=get_post_meta(get_the_ID(),'per_page_pin_limite',true); $show_more_button_text=get_post_meta(get_the_ID(),'show_more_button_text',true); $show_more_button_text_color=get_post_meta(get_the_ID(),'show_more_button_text_color',true); $show_more_button_backgound_color=get_post_meta(get_the_ID(),'show_more_button_backgound_color',true); $as_pin_box_color_field=get_post_meta(get_the_ID(),'as_pin_box_color_field',true); $column_number=get_post_meta(get_the_ID(),'column_number',true); $as_color_text_field=get_post_meta(get_the_ID(),'as_color_text_field',true); $as_pin_box_style_field=get_post_meta(get_the_ID(),'as_pin_box_style_field',true); if(empty($show_more_button_text)): $show_more_button_text="Show more"; endif; if(empty($show_more_button_text_color)): $show_more_button_text_color="#ffffff"; endif; if(empty($show_more_button_backgound_color)): $show_more_button_backgound_color="#000000"; endif; ?>
Short Code Action
[as_pinterest_page id="" page_name=""] Edit Delete
Edit Pinterest Detail
Page Title

Enter unique title of pinterest setting.

Pinterest Username

Enter your pinterest username here.

Pinterest boardname

Enter your pinterest boardname here.

Per Page Pins Limite

Enter limit of pins you want to show on page.

Show more button text

Enter show more button text here.

Select column number

Set column number you want to show in row.

Show more button backgound color

Set show more button backgound color.

Show more button text color

Set show more button text color.

Pin box background color

This color apply in pin box background.

Pin box text color

This color apply in pin box text.

Select pin box style

Set pin box style here.

'Pinterest Page', 'post_status' => 'publish', 'post_author' => 1, 'post_type' => 'pinterest_page' ); $post_id = wp_insert_post( $my_post ); echo $post_id; die(); } // Edit new pin page shortcode function public static function as_edit_pins_page(){ $pinterest_username=$_POST['pinterest_username']; $pinterest_boardname=$_POST['pinterest_boardname']; $per_page_pin_limite=$_POST['per_page_pin_limite']; $show_more_button_text=$_POST['show_more_button_text']; $show_more_button_text_color=$_POST['show_more_button_text_color']; $show_more_button_backgound_color=$_POST['show_more_button_backgound_color']; $as_pin_box_color_field=$_POST['as_pin_box_color_field']; $column_number=$_POST['column_number']; $as_color_text_field=$_POST['as_color_text_field']; $as_pin_box_style_field=$_POST['as_pin_box_style_field']; $post_title=$_POST['post_title']; $post_id=$_POST['post_id']; $pin_post = array( 'ID' => $post_id, 'post_title' => $post_title ); wp_update_post( $pin_post ); update_post_meta($post_id,'pinterest_username',$pinterest_username); update_post_meta($post_id,'pinterest_boardname',$pinterest_boardname); update_post_meta($post_id,'per_page_pin_limite',$per_page_pin_limite); update_post_meta($post_id,'show_more_button_text',$show_more_button_text); update_post_meta($post_id,'show_more_button_text_color',$show_more_button_text_color); update_post_meta($post_id,'show_more_button_backgound_color',$show_more_button_backgound_color); update_post_meta($post_id,'as_pin_box_color_field',$as_pin_box_color_field); update_post_meta($post_id,'column_number',$column_number); update_post_meta($post_id,'as_color_text_field',$as_color_text_field); update_post_meta($post_id,'as_pin_box_style_field',$as_pin_box_style_field); echo $post_id; die(); } // Delete new pin page shortcode function public static function as_delete_pins_page(){ $post_id=$_POST['post_id']; wp_delete_post($post_id); echo $post_id; die(); } } ?>