StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-17-2010, 02:29 PM
Chelle Chelle is offline
Registered User
Pro Plus Member
 
Join Date: May 2009
Posts: 9
Default Church 4.0 Theme options- select tags vice categories

I've manage to implement this on 3.0 version of Church. I'm now trying my hand at doing the same thing for version 4.0. I've probably stared too long at the theme-options.php because I'm not connecting my dots.

Here's the working code for the Church 3.0 version I edited for my site www.sansdreamscape.net

Code:
//////////////////////////////////
        //This is the tag select code
        //    Mod'ed Cat Code courtesy of Nathan Rice
        case 'tag_select':
        option_wrapper_header($value);
        $tags = get_tags();
        ?>
                <select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
                    <?php foreach ($tags as $tag) {
                    if ( get_settings( $value['id'] ) == $tag->term_id) { $selected = ' selected="selected"'; } else { $selected = ''; }
                    $opt = '<option value="' . $tag->term_id . '"' . $selected . '>' . $tag->name . '</option>';
                    echo $opt; } ?>
                </select>
        <?php
        option_wrapper_footer($value);
        break;
        //end tag select code
        //////////////////////////
Implementation for version 4.0 is quite different, and I'm having a hard time matching terms to understand what data is expected where. Can I get a breakdown of the arguments used in the dropdown_cats function [i.e. get_theme_mod('featured_top_left') etc], so I can try and make the tag select dropdown example provided on the get_the_tags() ref page work..

Code:
<?php wp_dropdown_categories(array('selected' => get_theme_mod('featured_top_left'), 'name' => $settings.'[featured_top_left]' )); ?>
Right now all I'm seeing is I define a tag dropdown function..and call it, and that's when my brain stops working with me
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Church theme options won't stick lorilin General Discussion 11 08-16-2010 08:58 AM
Church Theme Options corym General Discussion 2 12-11-2009 02:50 PM
Church Theme Options Version 3 MrMike General Discussion 2 05-05-2009 02:51 PM


All times are GMT -5. The time now is 02:20 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.