the_password_form functions not working together

You have to control the order of execution. To do that, use the third parameter for add_filter(), the priority. A higher priority equals to later execution. add_filter( ‘the_password_form’, ‘my_password_form’, 9 ); add_filter( ‘the_password_form’, ‘wpse_71284_custom_post_password_msg’, 10 );

Add an Outside Wrapper to my Header and Make it Full Width

This should do it. I can’t test it right now. I used the genesis_header_markup_open() and the genesis_header_markup_open() Genesis functions and renamed them wpse_121660_header_markup_open() and wpse_121660_header_markup_close(). Then called them instead of the Genesis functions and added your new <div> in them. /** Reposition header outside main wrap */ remove_action( ‘genesis_header’, ‘genesis_header_markup_open’, 5 ); remove_action( ‘genesis_header’, ‘genesis_do_header’ … Read more

add slug beside name in Admin Category Checklists

ok since i didn’t have any response im posting the SOLUTION my self so it can be useful for others wanting to do the same: add_filter(‘wp_terms_checklist_args’, ‘display_custom_checklist’); function display_custom_checklist( $args ){ if ( $args[‘taxonomy’] == ‘portfolio-type’ ) $args[‘walker’] = new my_custom_walk; return $args; } class my_custom_walk extends Walker { var $tree_type=”category”; var $db_fields = array … Read more

How to edit classes in body tag?

try this //*** make Services full col ***/ add_filter( ‘body_class’, ‘custom_post_full_width’, 999, 2 ); function custom_post_full_width( $wp_classes, $class ) { if ( is_post_type_archive(‘services’) OR is_singular(‘services’) ) { // List of the only WP generated classes that are not allowed $blacklist = array(‘two-col-right’, ‘two-col-right-1080’); // Blacklist result $wp_classes = array_diff( $wp_classes, $blacklist ); // Extra classes … Read more

Getting commenter meta

As per the comments above, you can’t have this functionality directly. So we need to add this functionality as per the steps given below. Add the gender field in the comment form. Save the gender as meta data of that comment. Change the get avatar functionality of the comment to pass the default url as … Read more

List of all entries of custom-post-type: Add year-parameter?

I’ve modified above function somewhat function get_event_list( $latest = true, $order=”ASC”, $return = false, $year ) { // Pass year i.e $year $enddate = strtotime($year.”-12-31″); // year’s last date $startdate = strtotime( ($year-1).”-12-31″); year’s first date $yesterday = array($startdate, $enddate ); // Fetch posts between these dates $compare=”BETWEEN”;// Between above two dates $current_year=””; $args = … Read more

Some questions about how proper add 2 CSS file in a WordPress theme?

It seems like you’re using dependencies the opposite way of how they should be used. In the WordPress Codex, they try to explain how it’s supposed to be used. $deps (array) (optional) Array of handles of any stylesheets that this stylesheet depends on. Dependent stylesheets will be loaded before this stylesheet. Since your style2.css is … Read more