Forum Replies Created

Viewing 12 replies - 136 through 147 (of 147 total)
  • Forum: Plugins
    In reply to: Second set of tags?
    Thread Starter Ian

    (@ianaleksander)

    well, I started using my categories instead of one of my custom taxonomies (actually working quite well) so I only need two. There is that alternative way to get both new columns listed in the admin dash, but I’d still like to be able to mass edit them.

    Ian

    (@ianaleksander)

    awesome – I was looking for the same thing and pasting the plugin above (by t31os_) into my theme functions (after one soul shaking false start, haha) worked perfectly for me.

    The “search everything” plugin previously recommended didn’t help at all, actually made it worse.

    Forum: Plugins
    In reply to: Second set of tags?
    Thread Starter Ian

    (@ianaleksander)

    this code works to add one column, but I need to add 3 – I’m sure there’s something I can change but I’m not sure what. Is it the numbers (like 10,3?)

    add_filter('manage_posts_columns', 'custom_admin_columns'); 
    
    // Unsetting comments, author and date from my Admin Post Index.  Adding in technologies (taxonomy) column
    function custom_admin_columns($defaults) {
        unset($defaults['comments']);
        unset($defaults['author']);
        unset($defaults['date']);
        $defaults['technologies'] = __('Technologies');
        return $defaults;
    }
    
    // bulk edit taxonomies 
    
    add_action('bulk_edit_custom_box', 'custom_bulk_edit_technologies',11,2);  
    
    function custom_bulk_edit_technologies($column_name, $type) {
    
    	if ( $type == 'post' && $column_name == 'technologies' ) {
    	?>
    	<fieldset class="inline-edit-col-right"><div class="inline-edit-col">
    
    		<label class="inline-edit-taxonomy-<?php $column_name ; ?>">
    			<span class="title"><?php echo ucfirst($column_name) ; ?></span>
    			<textarea cols="22" rows="1" name="<?php echo $column_name ; ?>_input" class="<?php echo $column_name ; ?>_input"></textarea>
    			<input type="hidden" name="bulk_edit_<?php echo $column_name ; ?>" value="bulk" />
    		</label>
    
    	</div></fieldset>
    	<?php
    	}
    }                                                   
    
    add_action('save_post','custom_set_bulk_technologies',10,3);        
    
    function custom_set_bulk_technologies($post_ID, $post) {        
    
    	$type = $post->post_type ;
    	$taxonomy_name = "technology" ;
    	$column_name = "technologies";
    
    	if ( $type == 'post' && $_GET['bulk_edit_' . $column_name] == 'bulk' && $_GET[$column_name . '_input'] != '') {   
    
            $current_terms_full = get_the_terms($post->ID, $taxonomy_name);
    
    		foreach ($current_terms_full AS $current) {
    			$current_terms[] = $current->name ;
    		}
    
    		$submitted_terms = explode(",",$_GET[$column_name . '_input']);
    
    		if ($current_terms) {
    			$terms = array_merge($current_terms, $submitted_terms);
    		}
    		else {
    			$terms = $submitted_terms;
    		}
    
    	   	$success = wp_set_object_terms($post->ID, $terms, $taxonomy_name);   
    
    	}
    }
    Forum: Plugins
    In reply to: Second set of tags?
    Thread Starter Ian

    (@ianaleksander)

    I’m also working to add in custom taxonomies to my bulk edit template.

    This theme seems to have info on that:

    https://themehybrid.com/support/topic/add-custom-taxonomy-to-editphp

    Forum: Plugins
    In reply to: Second set of tags?
    Thread Starter Ian

    (@ianaleksander)

    awesome, this will work for my data.

    Is there anyway to also get it to work with the Configurable Tag Cloud widgit?

    https://www.ads-software.com/extend/plugins/configurable-tag-cloud-widget/

    I like the way I can control the display of information with that.

    Forum: Plugins
    In reply to: Second set of tags?
    Thread Starter Ian

    (@ianaleksander)

    yeah that looks about right! Thanks for the link – I’ll check it out and see if this works for my needs!

    Ian

    (@ianaleksander)

    this worked for me also. I used the “executable php widget” plugin so I could paste the code directly in there and drag and drop it to organize.

    came out great ??

    Thread Starter Ian

    (@ianaleksander)

    seriously, thanks. I should have posted on here sooner, it was driving me crazy all day.

    Thread Starter Ian

    (@ianaleksander)

    holy crap the clear both worked! I think I broke it when I had taken the footer out of an old layout, which I then made into this one. It wasn’t three columns and had no background image so I never noticed!

    I put a little div footer at the bottom and then set the style to just have clear both in it and it solved my problem right away.

    haha this is excellent, thank you very much!

    Thread Starter Ian

    (@ianaleksander)

    ooh I posted that without noticing the more advice up above. I’ll try that stuff! give me a few to see if it works.

    thanks a lot!

    Thread Starter Ian

    (@ianaleksander)

    except then that menu gets bumped to the bottom, under the other content – so it doesn’t really solve my problem. ??

    Thread Starter Ian

    (@ianaleksander)

    I think it’s something to do with menu2, my right sidebar. For some reason when I take the float tag off that one the white extends to the bottom.

Viewing 12 replies - 136 through 147 (of 147 total)