Forum Replies Created
-
AuthorPosts
-
sanderschatMemberI cant find it in the documentation yet.
Has it been added in the past years or not?
Thanks for the update!
sanderschatMemberon the theme-setting page:
/* Title: YOUR TITLE Setting: your_setting_name */ piklist('field', array('type' => 'select', 'field' => 'xx_category', 'label' => 'Select your category', 'description' => '', 'choices' => array(0 => "Select...") + piklist(get_categories(array('hide_empty' => FALSE, 'taxonomy' => 'category',)), array('term_id','name'))));on your theme page:
$theme_settings = get_option('your_setting_name'); echo $theme_settings['xx_category'];i did not test this, but should give you a good direction
sanderschatMemberHi Civilz,
try this:
in your front-end php:
$theme_settings = get_option('**YOUR SETTING NAME HERE***');you find your setting-name in the top of your setting-page, where you defined your fields.
the returning value is an array of ALL your setting-fields.
So pick the one you want for use in your front-enddo a
print_r($theme_settings);on your front-end if you are not sure what your variable looks likehope this helps
sanderschatMemberyes, that works.
The “issue” i had with the other function i tried to use, wsa that i just didnt know what to put in the array for the returning object.
thanks for the tip!
sanderschatMemberA good night sleep will help…. 🙂
I thought to give it a try myself and yes, figured out the answer:global $wpdb; piklist('field', array('type' => 'select', 'field' => 'user_school', 'label' => 'School', 'choices' => piklist($wpdb->get_results("select t.name, tm.meta_value as 'legacy_id' from {$wpdb->prefix}term_taxonomy tt inner join {$wpdb->prefix}terms t on t.term_id = tt.term_id inner join {$wpdb->prefix}termmeta tm on tt.term_id = tm.term_id where tt.taxonomy='school' and tm.meta_key ='legacy_id'"), array("legacy_id", "name"))));thanks!
sanderschatMemberHi Steve,
i need your advise on this subject: two-way relationships
Will this be available in the near-near future?
or do you advice to use the ‘post2post’ plugin (or other approaches) for this?thanks!
sanderschatMemberYes!
thanks Steve!
sanderschatMemberHi Steve,
using Piklist 0.8.0b6 over here, WP 3.6.1
as requested,
i turned of all plugins and basic theme up.Piklist enabled, dashboard has put all widgets in first column (of the three), and no remembering after relocation of a widget.
Piklist disabled, dashboard oke.
Any thoughts on where this might be?
cheers
-
AuthorPosts