Forum Replies Created
-
AuthorPosts
-
tatamataMemberHello,
same thing with Yoast SEO metabox
November 22, 2015 at 12:34 pm in reply to: How to get metabox data from the form before to save a new post? #5056
tatamataMemberHello @sbruner and @kattagami,
Is there a way to get the value of the field, in frontend form, before hitting submit?
November 21, 2015 at 11:27 am in reply to: IMPORTANT MESSAGE FROM PIKLIST 0.9.9.6 stays after update #5055
tatamataMemberThanks Steve, all of a sudden it went all the way to finish updating.
November 20, 2015 at 7:35 am in reply to: IMPORTANT MESSAGE FROM PIKLIST 0.9.9.6 stays after update #5045
tatamataMemberno, message is still there
November 16, 2015 at 6:04 pm in reply to: IMPORTANT MESSAGE FROM PIKLIST 0.9.9.6 stays after update #4996
tatamataMemberHow can I get rid of this message?
tatamataMemberthanks Steve,
nailed it.
i made a function to retrieve the posts and moved the code below to the function inside the plugin file$args = array( 'post_type' => 'tour', 'tax_query' => array( array( 'taxonomy' => 'traka_taxo', 'field' => 'slug', 'terms' => 'best-of', ), ), ); $best_of_choices = array(); $query = new WP_Query( $args ); if ( $query->have_posts() ) { while ( $query->have_posts() ) : $query->the_post(); $best_of_choices[] = array("post_id" => get_the_ID(), "post_name" => get_the_title()); endwhile; wp_reset_postdata(); } else { _e( 'Sorry, no posts matched your criteria.' ); }but still it did not save.
then i decided to go back to the defaults, removing
'choices' => piklist($best_of_choices, array('post_id','post_name'))and use
'choices' => array( 'one' => 'one' ,'two' => 'two' )as you suggested but it still did not work.
to eliminate the last piece of code that stayed the same, the one retrieving IDs and titles of posts belonging to custom taxonomy, i used get_posts() instead WP_Query. at the end array structure stayed the same. only after completely removing WP_Query and wp_reset_postdata() from metabox and from plugin, saving meta started to work.
i hope this is valuable info to you.
thanks a lot for all your help and hard work on piklist support.
tatamataMemberWhat do you mean?
tatamataMemberPage 1 means i.e. I am editing “about us” page, and page 2 means I am editing “contact” page.
tatamataMemberHello @Sbruner, thanks for the attention. Do you thing this might be related to stuck at update issue I am experiencing?
November 16, 2015 at 4:16 am in reply to: IMPORTANT MESSAGE FROM PIKLIST 0.9.9.6 stays after update #4971
tatamataMemberI was waiting for update to finish but it just stucks there. And the message to update does not go away.
Attachments:
You must be logged in to view attached files.
tatamataMemberwhen i choose some values in select boxes and update the page1 and then go to page2, all values stay as i choose them on page1. if i change them on page2 and go back to page1e, values are as i choose them on page2. but still no trace of any meta recorded in the database
tatamataMemberit did not work with an array as you suggested. tried it already
tatamataMemberusing piklist 0.9.9.6
other metaboxes tied to custom post type save normaly.
tatamataMembertabify tabs do not reload the page
-
AuthorPosts