Filter to strip unnecessary attributes

To make it more clear: (From the comments on the question) Q: The “output” or “HTML” of which function exactly? A: Any. I’d like these attributes removed from my whole theme. WP & Functions: WordPress has around 2.5k functions with the current version 3.4.2. Now imagine, that we would (or even could) check each function … Read more

How can I add authors to my blog pages?

Add some more authors in wp-admin, and if You would like to show author under a post, place: <?php the_author(); ?> in index.php, single.php or any other template file, that Your theme is using to show blog posts, single post, archive etc.

new to javascript – using in instead of functions.php, not loading correctly

Start by putting your JS in an appropriate .js file in your theme directory. Use the wp_enqueue_scripts hook (this is where you will enqueue/load any of your custom javascripts). Within that hook, use wp_enqueue_script() to load your script(s). Example: add_action( ‘wp_enqueue_scripts’, ‘enqueue_my_stuff’ ); function enqueue_my_stuff () { wp_enqueue_script(‘slug_for_your_script’ , get_template_directory_uri() . ‘/path/to/yourscripts.js’, array(‘jquery’) ); }

Image width issue in IE [closed]

The issue was related to width: 100%; being applied by WordPress to all images. The code below fixes this issue – i applied this only to IE 8 and lower, as these are the browsers that have issues with the code. img.size-full, img.size-large, img.header-image, img.wp-post-image { max-width: none !important; }

How to assign a div class to a echo function [closed]

This is not a specific WordPress question, is a topic in php coding. You can add html markup inside the echo in your function, like the follow example: function show_today_date() { echo ‘<div class=”example”>’ . date( get_option( ‘date_format’ ) ) . ‘</div>’; } add_shortcode( ‘showtodaydate’, ‘show_today_date’ );