Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: How to use piklist_list_table #10629
    sanderschat
    Member

    I cant find it in the documentation yet.

    Has it been added in the past years or not?

    Thanks for the update!

    in reply to: how to diplasy of taxonomy and put the theme? #1961
    sanderschat
    Member

    on 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

    in reply to: how to diplasy of taxonomy and put the theme? #1959
    sanderschat
    Member

    Hi 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-end

    do a print_r($theme_settings); on your front-end if you are not sure what your variable looks like

    hope this helps

    in reply to: dropdown of 'menus' #1958
    sanderschat
    Member

    yes, 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!

    in reply to: values of 'choices' #1244
    sanderschat
    Member

    A 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!

    in reply to: Two way connections with post-relate? #1202
    sanderschat
    Member

    Hi 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!

    in reply to: Dashboard layout #1199
    sanderschat
    Member

    Yes!

    thanks Steve!

    in reply to: Dashboard layout #1152
    sanderschat
    Member

    Hi 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

Viewing 8 posts - 1 through 8 (of 8 total)