Forum Replies Created
-
AuthorPosts
-
egamipeaksMemberSteve, do you mean the original issue is fixed?
egamipeaksMemberThanks — I think at this point I’m going to have to choose another tool — this is the 3rd or 4th bug I’ve had to wrestle with… good luck though.
egamipeaksMemberAny thoughts here? Is this a bug?
egamipeaksMemberOk, please keep me informed if you can
December 11, 2014 at 11:11 am in reply to: Nested groups with add_more, ajax select, add_more template #3048
egamipeaksMemberFigured out my UI issue thanks
December 9, 2014 at 3:01 pm in reply to: Nested groups with add_more, ajax select, add_more template #3016
egamipeaksMemberThanks for the help.
I have gotten further on the nested add more groups but have a couple of issues still.
The first is that I have to add more than one field in the nested group or the nested add more buttons don’t appear.
Also after creating several nested groups and saving, they all load into the first group in the UI. And if I try and remove groups and update they come back.
My code is below:
piklist(‘field’, array(
‘type’ => ‘group’,
‘label’ => ‘Location Rules’,
‘description’ => ‘Create a set of rules to determine which pages will load this Ad Unit’,
‘field’ => ‘_ad_unit_location_rules’,
‘add_more’ => true,
‘fields’ => array(
array(
‘type’ => ‘hidden’,
‘field’ => ‘location_desc’,
‘label’ => ”,
‘columns’ => 12,
‘value’ => ”
),
array(
‘type’ => ‘group’,
‘field’ => ‘location_group’,
‘add_more’ => true,
‘fields’ => array(
array(
‘type’ => ‘select’,
‘field’ => ‘location_page’,
‘label’ => ‘Page Condition’,
‘columns’ => 12,
‘choices’ => array(
‘post_type’ => “Post Type”,
‘page’ => “Page”,
‘page_type’ => “Page Type”,
‘page_parent’ => “Page Parent”,
‘page_template’ => “Page Template”,
‘post’ => “Post”,
‘post_category’ => “Post Category”,
‘taxonomy’ => “Post Taxonomy”,
‘ef_taxonomy’ => “Taxonomy Term”,
)
),
array(
‘type’ => ‘select’,
‘field’ => ‘location_comparison’,
‘label’ => ‘Comparison’,
‘columns’ => 12,
‘choices’ => array(
‘==’ => ‘Is equal to’,
‘!=’ => ‘Is not equal to’
)
),
array(
‘type’ => ‘select’,
‘field’ => ‘location_options’,
‘label’ => ‘Options’,
‘columns’ => 12,
‘choices’ => array(
‘op1’ => ‘option 1’,
‘op2’ => ‘option 2’
)
)
)
)
)
));That hidden field is only there so that it will display the second group of add more buttons.
egamipeaksMemberThis reply has been marked as private.
egamipeaksMemberThanks for getting back to me so quickly Kevin. This is a fairly large ecommerce site.
Wp_posts: 59633
Wp_postmeta: 632561I’m combing through the queries on the page I sent you and so far haven’t spotted any with multiple meta queries. After activating Piklist however, all of the slow queries are related to PikList_Meta::get_metadata().
I’d love a copy of the beta if possible. We had been planning on using Piklist on multiple projects for a while, but at this point we are seriously considering looking for alternatives, because the slow down is just not feasible.
Thanks
egamipeaksMemberAlso, you’ll notice DB queries jump from about 100 to 1600!
-
AuthorPosts